From 474ef692613f298ab05bbb65ad85625f178b63cc Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 28 Dec 2024 15:08:23 +0100 Subject: next commit --- ui/mobile/mobile_controls.gd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ui/mobile/mobile_controls.gd (limited to 'ui/mobile/mobile_controls.gd') 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 -- cgit v1.2.3