You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Carry property hint and hint string through to Visualscript virtual functions.
This commit is contained in:
@@ -40,6 +40,8 @@ class VisualScriptFunction : public VisualScriptNode {
|
||||
struct Argument {
|
||||
String name;
|
||||
Variant::Type type;
|
||||
PropertyHint hint;
|
||||
String hint_string;
|
||||
};
|
||||
|
||||
Vector<Argument> arguments;
|
||||
@@ -70,7 +72,7 @@ public:
|
||||
virtual String get_text() const;
|
||||
virtual String get_category() const { return "flow_control"; }
|
||||
|
||||
void add_argument(Variant::Type p_type, const String &p_name, int p_index = -1);
|
||||
void add_argument(Variant::Type p_type, const String &p_name, int p_index = -1, const PropertyHint p_hint = PROPERTY_HINT_NONE, const String &p_hint_string = String(""));
|
||||
void set_argument_type(int p_argidx, Variant::Type p_type);
|
||||
Variant::Type get_argument_type(int p_argidx) const;
|
||||
void set_argument_name(int p_argidx, const String &p_name);
|
||||
|
||||
Reference in New Issue
Block a user