From 166d4cb40c40b92cf205738954b6498b44bf5471 Mon Sep 17 00:00:00 2001 From: Geequlim Date: Fri, 26 May 2017 17:07:38 +0800 Subject: [PATCH] Expose constants of TextureButton --- scene/gui/texture_button.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp index dd4ff5503e..110cba0c5c 100644 --- a/scene/gui/texture_button.cpp +++ b/scene/gui/texture_button.cpp @@ -217,6 +217,9 @@ void TextureButton::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::INT, "params/stretch_mode", PROPERTY_HINT_ENUM, "Scale On Expand (Compat),Scale,Tile,Keep,Keep Centered,Keep Aspect,Keep Aspect Centered,Keep Aspect Covered"), _SCS("set_stretch_mode"), _SCS("get_stretch_mode")); ADD_PROPERTYNO(PropertyInfo(Variant::COLOR, "params/modulate"), _SCS("set_modulate"), _SCS("get_modulate")); + BIND_CONSTANT(RESIZE_SCALE); + BIND_CONSTANT(RESIZE_STRETCH); + BIND_CONSTANT(STRETCH_SCALE_ON_EXPAND); BIND_CONSTANT(STRETCH_SCALE); BIND_CONSTANT(STRETCH_TILE);