Rémi Verschelde
319c442771
Merge pull request #55791 from kleonc/tree-dont-consume-mouse-if-collapser-not-visible
2022-01-05 10:56:50 +01:00
Rémi Verschelde
0719deea8a
Merge pull request #56346 from pycbouh/control-treenteger
2022-01-05 10:47:05 +01:00
Rémi Verschelde
89f070065b
Merge pull request #56408 from eazrael/tree-fix-selectionmode-row
...
Tree: Fix de-select when selection mode set to SELECT_ROW
2022-01-05 09:22:00 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Christoph Nelles
185724e5e9
Tree: Fix de-select when selection mode set to SELECT_ROW
...
It no longer de-selects an already selected row if the SELECT_MODE is
set to SELECT_ROW.
Update scene/gui/tree.cpp
Co-authored-by: Michael Alexsander <michaelalexsander@protonmail.com>
2022-01-02 00:36:30 +00:00
Yuri Sizov
f1bc5c976a
Fix an incorrect exposed property type in Tree
2021-12-30 20:04:14 +03:00
kleonc
67dd4f15ee
Tree Don't consume mouse event by collapse arrow which isn't shown
2021-12-10 16:54:47 +01:00
Nathan Franke
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
Nathan Franke
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
Rémi Verschelde
75ac048e4b
Merge pull request #55662 from KoBeWi/update_minimum_size_changed_to_update_minimum_size
2021-12-06 18:28:46 +01:00
jmb462
81efebb3a1
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-12-06 14:29:48 +01:00
kobewi
ea7cc1dea9
Rename minimum_size_changed() method
2021-12-06 14:02:34 +01:00
kobewi
7f6ab0006d
Bind column_titles_visible as property
2021-12-05 02:55:38 +01:00
Lightning_A
e078f970db
Rename `remove()` to `remove_at()` when removing by index
2021-11-23 18:58:57 -07:00
Hugo Locurcio
8fb7e622a6
Rename built-in `SGN()` macro to `SIGN()`
...
This matches the name of the GDScript function (except it's uppercase
here).
2021-11-16 20:40:49 +01:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
bruvzg
ebbc25e89c
Ignore empty Font resources as theme override.
...
Add range hint to font_size properties.
Remove excessive `base_size` Font property.
2021-10-25 14:05:37 +03:00
Robin Arys
5c25497aa2
Fix possible crash when calling Tree.notification from _ready
2021-10-23 12:02:09 +02:00
Yuri Sizov
bdbb7b3999
Remove EDSCALE dependency from /scene/gui
2021-10-04 15:25:08 +03:00
jmb462
7fabbe2760
Fix tree title column size minimum width
2021-09-28 14:54:48 +02:00
floppyhammer
53efc55409
Fix minimum size of TreeItem
2021-09-26 17:02:54 +08:00
Rémi Verschelde
9293c76636
Merge pull request #53049 from AnilBK/dont-construct-2
2021-09-25 12:26:08 +02:00
Anilforextra
cdd912c48e
Construct values only when necessary.
2021-09-25 14:46:45 +05:45
Yuri Sizov
873443756d
Correctly calculate position of the folding arrow in Tree
2021-09-25 02:01:14 +03:00
Rémi Verschelde
0a8e137c61
Merge pull request #52313 from groud/cache_tree_item_size
2021-09-15 13:21:56 +02:00
Tomasz Chabora
e1cc70309c
Fix error when click edge of the tree icon
2021-09-13 18:03:03 +02:00
Gilles Roudière
ace19bd4c6
Cache TreeItem minimum size for performance.
2021-09-01 16:26:41 +02:00
kobewi
a913ae8d56
Add support for internal nodes
2021-08-28 02:07:23 +02:00
Max Hilbrunner
701195937d
Merge pull request #52096 from kleonc/tree-item-drag-drop-drawing
...
Tree Fix line rendering when drag and dropping TreeItem
2021-08-27 20:55:37 +02:00
bruvzg
4c3f7d1290
Makes FontData importable resource.
...
Adds multi-channel SDF font texture generation and rendering support.
Adds per-font oversampling support.
Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading.
Adds BMFont binary format and outline support.
2021-08-27 15:43:18 +03:00
kleonc
d35ef5fab0
Tree Fix line rendering when drag and dropping TreeItem
2021-08-25 13:29:54 +02:00
reduz
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.
Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
Kevin Fischer
75866c81e7
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-16 10:13:06 -07:00
reduz
6631f66c2a
Optimize StringName usage
...
* Added a new macro SNAME() that constructs and caches a local stringname.
* Subsequent usages use the cached version.
* Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time.
* Replaced all theme usages by this new macro.
* Replace all signal emission usages by this new macro.
* Replace all call_deferred usages by this new macro.
This is part of ongoing work to optimize GUI and the editor.
2021-07-18 21:20:02 -03:00
Rémi Verschelde
3adb129a54
Merge pull request #50135 from KoBeWi/ 🌲 .update()
...
Update Tree when modified
2021-07-13 09:03:40 +02:00
Hugo Locurcio
ce941397e5
Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648
...
Avoid using a nullptr root in Tree._range_click_timeout().
2021-07-07 01:21:32 +02:00
reduz
f4379cbc82
Clean up Tree
...
Fixes some problems introduced by #49917
* Tree used minimum size as a stretch ratio, so it forced a minimum size of 1.
* Minimum size redone, stretch ratio moved to a separate setting
* Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired.
* Added a clip content option for situations where fit to contents does not apply.
* Icon would scroll with the item, making it invislbe if the item is too long.
* Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
2021-07-04 13:13:53 -03:00
kobewi
9569729888
Update Tree when modified
2021-07-04 15:28:39 +02:00
voxelv
f17f3f8830
Avoid using a nullptr root in Tree._range_click_timeout().
...
Fixes #46648
2021-06-30 00:27:44 -07:00
Gilles Roudière
c5b65236d8
Fixes crash in case no column in tree is expanded and has minimum size
2021-06-29 11:27:09 +02:00
Gilles Roudière
d7d32ced5b
Implement Tree's internal minimum width calculation
2021-06-28 15:54:31 +02:00
Gilles Roudière
b2dddc3c82
Allow disabling scrolling in Tree
2021-06-25 21:19:46 +02:00
Yuri Sizov
483f8ffbe4
Make relationship lines draw on top of TreeItems
2021-06-21 16:46:43 +03:00
Aaron Franke
0ce49800ac
Use mouse and joypad enums instead of plain integers
...
Also MIDIMessage
2021-06-20 11:54:24 -04:00
Lightning_A
e28fd07b2b
Rename `instance()`->`instantiate()` when it's a verb
2021-06-19 20:49:18 -06:00
Gregory Basile
8ab13f8ace
Documentation search fixes
...
Updates rich_text_label so that the built-in documentation can be searched
Previously, it would only find the first result and would not select other results
Renames "_entered" functions to "_submitted"
2021-06-16 09:43:34 -07:00
reduz
d95bc3fa67
Use bold fonts in editor
...
* Labels are now bold
* Categories in trees are bold
* Main editor buttons are bold
* Fixed section folding arrows in inspector
2021-06-02 12:47:57 -03:00
floppyhammer
d202cf6899
fix-tree-item-dragging
2021-06-01 20:46:17 +08:00
Yuri Sizov
231daa6025
Fix disappearing relationship lines in Tree when item is out of view
2021-05-26 00:44:04 +03:00
Yuri Sizov
9c92e9d849
Add highlight to the relationship lines of selected Tree items
2021-05-25 18:56:06 +03:00