Fixed Bugs

This commit is contained in:
Exobyt 2024-08-20 14:50:39 +02:00
parent 08ae4632d4
commit f7d00a3381
5 changed files with 12 additions and 18 deletions

View file

@ -3,19 +3,13 @@ extends Control
@onready var buttonContainer1 = $HBoxContainer3
@onready var buttonContainer2 = $HBoxContainer4
@onready var buttonContainer3 = $HBoxContainer5
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print(DisplayServer.mouse_get_position() != Vector2i())
if DisplayServer.mouse_get_position() == Vector2i():
func toggleButton():
if DisplayServer.is_touchscreen_available():
buttonContainer1.show()
buttonContainer2.show()
buttonContainer3.show()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_left_button_pressed() -> void:
Input.action_press("left")
Input.action_release("left")

View file

@ -13,6 +13,7 @@ func loadGrid():
if $ScoreOverview != null:
$ScoreOverview.queue_free()
add_child(load("res://scenes/Grid/grid.tscn").instantiate())
$Grid.toggleButton()
func scoreOverview():
if $Grid != null: