From 015e7c2d4f237c7a4f6dec21680f1726ca2fa9dc Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 21 Nov 2025 16:56:21 +0200 Subject: Move touchscreen UI out of the room scene --- touch_screen_button.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'touch_screen_button.gd') diff --git a/touch_screen_button.gd b/touch_screen_button.gd index 07958ea..1a84776 100644 --- a/touch_screen_button.gd +++ b/touch_screen_button.gd @@ -1,10 +1,10 @@ extends TouchScreenButton @export var texture: Texture2D +@export var desktop_visible: bool # Called when the node enters the scene tree for the first time. func _ready() -> void: $TextureRect.texture = texture if not DisplayServer.is_touchscreen_available(): - visible = false - #visible = true + visible = desktop_visible -- cgit v1.3