summaryrefslogtreecommitdiff
path: root/ui/mobile/mobile_controls.gd
blob: a87ceea08bd9a0c8f82c278a750194ab7df39e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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