summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Discern between virtual and abstract class bindingsreduz2022-03-101-2/+2
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Fix crash in Create New Node dialog with certain user-created scriptsHaoyu Qiu2022-02-191-11/+11
|
* Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-0/+3
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-4/+4
|
* Merge pull request #40140 from hinlopen/tree-scroll-centerRémi Verschelde2022-02-081-3/+3
|\
| * Center when scrolling to tree item.Stijn Hinlopen2022-02-051-3/+3
| |
* | Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-2/+2
| | | | | | | | | | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* | Merge pull request #43015 from Xrayez/refactor-auto-instapropRémi Verschelde2022-02-081-11/+1
|\ \ | | | | | | Refactor auto-instantiation of `Object` properties in editor
| * | Refactor auto-instantiation of `Object` properties in editorAndrii Doroshenko (Xrayez)2021-12-281-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | Auto-instantiation is used by the create dialog, but should also be used by the editor inspector. This refactors object properties auto-instantiation into a dedicated method to be reused throughout editor (and possibly scripting).
* | | Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-2/+2
| |/ |/|
* | Vectors: Use clear() and has().Anilforextra2022-02-021-5/+5
| | | | | | | | | | | | Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
* | Rename String::is_subsequence_ofi to String::is_subsequence_ofnWilson E. Alvarez2022-01-261-1/+1
| |
* | Merge pull request #55509 from V-Sekai/create_node_and_doc_fixRémi Verschelde2022-01-171-13/+64
|\ \ | | | | | | Fix crashes when global named scripts extends an unnamed script
| * | Properly handle named class types inheriting from scripts without names.SaracenOne2021-12-011-13/+64
| | |
* | | Fix theming update in several editor classesYuri Roubinsky2022-01-161-3/+10
| | |
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| |/ |/| | | | | Happy new year to the wonderful Godot community!
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-4/+4
| | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | Fix error emitting when called new shader dialog from resource dialogYuri Roubinsky2021-12-071-1/+3
|/
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-1/+1
|
* Use "enum class" for input enumsAaron Franke2021-11-121-4/+4
|
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-1/+1
| | | | | | | | * `_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.
* Use Key enum instead of plain integersAaron Franke2021-08-101-0/+2
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-2/+1
|
* Merge pull request #50505 from Calinou/editor-create-dialog-display-class-nameRémi Verschelde2021-07-201-3/+11
|\ | | | | Display the class name in the description
| * Display the class name in the descriptionHugo Locurcio2021-07-161-3/+11
| | | | | | | | | | - Display a placeholder if no description is available. - Display a message if the search didn't return any results.
* | Optimize StringName usagereduz2021-07-181-8/+8
|/ | | | | | | | | | | * 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.
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-6/+6
|
* Consistently prefix bound virtual methods with _kobewi2021-06-121-3/+3
|
* Improve the editor themeHugo Locurcio2021-04-271-1/+0
| | | | | | | | | | 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 #41437 from KoBeWi/put_it_hereRémi Verschelde2021-03-011-0/+1
|\ | | | | Allow to create a node at specific position
| * Allow to create a node at specific positionTomasz Chabora2021-02-261-0/+1
| |
* | Change fallback icon for abstract nodes to have a grayed out colorAaron Franke2021-02-171-1/+3
|/
* Fix cases of resources destroyed too earlyPedro J. Estébanez2021-01-061-5/+5
|
* 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 unselect to deselectMarcel Admiraal2020-12-211-1/+1
|
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-4/+4
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Small naming and tooltip tweaksMichael Alexsander2020-07-231-0/+1
|
* Fix spelling & grammar in comments, docs, and messagesAndy Maloney2020-07-211-1/+1
|
* Fix editor crash when creating a custom resource from create dialogAndrii Doroshenko (Xrayez)2020-07-061-1/+0
|
* Improve Create Dialog search ranking and refactor calculation.Stijn Hinlopen2020-07-031-429/+324
| | | | | | | | | | | | Code changes: - Improved search ranking with various features (position in type string, string length proportion, in favorite list, in recent list). - Recent items are now stored in an ItemList (no visual change). - Removed results that had a parent that matched the search term to improve clarity. Performance: - Reduce types to process upon opening the dialog (instead of every search change), reduces number of types by 4~5. - Clear arrays after closing dialog instead of keeping them. - Various other optimizations.
* Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-1/+2
| | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* Object: Add usage hint to instantiate Object properties in editorRémi Verschelde2020-06-121-17/+32
| | | | | | | | | | | | | | | | | | Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve instance as default value, but instead it gets a (unique) default Curve instance when created through the editor (CreateDialog). ClassDB gets a sanity check to ensure that we don't do the same mistake for other properties in the future, but instead use the dedicated property usage hint. Fixes #36372. Fixes #36650. Supersedes #36644 and #36656. Co-authored-by: Thakee Nathees <thakeenathees@gmail.com> Co-authored-by: simpuid <utkarsh.email@yahoo.com>
* Fix custom types in node list searchTomasz Chabora2020-06-111-3/+5
|
* Add fallback icons and make custom ones appear in the recent/favorites list ↵Michael Alexsander2020-05-271-9/+14
| | | | in the "Create New" dialog
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-33/+62
| | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | 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-38/+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.
* Replace NULL with nullptrlupoDharkael2020-04-021-3/+3
|