Flat button support in ButtonArray. Fixes #7153

(cherry picked from commit 4b7443aeea)
This commit is contained in:
Zher Huei Lee 2016-11-19 21:48:39 +08:00 committed by Rémi Verschelde
parent b56c00cc56
commit fe81402257
2 changed files with 22 additions and 2 deletions

View file

@ -59,6 +59,7 @@ private:
int selected;
int hover;
bool flat;
double min_button_size;
Vector<Button> buttons;
@ -79,6 +80,9 @@ public:
void set_align(Align p_align);
Align get_align() const;
void set_flat(bool p_flat);
bool is_flat() const;
void add_button(const String& p_button,const String& p_tooltip="");
void add_icon_button(const Ref<Texture>& p_icon,const String& p_button="",const String& p_tooltip="");