summaryrefslogtreecommitdiff
path: root/ui/mobile/mobile_controls.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-28 15:08:23 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-28 15:08:23 +0100
commit474ef692613f298ab05bbb65ad85625f178b63cc (patch)
treed069e587c8d731ea8191ee0318abc85694c04351 /ui/mobile/mobile_controls.gd
parentd572bc0a27b05c6632ba76bd630c7c4fd8f0ae5d (diff)
next commit
Diffstat (limited to 'ui/mobile/mobile_controls.gd')
-rw-r--r--ui/mobile/mobile_controls.gd17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/mobile/mobile_controls.gd b/ui/mobile/mobile_controls.gd
new file mode 100644
index 0000000..a87ceea
--- /dev/null
+++ b/ui/mobile/mobile_controls.gd
@@ -0,0 +1,17 @@
+class_name MobileControls
+extends CanvasLayer
+
+
+var size: Vector2:
+ get():
+ return (get_child(0) as Control).size
+
+
+func _init() -> void:
+ visible = false
+ process_mode = ProcessMode.PROCESS_MODE_DISABLED
+
+
+func enable() -> void:
+ process_mode = ProcessMode.PROCESS_MODE_ALWAYS
+ visible = true