diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-12 09:00:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 09:00:20 +0100 |
commit | e24f2c6489afdccc6268008d3dcc1ff4ad8ea71c (patch) | |
tree | ee8faddef95f8bcb66acfce729a6f85513740b2d /scene/resources/style_box.cpp | |
parent | 00630479dd5e5aa95915fddf7df9c6b11f525b0e (diff) | |
parent | ad79c703008394a360eb9875196a9414e1c84585 (diff) |
Merge pull request #15611 from bojidar-bg/x-bind-more-properties
Bind many more properties to scripts
Diffstat (limited to 'scene/resources/style_box.cpp')
-rw-r--r-- | scene/resources/style_box.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index 235e398904..6811517ead 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -912,6 +912,7 @@ void StyleBoxLine::_bind_methods() { ClassDB::bind_method(D_METHOD("is_vertical"), &StyleBoxLine::is_vertical); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "color"), "set_color", "get_color"); + ADD_PROPERTY(PropertyInfo(Variant::REAL, "grow", PROPERTY_HINT_RANGE, "-300,300,1"), "set_grow", "get_grow"); ADD_PROPERTY(PropertyInfo(Variant::INT, "thickness", PROPERTY_HINT_RANGE, "0,10"), "set_thickness", "get_thickness"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "vertical"), "set_vertical", "is_vertical"); } |