Commit Graph

253 Commits

Author SHA1 Message Date
Thaddeus Crews
975f42227f
Merge pull request #97706 from lalitshankarchowdhury/fix-create-folder
Display proper message on invalid folder path
2024-10-21 16:39:10 -05:00
Clay John
f6279ffd56
Merge pull request #97885 from timothyqiu/useful-tooltip
Make `EditorFileDialog`'s Recent and Fav list show full path in tooltip
2024-10-17 16:53:55 -07:00
Lalit Shankar Chowdhury
25687c5b99
Display proper message on invalid folder path 2024-10-17 13:06:48 +05:30
Jayden Sipe
7261321d34 Show correct icons in EditorDebuggerRemoteObject 2024-10-15 16:40:16 -04:00
Haoyu Qiu
ecb56fca26 Make EditorFileDialog's Recent and Fav list show full path in tooltip 2024-10-06 21:32:31 +08:00
Rémi Verschelde
db66bd35af
Merge pull request #97820 from passivestar/quick-open-bg
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
🔗 GHA / 🪲 Godot CPP (push) Has been cancelled
Fix quick open background panel style
2024-10-04 22:44:00 +02:00
Rémi Verschelde
0d1873da9c
Merge pull request #95544 from KoBeWi/clean_code™
Misc code cleanup in EditorFileDialog
2024-10-04 22:43:13 +02:00
passivestar
08af57fb86 Fix quick open background panel style 2024-10-05 00:20:19 +04:00
Rémi Verschelde
3b41f73105
Merge pull request #80473 from KoBeWi/they're_the_same_picture
Unify make dir and duplicate dialogs
2024-10-03 15:27:04 +02:00
Stijn Hinlopen
6d23fac021 Fix crash in QuickOpenDialog because of double free. 2024-10-02 19:42:07 +02:00
kobewi
e2a96dde48 Unify make dir and duplicate dialogs 2024-10-02 14:57:37 +02:00
Stijn Hinlopen
06791e1acd New Quick Open Dialog
- Updated list view with thumbnails, and separate file name.
  - Added a grid view which has larger icons.
  - Added toggle to filter out files from addons.
  - Store history for each opened resource type.

New Editor settings for Quick Open:
  - Startup display mode (grid or list):
      - Determined by the requested resource type.
      - Whatever was last used.
  - Toggle to filter out files from addons (for persistence).

Notes
  - The dialog is now created once in EditorNode, and globally available for other components.
  - A fixed number of result scenes are instantiated, and reused based on query.
  - Drop support for multiselect.
2024-10-01 21:39:16 +02:00
Haoyu Qiu
38579a1e84 Unify editor version buttons 2024-09-28 23:26:23 +08:00
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
Some checks are pending
🔗 GHA / 📊 Static checks (push) Waiting to run
🔗 GHA / 🤖 Android (push) Blocked by required conditions
🔗 GHA / 🍏 iOS (push) Blocked by required conditions
🔗 GHA / 🐧 Linux (push) Blocked by required conditions
🔗 GHA / 🍎 macOS (push) Blocked by required conditions
🔗 GHA / 🏁 Windows (push) Blocked by required conditions
🔗 GHA / 🌐 Web (push) Blocked by required conditions
🔗 GHA / 🪲 Godot CPP (push) Blocked by required conditions
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
b67eb68e5b Misc code cleanup in EditorFileDialog 2024-08-15 13:51:27 +02:00
kobewi
065dd099dd Remove empty bind_methods() 2024-08-15 08:24:32 +02:00