summaryrefslogtreecommitdiffstats
path: root/touch_screen_button.gd
blob: 1a84776bceb25f14897805aac62f837a9a0b1061 (plain)
1
2
3
4
5
6
7
8
9
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 = desktop_visible