Rémi Verschelde
645af49919
Merge pull request #97488 from KoBeWi/zakaz_tłumaczeń
...
Disable auto translation in EditorDirDialog
2024-09-26 18:45:53 +02:00
Rémi Verschelde
344ce2b047
Merge pull request #97344 from pafuent/editor_file_dialog_filter_sort
...
Add filter & sort to editor file dialog
2024-09-26 18:45:24 +02:00
Pablo Andres Fuente
163753949e
Add filter & sort to editor file dialog
...
Closes https://github.com/godotengine/godot-proposals/issues/2721
On `EditorFileDialog`:
* Add filter box that only shows folders and files in current directory that match
* Add sort button to sort files and directories
* Add a shortcut for CTRL+F for selecting the filter box
Also moved common code between `EditorFileDialog` and `FileSystemDock`
to it's own file.
Co-authored-by: fox <12120644+foxydevloper@users.noreply.github.com>
2024-09-26 11:08:13 -03:00
kobewi
4b734aeda9
Disable auto translation in EditorDirDialog
2024-09-26 14:28:48 +02:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files
2024-09-25 09:34:35 -05:00
Rémi Verschelde
7e62565f1e
Merge pull request #95787 from timothyqiu/domestic
...
Add translation domain
2024-09-20 16:06:23 +02:00
Thaddeus Crews
b37fc1014a
Style: Apply new `clang-format` changes
2024-09-20 08:09:48 -05:00
Rémi Verschelde
d788205826
Merge pull request #97173 from timothyqiu/drag-preview-translation
...
Set auto translate mode for drag previews
2024-09-19 17:13:50 +02:00
Haoyu Qiu
14321b8ed5
Set auto translate mode for drag previews
...
- 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.
2024-09-19 19:21:29 +08:00
kobewi
ad99c79472
Rework creating new folders in editor
2024-09-17 12:40:25 +02:00
Haoyu Qiu
818acb4290
Make editor use translation domains
...
How editor plugins use this feature:
1. Pick a unique translation domain name.
2. `_enter_tree()`: load translations into that translation domain.
3. Call `set_translation_domain()` for its root UI node.
4. `_exit_tree()`: remove that translation domain.
Plugins can also set the translation domain to `godot.editor` for
nested nodes that should use editor translations. `EditorFileDialog`
automatically does this.
2024-09-17 13:09:44 +08:00
Rémi Verschelde
4d35402c1c
Merge pull request #96400 from Maran23/inputmap-usage-for-filter-and-corresponding-refactor
...
Use InputMap actions consistently across all LineEdit's that filter an underlying Tree or ItemList.
2024-09-16 13:34:38 +02:00
matheusmdx
1eacd1fd0e
Fix is_inside_tree error when inspecting an Environment resource
2024-09-07 12:45:07 -03:00
Haoyu Qiu
8c5121d445
Remove duplicated read only checks in EditorSpinSlider
...
Also made read only checks in EditorSpinSlider's implementation to use
`read_only` directly for consistency.
2024-09-06 08:13:46 +08:00
Rémi Verschelde
88ed6af1e6
Merge pull request #96609 from detomon/prevent-changing-readonly-property
...
Prevent editing value on focus when `EditorSpinSlider` is read-only
2024-09-05 17:44:48 +02:00
Rémi Verschelde
ddef729fb2
Merge pull request #96569 from AThousandShips/fix_tree_button
...
[Editor] Prevent duplicate `Open in Editor` buttons in scene tree dock
2024-09-05 17:44:19 +02:00
detomon
88f1b679f3
Prevent editing value on focus when `EditorSpinSlider` is read-only
2024-09-05 15:26:09 +02:00
Rémi Verschelde
3cc99d3e31
Merge pull request #95983 from bruvzg/win_fd_opt_fix
...
[Windows] Emit native file dialog callback from event loop, fix selected options not saved.
2024-09-04 17:11:57 +02:00
Rémi Verschelde
de2f50777e
Merge pull request #95343 from Giganzo/unique-name-dialog
...
Add ConfirmationDialog when clicking on % button in SceneTree
2024-09-04 17:11:46 +02:00
A Thousand Ships
ab04d76e0e
[Editor] Prevent duplicate `Open in Editor` buttons in scene tree dock
...
Duplicate buttons were added when editor description changed
2024-09-04 17:00:57 +02:00
Giganzo
89c009b105
Add ConfirmationDialog when clicking on % button in SceneTree
2024-09-04 12:08:32 +02:00
Rémi Verschelde
e2dd56bea7
Merge pull request #95902 from kitbdev/remove-forced-mouse-focus
...
Clean up Viewport's `forced_mouse_focus`
2024-09-03 17:38:17 +02:00
Marius Hanl
74f64aaf98
Use InputMap actions consistently across all LineEdit's that filter an 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)
2024-08-31 21:10:27 +02:00
Yuri Rubinsky
52889ab7ee
[Scene] Add SceneStringName::toggled
2024-08-28 15:14:26 +03:00
Rémi Verschelde
3db976bdb7
Merge pull request #95906 from larspet/change-2d-zoom
...
Add a zoom speed setting to the 2D editor
2024-08-27 16:55:02 +02:00
Rémi Verschelde
5a61e10e09
Merge pull request #89265 from davthedev/spinbox-buttons-refactor
...
Improve SpinBox interaction, split arrows, add theme attributes
2024-08-27 16:54:39 +02:00
David Giardi
e371587147
Improve SpinBox interaction, split arrows, add theme attributes
2024-08-23 18:21:20 +02:00
bruvzg
ea252675aa
[Windows] Emit native file dialog callback from event loop, fix selected options not saved.
2024-08-23 09:53:16 +03:00
Lars Pettersson
dfdf7ebcda
Add a zoom speed setting to the 2D editor
2024-08-23 07:13:16 +02:00
kit
307e40e873
Clean up Viewport forced_mouse_focus
2024-08-21 09:37:44 -04:00
kobewi
d917d88b5b
Disable text trimming in SceneTreeEditor
2024-08-21 11:08:33 +02:00
Rémi Verschelde
219eba940f
Merge pull request #94773 from Hilderin/fix-add-child-node-problem-no-auto-expand
...
Fix scene node selection problem when no auto expand
2024-08-19 14:33:53 +02:00
Hilderin
e46280dbb5
Fix scene node selection problem when no auto expand
2024-08-17 06:32:56 -04:00
Rémi Verschelde
0f9925c0f9
Merge pull request #95542 from KoBeWi/go_bind_yourself
...
Remove empty `bind_methods()`
2024-08-16 14:35:51 +02:00
Rémi Verschelde
6fd0076ac4
Merge pull request #95028 from kitbdev/fix-spin-slider-hidden
...
Fix EditorSpinSlider when hidden
2024-08-16 14:32:57 +02:00
kobewi
065dd099dd
Remove empty bind_methods()
2024-08-15 08:24:32 +02:00
Giganzo
eb96b7b850
Fix order of Lock and Group icons in SceneTree
2024-08-09 14:06:55 +02:00
kit
d357a7d0f9
Fix EditorSpinSlider when hidden
2024-08-01 12:14:56 -04:00
Rémi Verschelde
efae318304
Merge pull request #94053 from Hilderin/fix-toggle-last-opened-bottom-panel-after-restoring-to-side
...
Fix Toggle Last Opened Bottom Panel not working after restoring FileSystem Dock to the side
2024-07-17 11:42:55 +02:00
Rémi Verschelde
ef3443ef35
Merge pull request #93165 from passivestar/scenetree-shortcut-focus
...
Prevent node rename shortcut from stealing focus from controls
2024-07-17 11:42:38 +02:00
Rémi Verschelde
383a6e4ef2
Merge pull request #94172 from jsjtxietian/open-save
...
Prevent confirm button being override to "Open" when in save file mode
2024-07-11 09:41:18 +02:00
jsjtxietian
4a4968f7d8
Prevent confirm button being override to "Open" when in save file mode
2024-07-10 19:49:03 +08:00
Yuri Rubinsky
af5fc8354b
Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit
2024-07-09 19:38:52 +03:00
passivestar
09f967bc00
Prevent node rename shortcut from stealing focus from controls
2024-07-09 16:29:35 +04:00
Hilderin
cf8378f426
Fix Toggle Last Opened Bottom Panel not working after restoring FileSystem Dock to the side
2024-07-07 17:52:19 -04:00
Hilderin
139288ca1e
Fix first time of Toggle Last Opened Bottom Panel opens Output panel
2024-07-07 12:11:37 -04:00
Rémi Verschelde
ed3eb6b643
Merge pull request #93544 from passivestar/validation-panel-label-alignment
...
Center the label of EditorValidationPanel
2024-06-24 17:49:07 +02:00
passivestar
4374761f76
Center the label of EditorValidationPanel
2024-06-24 15:22:02 +04:00
Anni Ryynänen
eed6f4fef4
Fix reselecting scene tree node after inspecting a resource
...
This broke when the `node_selected` connection was removed in #91435 .
Here it's returned, but the emit is removed from `_node_removed`. That
preserves the earlier fix while allowing nodes to be reselected.
2024-06-24 13:17:45 +03:00
Rémi Verschelde
d21812f49b
Merge pull request #93223 from passivestar/movie-button-colors
...
Allow theming movie writer button icon color
2024-06-20 16:18:27 +02:00