summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #45607 from Calinou/improve-editor-themeRémi Verschelde2021-05-061-1/+1
|\ | | | | Improve the editor theme
| * Improve the editor themeHugo Locurcio2021-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | The editor theme now makes use of rounded corners and less borders to follow modern visual trends. The default theme's colors were also tweaked to make the blue hue more subtle (similar to the Arc theme, which was removed as a consequence). The Alien theme was replaced by a Breeze Dark theme, which should blend in well with the KDE theme.
* | Merge pull request #44831 from gongpha/dont-update-tree-if-selectedRémi Verschelde2021-05-061-0/+4
|\ \ | | | | | | Blocking updating in SceneTreeEditor when an item was selected
| * | Blocking updating in SceneTreeEditor when editing an itemgongpha2021-01-061-0/+4
| | |
* | | Merge pull request #47855 from aaronfranke/doubleclickRémi Verschelde2021-05-041-5/+5
|\ \ \ | | | | | | | | Rename `doubleclick` to `double_click`
| * | | Rename `doubleclick` to `double_click`Aaron Franke2021-05-041-5/+5
| | |/ | |/|
* / | Calculate __focus_rect when TreeItem is focusedTomasz Chabora2021-04-281-1/+1
|/ /
* | Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
| |
* | Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-26/+26
| |
* | Improved 3D Scene ImporterJuan Linietsky2021-03-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Added option for importers to show an Advanced settings dialog * Created advanced settings dialog for Scene Importer * Cleaned up importers (remove many old/unused options) * Added the ability to customize every node, material, mesh and animation individually * Saving to animations and meshes to files is now a manual process, making it more predictable * Added the ability for materials to be replaced by external files (or to be made external, up to you). * When doubleclicking an impoted scene in the filesystem dock, it automatically shows the import settings instead of asking to open it. WARNING: Lightmap UV unwrap is not working, it needs to be re-made.
* | Check for null pointer in get_column_width(0)Justin Ho2021-03-181-1/+5
| |
* | Deselect column only if belongs to deselected itemkobewi2021-03-031-3/+3
| |
* | Merge pull request #45994 from Jummit/expose-edit-selectedRémi Verschelde2021-02-221-0/+1
|\ \ | | | | | | Expose edit_selected in Tree
| * | expose edit_selected in TreeJummit2021-02-221-0/+1
| | |
* | | Select TreeItem if none is selectedkobewi2021-02-161-0/+3
| | |
* | | [CTL] Add missing font outline drawing routines and theme constants.bruvzg2021-02-141-6/+33
| | |
* | | Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-52/+0
| | |
* | | Merge pull request #45812 from RandomShaper/keep_selected_visibleRémi Verschelde2021-02-091-0/+1
|\ \ \ | | | | | | | | Keep selected node visible after filter change
| * | | Expose Tree::scroll_to_item()Pedro J. Estébanez2021-02-081-0/+1
| | | |
* | | | Set selected Tree item to null when deselectedkobewi2021-02-071-0/+8
|/ / / | | | | | | | | | Co-authored-by: Brody Eller <wviper3@gmail.com>
* | / Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
* | Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* | Rename Math::stepify to snappedMarcel Admiraal2020-12-281-2/+2
| |
* | Rename empty() to is_empty()Marcel Admiraal2020-12-281-4/+4
| |
* | Rename Control margin to offsetMarcel Admiraal2020-12-231-9/+9
| |
* | Cleanup unused engine codeTomasz Chabora2020-12-091-10/+0
| |
* | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-71/+428
|/ | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2/+2
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Respect Tree.set_icon_max_width size for drawing selection boxvolzhs2020-10-131-0/+3
|
* Updated getters and setters names for toplevelDuroxxigar2020-10-021-1/+1
|
* Dropping file on parrent dirrectory fixedDashcell2020-09-161-2/+3
|
* Check if old mouse column is still available.Marcel Admiraal2020-09-081-4/+9
|
* Make all String float conversion methods be 64-bitAaron Franke2020-07-271-1/+1
|
* Prevent infinite loop in Tree incremental searchTomasz Chabora2020-07-201-0/+8
|
* Prevent dragging from SceneTree buttonsHaoyu Qiu2020-07-021-0/+41
|
* Fix doubleclick on tree item, restore input focus on previous windows.Juan Linietsky2020-07-011-4/+4
| | | | Closes #37335
* Fix Tree's 'scroll_to_item()' not working correctly on some casesMichael Alexsander2020-06-301-1/+1
|
* Tree: Calling update in _gui_input less frequentlyGiuliano Barberi2020-06-061-8/+13
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-147/+279
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-345/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-6/+12
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Bind set_suffix/get_suffix in TreeStanislav Labzyuk2020-05-061-0/+3
|
* Rename InputFilter back to InputRémi Verschelde2020-04-281-9/+9
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Remove unused ofs variabletheludovyc2020-04-081-7/+0
|
* Replace NULL with nullptrlupoDharkael2020-04-021-67/+67
|
* Renaming of servers for coherency.Juan Linietsky2020-03-271-14/+14
| | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* Popups have also been converted to windowsJuan Linietsky2020-03-261-25/+38
| | | | Controls using the old modal API have been replaced to use popups.
* Open sub-windows as embedded if the OS does not support themJuan Linietsky2020-03-261-3/+8
|