summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@f128f383e892865379cb8b14e7bcc9858efe2973Spartan3222024-11-271-0/+2
|\
| * Add theme type variations for secondary Trees and ItemListspassivestar2024-11-191-0/+2
| |
* | Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-2/+2
|\|
| * Use `(r)find_char` instead of `(r)find` for single charactersA Thousand Ships2024-11-171-2/+2
| |
* | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-2/+2
|\|
| * Rename internal Button icon to button_icon to match exposed methodsAaron Franke2024-10-291-2/+2
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Set auto translate mode for drag previewsHaoyu Qiu2024-09-191-0/+1
| | | | | | | | | | | | | - Controls - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input. - `TabBar`: Use the same auto translate mode as the node. - `RichTextLabel`: Always disable since auto translation is done differently from other controls (selection text you get programmatically is always after auto translation). - Editor - Disable drag preview auto translation if the text is user input, filename, or class name. - Also disabled unexpected auto translation for audio bus effect names.
* Use InputMap actions consistently across all LineEdit's that filter an ↵Marius Hanl2024-08-311-20/+13
| | | | | | | | | underlying Tree or ItemList. - Instead of checking for Key::UP, Key::DOWN, Key::PAGEUP, Key::PAGEDOWN etc., we rather check for the action like 'ui_up' or 'ui_down'. - Also use AcceptDialog's 'register_text_enter' functionality to consistently close a dialog when ENTER is pressed while the LineEdit has focus (instead of redirecting ENTER keys to e.g. the underlying Tree). - Unify the LineEdit filter behavior for the SceneTreeDialog and corresponding usages - Improve OK Button disablement (something should be selected)
* Rework global class hiding in addonskobewi2024-06-251-2/+7
|
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-2/+2
|
* [Scene] Add `SceneStringNames::item_selected`A Thousand Ships2024-06-191-1/+1
|
* Improve performance of the 'Create New Node' dialogMarius Hanl2024-05-151-61/+44
| | | | | | - Merged 3 for loops into 1 and save Vector allocation - Use get_instance_base_type() or get_global_name() instead of get_language()->get_global_class_name() for performance considerations - Use StringName where appropriate
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-1/+1
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
|
* Replace `find` with `contains/has` where applicableA Thousand Ships2024-05-081-1/+1
| | | | | | | * Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
* Editor: Display deprecated/experimental messages in tooltipsDanil Alexeev2024-04-181-13/+3
|
* Disable Create button for abstract classeskobewi2024-04-171-1/+8
|
* Fix unexpected auto translation of Tree contentHaoyu Qiu2024-03-181-0/+2
|
* Add const lvalue ref to editor/* container parametersMuller-Castro2024-02-261-1/+1
|
* Make auto translation inheritableMichael Alexsander2024-02-151-1/+1
|
* Split theme generation logic into several subroutinesYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | This change introduces a new theme configuration struct to be passed to the aforementioned routines to better control reuse of styles and definitions in the generator. Everything not passed and not explicitly shared is scoped so it is not automatically accessible throughout the routine. This should ensure that the decision to share styles is a conscious one. In the future we will try to reduce the number of unique definitions and share most of it. This PR is a stepping stone on this path. This also puts the effort into separating redefinitions of default theme items vs custom types introduced only by the editor. In a few cases where editor-specific definitions need to reference default definitions we simply fetch them from the theme. It's not ideal and hides the dependency a bit, but hopefully these cases will be abstracted properly in due time.
* Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* Update deferred calls to use Callableskobewi2024-01-091-1/+1
|
* Merge pull request #83577 from DennisManaa/fix-translation-for-item-listRémi Verschelde2024-01-041-0/+1
|\ | | | | | | Add automatic translation of items to ItemList
| * Implement automatic translation for ItemListDennisManaa2023-10-231-0/+1
| |
* | Improve threading in ClassDB and EditorHelpYuri Sizov2023-10-201-3/+5
|/
* Revamp how documentation tooltips workMichael Alexsander2023-10-031-2/+3
|
* Merge pull request #81101 from 398utubzyt/dotnet/abstract-class-supportRémi Verschelde2023-09-251-2/+8
|\ | | | | | | C#: Add abstract class support
| * C#: Abstract script class support398utubzyt2023-09-151-2/+8
| |
* | Fix accessing editor theme items throughout the UIYuri Sizov2023-09-151-7/+2
|/ | | | This also exposes `EditorInterface::get_editor_theme`.
* Merge pull request #70329 from ↵Rémi Verschelde2023-09-111-0/+4
|\ | | | | | | | | | | Daylily-Zeleen/daylily-zeleen/register_internal_class Allow GDExtension to register unexposed classes.
| * Allow GDExtension to register unexposed class.Daylily-Zeleen2023-09-041-0/+4
| |
* | Add EditorStringNames singletonkobewi2023-09-031-8/+9
|/
* Use the gray color for all abstract classesMewPurPur2023-08-311-8/+6
|
* Only display 15 nodes in the Recent section of the Create New Node dialogHugo Locurcio2023-06-231-2/+4
| | | | | | | This prevents the history size from becoming too large, which made it less useful. This also fixes an off-by-one error in the completion scoring algorithm.
* Merge pull request #63732 from DarkMessiah/create-new-node-arrow-navigationYuri Sizov2023-05-291-2/+15
|\ | | | | Add arrow navigation for the Create New Node window
| * Add spacebar for folding in the Create New Node windowStanislav Labzyuk2023-05-281-2/+15
| |
* | Make icons of scripted and custom classes fit the editor UIYuri Sizov2023-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
* | Apply clamp_to_embedder on parent resize and popup.Ryan Roden-Corrent2023-03-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | Fixes #75084. The clamp_to_embedder setting was added in 8be16e0704873f0c9bab8c10dafe2607a00ff78f, but was not set on any of the in-editor dialogs. This patch sets `clamp_to_embedder` on editor dialogs so they cannot be dragged out of the frame. This also modifies `clamp_to_embedder` so a window is clamped to the bounds of an embedder when it pops up and when the parent is resized.
* | Fix filtering editor nodes in Create Dialogkobewi2023-01-271-1/+6
|/
* Remove set_drag_forwarding_compat()kobewi2023-01-141-7/+1
|
* GDScript: Fix extending abstract classes, forbid their constructionDmitrii Maganov2023-01-121-0/+5
|
* Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-1/+1
| | | | | | | | * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Check if class exists before checking if it's virtual in Create DialogAaron Franke2022-12-111-1/+2
|
* Merge pull request #67553 from Sauermann/fix-new-node-dialog-descriptionRémi Verschelde2022-12-051-1/+2
|\ | | | | | | Fix Updating New Node Dialog Description of Custom Nodes
| * Fix Updating New Node Dialog Description of Custom NodesMarkus Sauermann2022-10-181-1/+2
| | | | | | | | | | | | | | | | | | The text of the first column in the selection Tree is used to compare Node names. Since this text contains additionally the path to the file, it doesn't match anything. This patch separates the path and puts it into the cell as suffix.