rdb
5be46c4124
dgui: Fix DirectSlider unit test failure
2021-04-08 12:28:22 +02:00
rdb
0e36a99574
Merge branch 'release/1.10.x'
2021-03-22 15:45:45 +01:00
rdb
fe29aab568
dgui: Reset DirectOptionMenu highlighted index when replacing items
...
Not doing this causes issues if the item list is replaced by an item callback, since that means the unhighlight callback is never fired.
Fixes #1125
2021-03-22 10:08:31 +01:00
rdb
3fe1780f16
direct: Fix use of various deprecated APIs
2021-03-09 19:21:26 +01:00
Timothy Paustian
2493c0689f
direct: Use warnings module for more verbose deprecation prints
...
Closes #1067
Fixes #669
2021-03-09 18:34:53 +01:00
rdb
be9dde1eee
direct: add .pylintrc, perform major code cleanup pass
...
Closes #989
Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb
b38e9d552a
Merge branch 'release/1.10.x'
2020-12-28 16:26:48 +01:00
rdb
e7a6d735e3
dgui: Add "versionadded" to docstrings of newly added methods
2020-12-27 10:48:12 +01:00
rdb
2156e6deb2
Merge branch 'release/1.10.x'
2020-12-26 14:00:29 +01:00
rdb
d5c2dc6447
dgui: Add setTextPos, etc. aliases for setPos
...
setPos will be deprecated in a future version.
See #1041
2020-12-26 13:59:19 +01:00
rdb
a5ae292c3e
Merge branch 'release/1.10.x'
2020-12-18 12:56:31 +01:00
rdb
8883bf9bdd
dgui: Fix ability to create OnscreenGeom/Image/Text without ShowBase
2020-12-15 11:45:52 +01:00
rdb
921cbc6bae
Merge commit 'e0d34131822a8852ff72dc9c5597f4dc6900719a'
2020-09-13 16:17:06 +02:00
rdb
4e8ee5bae5
dgui: Add snake_case aliases for DirectGuiGlobals
2020-09-13 15:17:02 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
f524f00e8e
Merge branch 'release/1.10.x'
2020-03-14 15:01:38 +01:00
Derzsi Dániel
32a9ea2cef
dgui: Fix DirectScrolledList scrollTo error in Python 3
...
As a rule of thumb, Python 3 divisions always have float results. Unfortunately, this piece of code is still relying on the old Python 2.7 behavior.
Closes #880
2020-03-14 14:55:32 +01:00
Fireclaw
c73415b4ba
dgui: fix sizing after changing Slider/Scrollbar orientation
...
Closes #700
2020-02-23 16:28:40 +01:00
rdb
fda898807a
Merge branch 'release/1.10.x' into master
2020-02-10 13:52:05 +01:00
Fireclaw
5d93237386
dgui: fix regression in DirectScrolledFrame (see #699 )
...
Made initialization ignore the setScrollBarWidth function
Respect the length/height of the scrollbar and only change the actual
width in the setScrollBarWidth function
Added a very basic unittest class for the scrolledFrame
Closes #864
2020-02-10 13:17:05 +01:00
rdb
b212d254d0
Merge branch 'release/1.10.x' into incoming
2020-01-07 22:09:59 +01:00
rdb
a50d375c35
dgui: fix DirectSlider regression on Python 2
2020-01-07 22:07:39 +01:00
rdb
6b12fbe6f2
dgui: show assertion when passing a NaN into DirectSlider
...
If we don't do this, we get an assertion somewhere in the bowels of the scene graph, which will be much less helpful for tracking down the origin of the NaN.
2020-01-07 21:41:04 +01:00
rdb
3755e157bf
dgui: remove erroneous `p3d.` prefix (regression from #819 )
2019-12-30 03:24:16 +01:00
LD
88fd65394b
dgui: Add DirectGui events for wheel up and down mouse events
...
Closes #819
2019-12-30 03:07:52 +01:00
Derzsi Dániel
9455fb3f73
dgui: resolve DirectFrame regression
...
Closes #810
2019-12-20 11:44:25 +01:00
max
2ca37b8c97
dgui: refactor code common to DirectFrame setGeom, setImage, setText
...
Closes #776
Co-authored-by: rdb <git@rdb.name>
2019-12-11 17:57:15 +01:00
rdb
2e3b350510
dgui: allow creating DirectOptionMenu without ShowBase
2019-11-03 12:12:42 +01:00
fireclawthefox
eb3b45ebb1
dgui: Fix reset text scale on DirectOptionMenu item unhighlight
...
Set text scale to previous unhighlighted scale on unhighlight to keep
custom scales
2019-11-03 11:51:36 +01:00
rdb
22e88a5b6a
direct: a few improvements to API documentation
2019-11-02 19:41:11 +01:00
rdb
f149fb4ab0
direct: big formatting changes for the benefit of API reference
...
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
Aidan Noll
984d70e8e0
dgui: update DirectScrolledList type checking for Python 2/3 compatibility
2019-10-05 21:10:05 +02:00
rdb
062460cbe0
dgui: store guiItems on ShowBase class dict instead of module
2019-08-20 01:07:39 +02:00
rdb
a0aa7de291
dgui: fix critical regression introduced by 43a5719
2019-08-19 21:26:35 +02:00
fireclawthefox
24d48d8cb0
dgui: allow setting DirectEntryScroll entry after the fact
...
Closes #702
2019-08-14 13:31:08 +02:00
rdb
5c99cf16f8
dgui: fix DirectEntry._autoCapitalize() on Python 3.x ( #628 )
2019-08-14 13:26:33 +02:00
rdb
43a5719bac
dgui: allow using various GUI items without instantiating ShowBase
...
This is done by eliminating dependency on the `hidden` built-in, which can now instead be imported from ShowBaseGlobal.
2019-08-14 13:26:27 +02:00
fireclawthefox
2b64a7d74f
dgui: Scrollbar width changeable after initialization
...
Closes #699
2019-08-03 09:42:16 +02:00
rdb
7ab377f28e
dgui: fix option menu's cancelFrame not working in scrolled frame
...
Fixes #658
2019-07-29 13:07:26 +02:00
Fireclaw
387b43adde
dgui: Fix popupMarker_pos related crash
...
Set initial popupMarker position to previous default by using None as default
2019-06-07 22:13:25 +02:00
Maverick Liberty
4d33db2028
DirectOptionMenu: Fix popup menu reset of the popup marker's pos
...
Also defines popupMarker_pos and raises an assertion error if #showPopupMenu() is called when no items have been specified.
Fixes #636
Closes #637
2019-05-01 17:23:04 +02:00
Derzsi Dániel
c337e58f4d
direct: Resolve DirectScrolledFrame crash on destroy
...
Destroying DirectScrolledFrames currently crashes the game, because they are destroyed twice. This commit makes sure to destroy the scrolls only once.
Closes #574
2019-03-04 12:18:21 +01: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
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
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
fireclawthefox
f2cf391a2e
gui: add simple way to enable overflow in DirectEntry
...
Closes #236
2018-01-24 19:17:50 +01:00
rdb
d576c6b638
Improvements to generated API docs, especially in direct tree.
...
Also add an entry point for pfreeze.
2017-05-24 13:30:21 +02:00
rdb
160f652d58
text: use HarfBuzz for text shaping; support right-to-left text
2017-04-25 12:25:31 +02:00
Mitchell Stokes
59b0913b0b
Cleanup .gitignore files
...
Remove all .gitignore files in subdirectories and add a few new ignores
to the top-level directory .gitignore file.
2016-10-30 20:06:12 -07:00