diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-20 10:01:57 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-20 10:01:57 +0200 |
commit | 7999b4bb8ac8009f66a380472d8cd0c58ca1aa5a (patch) | |
tree | 807786534fef6f8dc4ac06ee798b8acce6f0e052 /doc | |
parent | 58505b0bce4cd9296eceed868cd71b95fa1fb554 (diff) | |
parent | 1052985b00b85b8001edce332b88b7135f3b14bd (diff) | |
download | redot-engine-7999b4bb8ac8009f66a380472d8cd0c58ca1aa5a.tar.gz |
Merge pull request #94324 from SomeRanDev/shader_hint_enum
GDShader: Add `hint_enum` for `uniform int`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/VisualShaderNodeIntParameter.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/VisualShaderNodeIntParameter.xml b/doc/classes/VisualShaderNodeIntParameter.xml index ed72584b1b..ba17da49a8 100644 --- a/doc/classes/VisualShaderNodeIntParameter.xml +++ b/doc/classes/VisualShaderNodeIntParameter.xml @@ -15,6 +15,9 @@ <member name="default_value_enabled" type="bool" setter="set_default_value_enabled" getter="is_default_value_enabled" default="false"> If [code]true[/code], the node will have a custom default value. </member> + <member name="enum_names" type="PackedStringArray" setter="set_enum_names" getter="get_enum_names" default="PackedStringArray()"> + The names used for the enum select in the editor. [member hint] must be [constant HINT_ENUM] for this to take effect. + </member> <member name="hint" type="int" setter="set_hint" getter="get_hint" enum="VisualShaderNodeIntParameter.Hint" default="0"> Range hint of this node. Use it to customize valid parameter range. </member> @@ -38,7 +41,10 @@ <constant name="HINT_RANGE_STEP" value="2" enum="Hint"> The parameter's value must be within the specified range, with the given [member step] between values. </constant> - <constant name="HINT_MAX" value="3" enum="Hint"> + <constant name="HINT_ENUM" value="3" enum="Hint"> + The parameter uses an enum to associate preset values to names in the editor. + </constant> + <constant name="HINT_MAX" value="4" enum="Hint"> Represents the size of the [enum Hint] enum. </constant> </constants> |