You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A battle game where each units are assigned to an element. In each element, there are two lists: one for which elements it is strong to, and the other for which elements it is weak to.
Describe the problem or limitation you are having in your project
Every time I have to choose a resource, I have to dig up the filesystem to find the desired one.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add a new annotation, with a directory path an arguement, for Resource.
For now I'm think of @export_from_dir(String directory = "res://")
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Using the above project as an example, the elements are stored in the project:
Then, in unit.gd, assign its element as a Resource like the script below:
@export_from_dir("res://elements") var element: Resource
In the scene, Unit is unit.gd extended from Node2D, so in the inspection, it should have Element as a property. Clicking on the field opens the list of elements instead of a list of new resources and further sub-classes (if any), then an option to Quick Load and Load.
If this enhancement will not be used often, can it be worked around with a few lines of script?
At best, I can access EditorPlugin.get_editor_interface().get_inspector(). There, however, nowhere in EditorInspector can I edit a property or its field.
Without scripting, Quick Load is the only saving grace of this issue. However, it takes a minimum of four clicks (Drop-down > Quick Load" > Desired Item > Load), and that's using a new extension of Resource.
Is there a reason why this should be core and not an add-on in the asset library?
The editor plugin cannot change the way an annotation works. It also hasn't reached the point where it can edit how a node's property is displayed in the inspector.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
A battle game where each units are assigned to an element. In each element, there are two lists: one for which elements it is strong to, and the other for which elements it is weak to.
Describe the problem or limitation you are having in your project
Every time I have to choose a resource, I have to dig up the filesystem to find the desired one.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add a new annotation, with a directory path an arguement, for Resource.
For now I'm think of
@export_from_dir(String directory = "res://")
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Using the above project as an example, the elements are stored in the project:
Then, in
unit.gd
, assign its element as a Resource like the script below:In the scene, Unit is
unit.gd
extended fromNode2D
, so in the inspection, it should haveElement
as a property. Clicking on the field opens the list of elements instead of a list of new resources and further sub-classes (if any), then an option to Quick Load and Load.If this enhancement will not be used often, can it be worked around with a few lines of script?
At best, I can access
EditorPlugin.get_editor_interface().get_inspector()
. There, however, nowhere in EditorInspector can I edit a property or its field.Without scripting, Quick Load is the only saving grace of this issue. However, it takes a minimum of four clicks (Drop-down > Quick Load" > Desired Item > Load), and that's using a new extension of Resource.
Is there a reason why this should be core and not an add-on in the asset library?
The editor plugin cannot change the way an annotation works. It also hasn't reached the point where it can edit how a node's property is displayed in the inspector.
The text was updated successfully, but these errors were encountered: