mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Flat button support in ButtonArray. Fixes #7153
(cherry picked from commit 4b7443aeea)
This commit is contained in:
parent
b56c00cc56
commit
fe81402257
2 changed files with 22 additions and 2 deletions
|
|
@ -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="");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue