1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00
Commit Graph

161 Commits

Author SHA1 Message Date
Haoyu Qiu
3adb6a605c Fix some extensions missing in resource load dialog 2025-05-09 10:37:44 +08:00
Pāvels Nadtočajevs
302fa831cc Initial editor accessibility. 2025-04-08 20:25:48 +03:00
Yufeng Ying
4029051bb1 Change ClassDB::get_inheriters_from_class. 2025-04-04 23:47:19 +08:00
Rémi Verschelde
b4edd92266 Merge pull request #104604 from KoBeWi/why_new
Remove New prefix from EditorResourcePicker
2025-03-28 17:30:32 +01:00
kobewi
75881f8322 Use initializer list in Arrays 2025-03-26 18:38:15 +01:00
kobewi
e6ecce18bb Remove New prefix from EditorResourcePicker 2025-03-25 14:44:29 +01:00
PhairZ
c0d0531459 fix blank popup menu on EditorResourcePicker 2025-03-19 03:09:29 +02:00
kobewi
6f25babd6b Remove empty constructors and destructors from editor/ 2025-03-17 21:20:02 +01:00
Thaddeus Crews
409fe3c944 Merge pull request #102534 from ttencate/feature/drag_drop_into_array
Improve drag and drop into array property editors
2025-03-14 10:06:06 -05:00
A Thousand Ships
466590d0ec Use get_slicec instead of get_slice for single character splitters 2025-03-08 20:36:37 +01:00
Thomas ten Cate
cd8eaaa07b Fix resource property editor incorrectly accepting script files
See discussion on #102534. Before this fix, it was possible to drag a
file `CustomResource.gd` with `class_name CustomResource` onto a
property of type `CustomResource`. Of course, the intention is that only
`Resource`s with the `CustomResource` script attached are accepted.

(Actually accepting the script, but creating a resource from it
automatically, is left as a future improvement.)
2025-03-08 19:24:33 +01:00
Thaddeus Crews
eee39f004b Merge pull request #101817 from Giganzo/resource-drag-open
Fix resource details will unexpectedly expand
2025-02-03 11:14:44 -06:00
Rémi Verschelde
89ea6468d2 Revert "EditorResourcePicker: Replace options to load file with button for QuickOpenDialog"
This reverts commit df01daf3b7.

User feedback has shown that this change isn't a clear improvement, because:
- The icon eats up horizontal space that's already limited here, cutting the text.
- The "Load" functionality was completely removed, while it's still useful for many.
- It breaks user expectations to no longer have load options next to Clear/Save/etc.
2025-01-30 16:40:05 +01:00
Giganzo
9e36c044ea Fix resource details will unexpectedly expand 2025-01-19 16:18:13 +01:00
A Thousand Ships
a1846b27ea Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Stijn Hinlopen
df01daf3b7 EditorResourcePicker: Replace options to load file with button for QuickOpenDialog
- Remove option to load files from drop down
 - Make _update_menu_items solely responsible for adding the right separators. Previously
   the overridable set_create_options would need to do this, but it could not know whether
   more properties were going to be added.
2024-12-22 22:47:17 +01:00
Thaddeus Crews
34797fa580 Merge pull request #99653 from Giganzo/deselect-dropdown-in-single-window-mode
Fix closing dropdown on EditorResourcePicker in Single Window Mode
2024-12-19 19:59:49 -06:00
Hugo Locurcio
7a04d85ec3 Only allow valid types in Decal, Light3D projector, PointLight2D texture and CSGMesh3D mesh
If an invalid type is supplied (which can still be done from a script),
a warning is printed (along with a workaround for ViewportTexture).

This also adds support for "negative" resource hints such as
"Texture2D,-ViewportTexture" to exclude one or more subclasses
from a class hint.

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-12-17 20:41:12 +01:00
A Thousand Ships
af56d6e8e8 Use SceneStringName in more places 2024-12-02 14:39:16 +01:00
Giganzo
06d7b67f8a Fix closing dropdown on EditorResourcePicker in Single Window Mode 2024-11-24 23:47:59 +01:00
Aaron Franke
562c666e3d Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
bjornmp
06998a3927 Enforce that custom nodes keep their original type
Enforce that custom nodes and resources created via the "Create New Node" dialog, should permanently retain their original type (script). This means:

- Type continuity: It should be impossible for the user to (accidentally) clear the original script of a custom node that was created via the "Create New Node" dialog.

- Extensibility: The user should be able to extend custom types as usual (create a script that inherits the original type and replace the original script of that node with his own). However, if he then clears his extension-script from that node later on, the custom type should revert to its original script instead of becoming a non-scripted type.
2024-10-22 18:18:16 +02:00
Rémi Verschelde
def5a04d06 Merge pull request #97543 from KoBeWi/to_edit_or_not_to_edit
Fix closing Theme Editor not actually closing it
2024-10-04 22:43:41 +02:00
kobewi
4a747bdef9 Add _resource_changed() helper method to EditorResourcePicker 2024-10-04 22:29:43 +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
kobewi
66d2b0fc6a Fix closing Theme Editor not actually closing it 2024-09-27 17:08:20 +02:00
kobewi
514bbbfde3 Fix generic conversion icon 2024-09-17 13:59:21 +02:00
SaracenOne
f44bce2ee0 Add support for resource conversion plugins in filesystem dock. 2024-09-16 15:11:40 +01:00
Hilderin
b97c128b34 Fix no unsaved indicator Save As resource 2024-08-31 08:47:35 -04:00
jsjtxietian
da5f7c6b40 Add support for dragging a shader to user exported material property 2024-08-20 11:05:52 +08:00
Christian Kaiser
04f6435aa8 Fix AudioStreamPlayer icons, improve audio resource picker styling 2024-06-27 10:58:56 -03:00
kobewi
40be5c4681 Add brief description tooltips to EditorResourcePicker 2024-06-24 15:08:59 +02:00
A Thousand Ships
ca18a06ecb [Scene] Add SceneStringNames::confirmed 2024-06-19 09:40:54 +02:00
A Thousand Ships
d519715d94 [Scene] Add SceneStringNames::font(_size/_color) 2024-06-18 17:24:27 +02:00
A Thousand Ships
926afccbd8 [Scene] Add SceneStringNames::panel 2024-05-30 22:54:50 +02:00
A Thousand Ships
755a0efbb6 [Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
A Thousand Ships
ee79386f7b [Scene] Add SceneStringNames::pressed 2024-05-14 15:51:28 +02:00
kobewi
413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
Rémi Verschelde
d9bf750cbf Merge pull request #84443 from KoBeWi/cookies_for_EditorResourcePicker
Cache allowed types in EditorResourcePicker
2024-04-30 17:02:58 +02:00
Rémi Verschelde
8063ea9e32 Merge pull request #84446 from KoBeWi/EditorYOLOPicker
Don't check resource type assigned in property
2024-04-26 15:13:06 +02:00
kobewi
b9c78ba174 Prevent dropping Resource to the same resource picker 2024-04-05 22:26:29 +02:00
Rémi Verschelde
05372773e1 Merge pull request #89599 from timothyqiu/vegetate
Fix unexpected auto translation of editor `Tree` content
2024-03-23 21:15:39 -07:00
A Thousand Ships
79ba22a73f Use Vector* component-wise min/max/clamp functions where applicable 2024-03-20 13:47:42 +01:00
Haoyu Qiu
8cd1ebbd6d Fix unexpected auto translation of Tree content 2024-03-18 09:31:00 +08:00
Rémi Verschelde
0ac99b94d3 Merge pull request #88572 from ajreckof/fix-crash-on-dictionarry-new-key/value-change-type-when-inspector-opened
Fix crash on changing resource type of dictionary new key/value while editing the resource.
2024-02-28 09:34:27 +01:00
ajreckof
e922abd975 Fix crash on changing resource type of dictionary new key/value while editing the resource 2024-02-28 01:31:52 +01:00
Muller-Castro
1638c1b28f Add const lvalue ref to editor/* container parameters 2024-02-26 15:28:15 -03:00
Rémi Verschelde
bc45802201 Merge pull request #88435 from AThousandShips/quick_load_fix
[Editor] Improve clarity and style of `ResourcePicker` menu
2024-02-18 11:23:45 +01:00
A Thousand Ships
e5b751b6eb [Editor] Improve clarity and style of ResourcePicker menu
* Adds ellipses to options opening a new menu
* Adds a descriptive tooltip to `Quick Load`
2024-02-17 16:26:31 +01:00
Michael Alexsander
7b42c24550 Make auto translation inheritable 2024-02-15 16:51:19 -03:00