ClassDB: Provide the enum name of integer constants
This commit is contained in:
parent
f6c39830cb
commit
32dd9a9f66
107 changed files with 2059 additions and 1894 deletions
|
|
@ -82,9 +82,9 @@ void NinePatchRect::_bind_methods() {
|
|||
ADD_PROPERTYNZ(PropertyInfo(Variant::INT, "axis_stretch_horizontal", PROPERTY_HINT_ENUM, "Stretch,Tile,Tile Fit"), "set_h_axis_stretch_mode", "get_h_axis_stretch_mode");
|
||||
ADD_PROPERTYNZ(PropertyInfo(Variant::INT, "axis_stretch_vertical", PROPERTY_HINT_ENUM, "Stretch,Tile,Tile Fit"), "set_v_axis_stretch_mode", "get_v_axis_stretch_mode");
|
||||
|
||||
BIND_CONSTANT(AXIS_STRETCH_MODE_STRETCH);
|
||||
BIND_CONSTANT(AXIS_STRETCH_MODE_TILE);
|
||||
BIND_CONSTANT(AXIS_STRETCH_MODE_TILE_FIT);
|
||||
BIND_ENUM_CONSTANT(AXIS_STRETCH_MODE_STRETCH);
|
||||
BIND_ENUM_CONSTANT(AXIS_STRETCH_MODE_TILE);
|
||||
BIND_ENUM_CONSTANT(AXIS_STRETCH_MODE_TILE_FIT);
|
||||
}
|
||||
|
||||
void NinePatchRect::set_texture(const Ref<Texture> &p_tex) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue