rdb
5ac3cf3fc6
Eliminate C++ DConfig; replace it with a Python compatibility shim
2018-11-02 23:27:07 +01:00
rdb
14411f592e
Remove obsolete .init files in configfiles directories
...
These look like they were part of some now-defunct Disney tool.
2018-11-01 16:26:07 +01:00
rdb
f8b47dc14c
direct: fix slowness in big games with Func(messenger.send)
2018-10-18 22:19:55 +02:00
rdb
822f89fadb
dgui: accept arg in setText, setImage, setGeom, also add clearers
...
This enables the "setters" to behave in a way that people expect setters to behave. Since `setText(None)` now does not behave expectedly, a `clearText()` has also been added to remove the text.
Closes #385
2018-09-13 21:14:04 +02:00
jspam
a333353af6
Make Loader.loadSound() accept a MovieAudio instance as soundPath
...
This functionality seems to have inadvertently been removed by
refactoring commit 23bf9ea5 .
Closes #383
2018-09-09 20:22:51 +02:00
Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06:00
rdb
27dbad6fd9
leveleditor: add missing import
2018-08-26 14:04:19 +02:00
rdb
35fff81b6a
makepanda: fix missing BUILDING_DIRECT_DCPARSER
...
[skip ci]
2018-08-19 21:06:47 +02:00
rdb
b1d2111037
express: add Datagram add_blob and add_blob32, et al.
...
This is for writing Python 2/3 agnostic code for writing binary data to a datagram, and reading from it using DatagramIterator.
2018-08-19 16:01:39 +02:00
Sam Edwards
97d6d84ade
dcparser: Add BUILDING_DIRECT_DCPARSER switch
...
Resolves GH #342 .
2018-08-15 20:38:00 -06:00
rdb
ee318a73f3
interval: prevent hypothetical stack overflow
2018-08-08 20:16:11 +02:00
bfrisby2000
7c375ac531
showbase: Add blendType argument for Fade/Iris/Letterbox
...
This allows the 'blendType' argument to be passed through the three transitions' Lerp Intervals.
2018-08-07 20:23:16 -04:00
rdb
0fbfeb712f
ParticlePanel: comment out unimplemented OrientedParticleFactory
2018-08-02 20:31:12 +02:00
rdb
f813d2fb60
stdpy: fix broken threading.Event
2018-08-02 20:29:48 +02:00
rdb
57578ee58f
direct: add MetaInterval underscore aliases (fixes override bug)
...
These methods are supposed to override the underlying C methods, which do have underscore aliases, so it is important that the Python class defines these underscore aliases as well.
2018-07-17 22:20:35 +02:00
rdb
886e1c2f16
general: fix many compilation warnings in GCC 8
2018-06-19 00:37:28 +02:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards
5e82671084
general: Do away with TYPENAME macro
2018-06-03 16:36:34 -06:00
Sam Edwards
e2b4353800
general: Replace NULL (and 0 as pointer) with C++11 nullptr
...
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb
e0245d2777
First step towards eliminating `using namespace std;` ( #335 )
2018-06-03 20:32:23 +02:00
rdb
6b726fa697
general: fix various compiler warnings and issues exposed thereby
2018-05-30 11:09:35 +02:00
rdb
8c80ff1681
Audio3DManager: remove sounds when attached object is deleted
...
This now uses WeakNodePaths in order to prevent holding a reference to the corresponding nodes.
Closes #145
2018-05-20 18:46:27 +02:00
rdb
140644d8b6
stdpy: add Python 3 stuff to glob module, remove re dependency
2018-05-20 11:50:32 +02:00
rdb
71eee6df3f
showbase: make iris/fade/letterbox transitions awaitable
...
This allows using a coroutine to build up a more complex sequence including transitions (eg. scripted cutscene), as well as provide a standard way to register callbacks upon completion of the transition.
2018-05-05 23:05:50 +02:00
rdb
cf58de4d04
showbase: make base.movie() awaitable (by returning a future)
2018-05-05 23:02:11 +02:00
rdb
11e21af52c
showbase: fix iris/fade transitions for extreme aspect ratios
...
Fixes #311
2018-05-05 22:08:52 +02:00
rdb
f986f8de1b
showbase: add back clampScalar and PriorityCallbacks to PythonUtil
...
These were removed by 88dbb31daa under the assumption that they were not used, but it has recently come to my attention that there is still code out there that uses these.
PriorityCallbacks has been updated to be compatible with Python 3 by only comparing the priority, rather than the (priority, callback) tuple. This also has the side-effect of ditching the bisect dependency.
Also moves testing code from the source to the unit tests.
2018-04-21 11:43:46 +02:00
rdb
e9ae7dcc40
Use vector_uchar instead of string for binary network/file data
...
This distinction allows us to better support Python 3, since it will raise exceptions when trying to put arbitrary binary data in a str object.
This also adds some convenience functions for efficiently initializing a Datagram or PTA_uchar from a vector_uchar.
2018-04-02 23:17:14 +02:00
Tohka
0b1ad67e13
distributed: Fix DC file reading regression ( #295 )
2018-03-31 04:01:35 -06:00
Sebastian Hoffmann
78377ca10c
Cursor after newline character appears on beginning of next line.
...
DirectEntry.updateNumLines updates text geom.
DirectEntry API less inadequate.
Closes #257
2018-03-30 20:17:31 +02:00
Sam Edwards
4eb250cb87
dcparser: Write ranged-blob parameters correctly
2018-03-25 22:03:55 -06:00
Sam Edwards
9dd37e9dbc
general: Add guards to ensure proper BUILDING_ macros defined
...
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
Sam Edwards
f231ba4cd7
directbase: Introduce BUILDING_ defines for each component
...
Ditto everything before, but for direct.
2018-03-25 13:17:52 -06:00
Michael Wass
b10ee32752
direct: Fix some more NameErrors
...
Closes #274
2018-03-08 11:44:04 +01:00
rdb
b0b32b9d6a
direct: fix Python 3 support in Pmw-based tools
...
Fixes #276
2018-03-08 11:21:14 +01:00
Michael Wass
89799bc024
direct: Fix some NameErrors
...
Squashed merge of GitHub PR #273
2018-03-05 18:32:27 -07:00
Sam Edwards
ac8417ffdf
distributed: `type(x) == types.FooType` -> `inspect.isfoo(x)`
...
This is more compatible across Python 2 vs. 3.
[skip ci]
2018-03-04 15:28:39 -07:00
rdb
b62435a373
general: remove all uses of deprecated upcastTo*() methods
...
These methods have not been needed for a very long time, so we should not encourage their use.
2018-02-27 15:02:49 +01:00
Sam Edwards
b72d1c198f
distributed: Fix the import test (and syntax on Python 3)
2018-02-23 19:52:48 -07:00
Sam Edwards
f76b8a6ad8
distributed: Replace the OTP protocol format with Astron's
...
Again, all this does is affect the 4-years-disused OTP system, leaving
the CMU system entirely untouched.
This changes the packet formatting in several of distributed's helper
classes.
2018-02-23 16:45:50 -07:00
Sam Edwards
167c6dcafa
distributed: Change the message numbers to match Astron's
...
I imagine very few Panda3D users depend on the message numbers having
particular values. The ones removed belonged to Disney's OTP system,
which hasn't been used by anybody in over 4 years.
At any rate, old code should continue to work, just at the cost of
compatibility between clients and servers running different P3D versions.
2018-02-23 16:35:50 -07:00
Sam Edwards
97368ec321
distributed: Make a few slight cleanliness changes
...
I brought all of these over from the Astron fork
2018-02-23 15:55:30 -07:00
Sam Edwards
aaeb925e84
directtools: Fix typo in DirectSelection
2018-02-23 15:50:50 -07:00
rdb
aa90b7b0c0
showbase: disable track-gui-items by default, remove want-e3-hacks
2018-02-23 22:26:27 +01:00
rdb
e6c2d3b609
showbase: allow DirectGui elements to be created before ShowBase
...
This is done by precreating aspect2d inside ShowBaseGlobal.
2018-02-23 22:15:34 +01:00
rdb
0cf605ce7d
showbase: move run() and __dev__ to ShowBaseGlobal
...
Also remove ShowBaseGlobal notify category, it doesn't really add anything
2018-02-23 21:26:49 +01:00
Sam Edwards
e15cea4331
general: Remove more unnecessary +x UNIX modes
2018-02-07 11:29:48 -07:00
fireclawthefox
f2cf391a2e
gui: add simple way to enable overflow in DirectEntry
...
Closes #236
2018-01-24 19:17:50 +01:00
rdb
bdb53b8cb5
showbase: fixes for aspect-ratio adjustment of pixel2d(p)
2018-01-05 19:49:14 +01:00