Merge pull request #60329 from Calinou/aspectratiocontainer-add-property-hint
This commit is contained in:
commit
a7b152d15b
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void AspectRatioContainer::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_alignment_vertical", "alignment_vertical"), &AspectRatioContainer::set_alignment_vertical);
|
||||
ClassDB::bind_method(D_METHOD("get_alignment_vertical"), &AspectRatioContainer::get_alignment_vertical);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "ratio"), "set_ratio", "get_ratio");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "ratio", PROPERTY_HINT_RANGE, "0.001,10.0,0.0001,or_greater"), "set_ratio", "get_ratio");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "stretch_mode", PROPERTY_HINT_ENUM, "Width Controls Height,Height Controls Width,Fit,Cover"), "set_stretch_mode", "get_stretch_mode");
|
||||
|
||||
ADD_GROUP("Alignment", "alignment_");
|
||||
|
|
Loading…
Reference in a new issue