Commit Graph

167 Commits

Author SHA1 Message Date
5b49fd4207 Selectively apply FOCUS_ACCESSIBILITY to the Labels instead of setting it by default. 2025-04-23 12:47:31 +03:00
e8b703a80e Merge pull request #105148 from salianifo/contrib-upstream
Fix exported Node/Resource variables resetting when extending script in the SceneTreeDock
2025-04-15 12:28:42 -05:00
ee6c321fe6 Fix exported Node/Resource variables resetting when extending script in the SceneTreeDock 2025-04-10 19:01:15 -04:00
302fa831cc Initial editor accessibility. 2025-04-08 20:25:48 +03:00
5ce9619219 Merge pull request #104701 from KoBeWi/inspecktore
Inspector localization improvements
2025-03-28 14:34:56 +01:00
b33d907813 Merge pull request #104584 from KoBeWi/example_pr_for_translations
Improve auto-translation for static strings in docks
2025-03-28 14:33:10 +01:00
b4db9dc688 Update Inspector when rename a file via File System Dock
Fixes #56803

Connecting `FileSystemDock` `files_moved` signal to `InspectorDock`
and then checking if we need to update or not the object stored
on `EditorSelectionHistory`.
2025-03-28 08:26:17 -03:00
b291156ece Inspector localization improvements 2025-03-27 23:28:02 +01:00
ede1f8ef7e Improve auto-translation for static strings in docks 2025-03-26 14:09:38 +01:00
5c66129e62 Allow to select multiple remote nodes at runtime 2025-03-11 12:35:41 -03:00
cdaeb31764 Fix Make Sub-Resources Unique shortcut focus 2025-01-22 18:53:26 +03:00
96e59b99ba Cleanup editor history when opening the history menu popup & set appropriate class icon for object in it. Handle do&undo for selection when reparenting 2025-01-07 23:15:30 +01:00
1b04e6f46d Respect PROPERTY_USAGE_NEVER_DUPLICATE with Make Sub-Resources Unique 2024-12-30 11:25:18 +01:00
bf4e5cca3f Make editor's shortcut names translated on-site 2024-12-18 13:00:30 +08:00
696ca9db3c Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
562c666e3d Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
ac77c95ee1 Add icon for Inspector dock context menu Show in FileSystem item 2024-10-08 02:09:53 +11:00
60708ccbfe Merge pull request #96542 from Maran23/inspector-scrolls-away
Fix Inspector may scroll away when editing a property that adds or removes sub properties
2024-10-01 17:30:45 +02:00
kit
5e1c9d68aa Extract editor main screen 2024-09-09 11:06:18 -04:00
27b7b433e0 Fix Inspector may scrolls away when editing a property that adds or removes sub properties 2024-09-04 01:20:11 +02:00
ad7a2d19a6 Expose EditorUndoRedoManager's clear_history() 2024-08-29 19:23:39 +02:00
b314a9105a Remove references to deleted capitalize_properties setting 2024-08-21 17:27:54 +02:00
010d02a6ee Tweak property name style selector in the editor inspector
A preview is now displayed in the options' text:

- Raw (e.g. "z_index")
- Capitalized (e.g. "Z Index")
- Localized (e.g. "Z Index")
  - "Z Index" is localized in the user's language.
2024-06-20 00:27:48 +02:00
ca18a06ecb [Scene] Add SceneStringNames::confirmed 2024-06-19 09:40:54 +02:00
d519715d94 [Scene] Add SceneStringNames::font(_size/_color) 2024-06-18 17:24:27 +02:00
755a0efbb6 [Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
ee79386f7b [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
5a5b18c2fc Editor: Fix categories and tooltips in TileSet editor 2024-05-14 10:23:14 +03:00
955d5affa8 Reduce and prevent unnecessary random-access to List
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)

* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
f298aaa956 Fix unexpected auto-translation of more editor components 2024-03-28 10:50:57 +08:00
8cd1ebbd6d Fix unexpected auto translation of Tree content 2024-03-18 09:31:00 +08:00
1638c1b28f Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
5b5de0e167 Add hover highlight to main editor buttons
Updates styling of the editor run bar, plugin, bottom panel, icon buttons, and main menu buttons for accessibility.
2024-02-16 14:49:44 -05:00
97a77c5193 Add support for search shortcut to all docks 2024-01-22 22:37:59 +04:00
95b27fe8c7 Reorganize code related to editor theming
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.
2024-01-16 11:57:45 +01:00
0e8f90f4c8 Update deferred calls to use Callables 2024-01-09 16:11:47 +01:00
6e49ff91c0 Clear sub-resources list when no sub-resource exists 2023-12-21 18:14:10 +08:00
6e20c78c20 Limit custom icons size in various editor widgets 2023-10-26 17:56:09 +02:00
75ee58fd04 [Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable 2023-09-15 20:15:39 +02:00
6de34fde27 Add EditorStringNames singleton 2023-09-03 19:58:18 +02:00
d24ee551ec Allow EditorInspector to change its property name style when necessary
Previously, an EditorInspector's property name can only be set from
outside. Inspectors used for settings needs to respond to changes in
editor settings. So a few boilerplate code is almost always needed,
including watching for a certain editor setting in `_notification()`.

This commit adds a `set_use_settings_style()` function to tell the
inspector to watch for editor settings changes on its own.
2023-04-29 10:51:00 +08:00
4154039832 Improve includes of EditorNode (and everything else)
Also start organizing editor-specific GUI components
into a dedicated folder, `editor/gui`.
Also move `editor_file_server` next to the rest of debugger classes.
2023-04-07 18:59:49 +02:00
9b500ab53c Fix premature theme item access in editor tools 2023-04-03 18:01:11 +02:00
cb0fa0ed7b Fix error when opening Inspector's dots menu
When the inspector is empty, opening the "extra resource options" menu
produces a error:

> Condition "current_res.is_null()" is true.

Opening the mneu with no current resource is valid use case, so
`ERR_FAIL_COND` should not be used.
2023-03-16 15:06:57 +08:00
0c71c443ef Fix corrupt undo after making sub-resources unique 2023-02-13 19:18:03 +01:00
4ae168eb04 Rework EditorPlugin editing logic 2023-01-22 00:20:45 +01:00
b58111588a Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
6d65d886f2 Add Show in FileSystem option in the inspector 2023-01-08 23:25:13 +01:00
495ec2130e Merge pull request #70923 from KoBeWi/actual_resource
Refactor inspector code for getting resource
2023-01-08 22:37:05 +01:00
0ba5d41a44 Fix unreadable text in Make Sub-Resources Unique window 2023-01-06 23:23:30 +08:00