ClassDB: Provide the enum name of integer constants
This commit is contained in:
@ -112,14 +112,14 @@ void TextureRect::_bind_methods() {
|
||||
ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL, "expand"), "set_expand", "has_expand");
|
||||
ADD_PROPERTYNO(PropertyInfo(Variant::INT, "stretch_mode", PROPERTY_HINT_ENUM, "Scale On Expand (Compat),Scale,Tile,Keep,Keep Centered,Keep Aspect,Keep Aspect Centered,Keep Aspect Covered"), "set_stretch_mode", "get_stretch_mode");
|
||||
|
||||
BIND_CONSTANT(STRETCH_SCALE_ON_EXPAND);
|
||||
BIND_CONSTANT(STRETCH_SCALE);
|
||||
BIND_CONSTANT(STRETCH_TILE);
|
||||
BIND_CONSTANT(STRETCH_KEEP);
|
||||
BIND_CONSTANT(STRETCH_KEEP_CENTERED);
|
||||
BIND_CONSTANT(STRETCH_KEEP_ASPECT);
|
||||
BIND_CONSTANT(STRETCH_KEEP_ASPECT_CENTERED);
|
||||
BIND_CONSTANT(STRETCH_KEEP_ASPECT_COVERED);
|
||||
BIND_ENUM_CONSTANT(STRETCH_SCALE_ON_EXPAND);
|
||||
BIND_ENUM_CONSTANT(STRETCH_SCALE);
|
||||
BIND_ENUM_CONSTANT(STRETCH_TILE);
|
||||
BIND_ENUM_CONSTANT(STRETCH_KEEP);
|
||||
BIND_ENUM_CONSTANT(STRETCH_KEEP_CENTERED);
|
||||
BIND_ENUM_CONSTANT(STRETCH_KEEP_ASPECT);
|
||||
BIND_ENUM_CONSTANT(STRETCH_KEEP_ASPECT_CENTERED);
|
||||
BIND_ENUM_CONSTANT(STRETCH_KEEP_ASPECT_COVERED);
|
||||
}
|
||||
|
||||
void TextureRect::set_texture(const Ref<Texture> &p_tex) {
|
||||
|
||||
Reference in New Issue
Block a user