summaryrefslogtreecommitdiff
path: root/scene/2d/screen_button.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-04 00:19:47 +0200
committerGitHub <noreply@github.com>2017-04-04 00:19:47 +0200
commit41986b209280e1790712c614425890b8e7eae5fe (patch)
treeda862c2e3be6c41e69cc4d3aad2fc62a4bfd991b /scene/2d/screen_button.h
parent4b7dd09dc38f782de273dd0056e475f438ed8ba5 (diff)
parent6caa9fc94c2dbb16bbd793e451060992af5160c3 (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.h4
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;