diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2016-11-28 15:20:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-28 15:20:07 +0100 |
| commit | 39fede4b17308226f4e18217eee90374bfef226e (patch) | |
| tree | c1205cf5ee327bfcbe921773265bb274a0857a6e /scene/gui/button_array.h | |
| parent | 35e754db593b838524bd1ee1b5e84111b1c38e27 (diff) | |
| parent | 191fdc873edf922bc4a19a5b4f32a2d21bcdaffe (diff) | |
Merge pull request #7157 from leezh/buttonarray_fixes
Flat button support in ButtonArray. Fixes #7153
Diffstat (limited to 'scene/gui/button_array.h')
| -rw-r--r-- | scene/gui/button_array.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/button_array.h b/scene/gui/button_array.h index 62997a8e36..81be3e41c3 100644 --- a/scene/gui/button_array.h +++ b/scene/gui/button_array.h @@ -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=""); |