1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Allow typing hints for Array class (in GDScript and Inspector/ArrayPropertyEdit)

Closes #3586, by implementing the `1b` variation mentioned there.
This commit is contained in:
Bojidar Marinov
2016-10-26 14:38:41 +03:00
parent 24337f9c5e
commit 713f1451b9
4 changed files with 102 additions and 16 deletions

View File

@@ -39,6 +39,9 @@ class ArrayPropertyEdit : public Reference {
ObjectID obj;
StringName property;
String vtypes;
String subtype_hint_string;
PropertyHint subtype_hint;
Variant::Type subtype;
Variant get_array() const;
Variant::Type default_type;
@@ -56,7 +59,7 @@ protected:
public:
void edit(Object* p_obj, const StringName& p_prop, Variant::Type p_deftype);
void edit(Object* p_obj, const StringName& p_prop, const String& p_hint_string, Variant::Type p_deftype);
Node *get_node();