From b160a26abd50eb34e8ba982f2c1fd95fdd6d102e Mon Sep 17 00:00:00 2001 From: Saracen Date: Wed, 1 Jun 2016 15:41:25 +0100 Subject: Expose control theme element and override detection methods to scripting side. --- scene/gui/control.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scene/gui/control.h') diff --git a/scene/gui/control.h b/scene/gui/control.h index f720185c9d..76e4f43d78 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -341,6 +341,13 @@ public: Color get_color(const StringName& p_name,const StringName& p_type=StringName()) const; int get_constant(const StringName& p_name,const StringName& p_type=StringName()) const; + bool has_icon_override(const StringName& p_name) const; + bool has_shader_override(const StringName& p_name) const; + bool has_stylebox_override(const StringName& p_name) const; + bool has_font_override(const StringName& p_name) const; + bool has_color_override(const StringName& p_name) const; + bool has_constant_override(const StringName& p_name) const; + bool has_icon(const StringName& p_name,const StringName& p_type=StringName()) const; bool has_shader(const StringName& p_name,const StringName& p_type=StringName()) const; bool has_stylebox(const StringName& p_name,const StringName& p_type=StringName()) const; -- cgit v1.2.3