summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge pull request #68709 from MewPurPur/instance-begone-part3Rémi Verschelde2022-11-161-2/+2
|\ \ | | | | | | | | | Remove more instances of 'instance' being used as a verb
| * | Remove more instances of 'instance' being used as a verbVolTer2022-11-161-2/+2
| | |
* | | Merge pull request #67798 from KoBeWi/code_resurrectionRémi Verschelde2022-11-151-2/+1
|\ \ \ | |/ / |/| | | | | Uncomment drag forwarding in CreateDialog
| * | Uncomment drag forwarding in CreateDialogkobewi2022-10-231-2/+1
| |/
* | Don't allow instancing virtual node types in the Create New Node dialogAaron Franke2022-11-051-4/+4
| |
* | Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|/
* SCons: Re-enable treating `#warning` as error with `werror`Rémi Verschelde2022-10-101-3/+1
| | | | | | | | Replace all TODO uses of `#warning` by proper TODO comments, and will open matching bug reports to keep track of them. We don't have a great track record fixing TODOs, but I'd wager we're even worse for fixing these "TODO #warning" so we should prohibit this usage.
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-10/+10
| | | | change warnings=all to use /W4.
* Fix creating Nodes from Recent listMarkus Sauermann2022-09-301-9/+10
| | | | | - give shorter search matches more weight - allow matching against "Node"
* Add ability to flag classes as experimental or deprecated.SaracenOne2022-09-111-0/+9
|
* simplify title of create/change node dialogNathan Franke2022-09-071-7/+3
| | | | The create dialog in replace mode now always has the title `Change type of "%s"`, where `%s` is either "MyNodeName" or "MyVisualScript.vs".
* Improve handling of custom typeskobewi2022-09-051-2/+2
|
* Merge pull request #65039 from Mickeon/rename-treeitem-tooltipRémi Verschelde2022-08-301-1/+1
|\
| * Rename TreeItem's `set_tooltip` to `set_tooltip_text`Micky2022-08-301-1/+1
| | | | | | | | | | | | | | | | | | `set_tooltip` -> `set_tooltip_text` `get_tooltip` -> `get_tooltip_text` For consistency: `get_button_tooltip` -> `get_button_tooltip_text` And the `tooltip` parameter in `add_button` was renamed to `tooltip_text`
* | Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-4/+4
|/
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-1/+1
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-1/+1
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-7/+2
|/
* Changed the title of change node type dialogUmang Kalra2022-08-201-2/+6
|