-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add VariantResource
class
#30
Conversation
Represents `PropertyInfo` in the engine.
4972e9f
to
f0966ce
Compare
Yes, you read it right. :)
e1fc637
to
cabbed5
Compare
Added various Hints are listed from Hint string are used to configure the property's editor behavior: Most essential hint strings are documented in Godot at global scope documentation.
Modifying That said, I think this is good enough to merge! |
More in accordance with `Resource` types, rather than built-in types.
Only `Color` is supported for now. Made sure to initialize via `EditorNode::add_init_callback`, else would crash.
f9a0f50
to
8f3d7d3
Compare
Implemented resource previews as described in godotengine/godot-proposals#1734 (comment). |
The `value` is not exposed as property, as it's configured dynamically. Yet it can still be used as a property in GDScript, and probably other languages.
Generating default icon resource previews for each Except for The Integer, float and string values could be rendered I think, but that's only theory and not sure whether it's possible/worth it. |
The same as in editor property.
So, there are actually "GuiChecked" and "GuiUnchecked" editor icons which can be reused to preview An appropriate icon was found with the help of https://github.com/Xrayez/godot-editor-icons-previewer plugin. 🙂 Which, may be worth integrating in Goost at some point, currently |
Also optimizes `Color` texture previews.
Allows to store built-in core data types as resources. Can be edited via editor inspector and stored on disk!
Array
Dictionary
Closes godotengine/godot-proposals#1740.
Color
Closes godotengine/godot-proposals#1734.
And other types. It means that the value is changed dynamically whenever you change the
type
property, and in some cases allows you to convert the old value to a new type.