blob: a03376d873ae7440824b1919a10cccf312338373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|