diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-09-24 17:41:40 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-09-24 17:41:40 +0200 |
commit | feb4002017b335ad5cb9f7508697a78b2503ea5c (patch) | |
tree | 20d15dc94a6ad0925d621c9e0214eeb4150701da /scene/resources/style_box.cpp | |
parent | 5e24232597fbbac1c79bcf11e486b507caaa0cb2 (diff) |
Add a property hint to StyleBoxFlat `shadow_size` for editor usability
This adds a visible range to the slider so it can be dragged more easily.
This closes #42309.
Diffstat (limited to 'scene/resources/style_box.cpp')
-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_"); |