summaryrefslogtreecommitdiffstats
path: root/touch_screen_button.gd
blob: c7ff97355bed7d441363326b37afe97501a22f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class_name CustomTouchScreenButton
extends TouchScreenButton

@export var texture: Texture2D

# 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


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass