summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-7/+7
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-19/+19
|
* i18n: Add support for translating the class referenceRémi Verschelde2020-03-201-2/+2
| | | | | | | | | | | | | | - Parse `.po` files from `doc/translations/*.po` like already done with `editor/translations/*.po`. - Add logic to register a doc translation mapping in `TranslationServer` and `EditorSettings`. - Add `DTR()` to lookup the doc translation mapping (similar to `TTR()`). Strings are automatically dedented and stripped of whitespace to ensure that they would match the translation catalog. - Use `DTR()` to translate relevant strings in `EditorHelp`, `EditorInspector`, `CreateDialog`, `ConnectionsDialog`. - Small simplification to `TranslationLoaderPO`, the path argument was not really meaningful.
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-4/+4
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-4/+4
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Signals: Port more uses of connect_compatRémi Verschelde2020-02-281-1/+5
| | | | | | | | | | | | | | | | | | Those were problematic as they call a method of their parent class, but callable_mp does not allow that unless it's public. To solve it, we declare a local class that calls the parent class' method, which now needs to be protected to be accessible in the derived class.
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-20/+11
|/ | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-12/+12
| | | | objects and made them default.
* Add ignoring of disabled recent and favorite classes in createPucklaMotzer092020-01-091-14/+2
|
* Recent Nodes now respect Editor Profilesveryprofessionaldodo2020-01-081-1/+2
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Cleans up headers included in editor_node.hHaoyu Qiu2019-12-241-0/+2
|
* Node create dialog filtering optimizationPouleyKetchoupp2019-11-061-3/+18
| | | | Avoid loading the same scripts again and parse them when updating the node type tree.
* Add overriden properties to the documentationBojidar Marinov2019-09-041-2/+0
| | | | Fixes #31855
* Fix selecting recent node in CreateDialogBhupendra Aole2019-08-291-24/+31
| | | | | | | If the node name matches exactly as the search, the node should be selected. This also fixes when the user clicks on recent nodes. Fixes #24044
* Fixes minor issues found by static analyzerqarmin2019-07-071-2/+2
|
* Merge pull request #30126 from qarmin/remove_unnecessary_codeRémi Verschelde2019-07-011-1/+2
|\ | | | | Remove unnecessary code and add some error explanations
| * Remove unnecessary code and add some error explanationsqarmin2019-07-011-1/+2
| |
* | Better pre-selection of search result nodes in "Create New Node" dialog.Marcus Brummer2019-06-261-17/+38
|/ | | | | | | | Also search for substrings in class types, not just subsequences. If for the current search term a substring has been found in a class type name, prefer the substring match over the subsequence. Fixes #26010
* Merge pull request #29645 from YeldhamDev/create_dialog_reselectRémi Verschelde2019-06-121-0/+2
|\ | | | | Allow reselecting items in the "Favorites" and "Recent" lists in the create dialog
| * Allow reselecting items in the "Favorites" and "Recent" lists in the create ↵Michael Alexsander Silva Dias2019-06-091-0/+2
| | | | | | | | dialog