Replies: 2 comments 4 replies
-
Perhaps we could add a pseudo-protocol to access editor theme resources (textures, styleboxes)? Something like |
Beta Was this translation helpful? Give feedback.
4 replies
-
This is already tracked in: Thank you for your proposal and please see there for more details |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently (I'm using 4.4.stable) the decorator
@icon
only allows a full path to an image inside the project. Such as the following:However it would useful to allow the usage of godot's internal editor icons as all the times you don't need to create a new image to mark something like a custom singleton or a custom class.
The example could be a singleton scene manager to use the
PlayScene
icon. It would be fitting.There's another similar decorator I'm aware that's the opposite of this and is
@export_tool_button()
which only allows an editor icon. This decorator could be extended to allow a path to an icon for completeness.I want to propose supporting the following syntaxes to improve the editor. The engine could check if the strings is a path or not. I prefer this syntax since it reuses the already existing definitions.
The alternative is adding a new parameter for the button and a new decorator for the icon.
Beta Was this translation helpful? Give feedback.
All reactions