summaryrefslogtreecommitdiffstats
path: root/touch_screen_button.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-11-21 16:56:21 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-11-21 16:56:21 +0200
commit015e7c2d4f237c7a4f6dec21680f1726ca2fa9dc (patch)
treef9427830911de69198a49b9bcb4afcba0ecaca6f /touch_screen_button.gd
parent31d7be95a48f3d36f2daac950dbc7cdaabeb5b86 (diff)
Move touchscreen UI out of the room scene
Diffstat (limited to 'touch_screen_button.gd')
-rw-r--r--touch_screen_button.gd4
1 files changed, 2 insertions, 2 deletions
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