diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-04-04 00:19:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 00:19:47 +0200 |
commit | 41986b209280e1790712c614425890b8e7eae5fe (patch) | |
tree | da862c2e3be6c41e69cc4d3aad2fc62a4bfd991b /scene/2d/screen_button.h | |
parent | 4b7dd09dc38f782de273dd0056e475f438ed8ba5 (diff) | |
parent | 6caa9fc94c2dbb16bbd793e451060992af5160c3 (diff) |
Merge pull request #8244 from RandomShaper/improve-touch-button
Improve TouchScreenButton
Diffstat (limited to 'scene/2d/screen_button.h')
-rw-r--r-- | scene/2d/screen_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/screen_button.h b/scene/2d/screen_button.h index 201d908bf6..2262723ed3 100644 --- a/scene/2d/screen_button.h +++ b/scene/2d/screen_button.h @@ -50,6 +50,7 @@ private: Ref<BitMap> bitmask; Ref<Shape2D> shape; bool shape_centered; + bool shape_visible; Ref<RectangleShape2D> unit_rect; @@ -85,6 +86,9 @@ public: void set_shape_centered(bool p_shape_centered); bool is_shape_centered() const; + void set_shape_visible(bool p_shape_visible); + bool is_shape_visible() const; + void set_action(const String &p_action); String get_action() const; |