diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-25 12:44:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-25 12:44:43 +0200 |
commit | 96a51b108c953d8c8e112340b03fc1026d7243ed (patch) | |
tree | fb8fd6f4740bedf452df1e59f3fd3216e65ea9b9 | |
parent | a455eb4ccb0cfa0b4aec5079ab62df5d131a71ed (diff) | |
parent | feb4002017b335ad5cb9f7508697a78b2503ea5c (diff) |
Merge pull request #42310 from Calinou/add-styleboxflat-shadow-property-hint
Add a property hint to StyleBoxFlat `shadow_size` for editor usability
-rw-r--r-- | scene/resources/style_box.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index 7328fbdb10..cdb0ec5111 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -911,7 +911,7 @@ void StyleBoxFlat::_bind_methods() { ADD_GROUP("Shadow", "shadow_"); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "shadow_color"), "set_shadow_color", "get_shadow_color"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "shadow_size"), "set_shadow_size", "get_shadow_size"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "shadow_size", PROPERTY_HINT_RANGE, "0,100,1,or_greater"), "set_shadow_size", "get_shadow_size"); ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "shadow_offset"), "set_shadow_offset", "get_shadow_offset"); ADD_GROUP("Anti Aliasing", "anti_aliasing_"); |