Skip to content

Commit

Permalink
Merge pull request #92501 from timothyqiu/stretch-shrink-range-3.x
Browse files Browse the repository at this point in the history
[3.x] Add range hint for `ViewportContainer.stretch_shrink`
  • Loading branch information
lawnjelly authored Jun 3, 2024
2 parents 39b35c6 + d655fc8 commit ab6395d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/viewport_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void ViewportContainer::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_stretch_shrink"), &ViewportContainer::get_stretch_shrink);

ADD_PROPERTY(PropertyInfo(Variant::BOOL, "stretch"), "set_stretch", "is_stretch_enabled");
ADD_PROPERTY(PropertyInfo(Variant::INT, "stretch_shrink"), "set_stretch_shrink", "get_stretch_shrink");
ADD_PROPERTY(PropertyInfo(Variant::INT, "stretch_shrink", PROPERTY_HINT_RANGE, "1,32,1,or_greater"), "set_stretch_shrink", "get_stretch_shrink");
}

ViewportContainer::ViewportContainer() {
Expand Down

0 comments on commit ab6395d

Please sign in to comment.