Added rules

This commit is contained in:
Sch1nken 2024-04-20 01:26:11 +02:00
parent b42b1ae39f
commit 0385858d4f
10 changed files with 423 additions and 85 deletions

View file

@ -1,11 +1,13 @@
extends Control
@onready var exit_button = $PanelContainer/MarginContainer/VBoxContainer/ExitButton
@onready var lan_button = $PanelContainer/MarginContainer/VBoxContainer/LANButton
@onready var exit_button = $VBoxContainer/PanelContainer/MarginContainer/VBoxContainer/ExitButton
@onready var lan_button = $VBoxContainer/PanelContainer/MarginContainer/VBoxContainer/LANButton
const SETTINGS = preload("res://UI/Settings/Settings.tscn")
const RULES = preload("res://UI/Rules/Rules.tscn")
@onready var credits_panel = $CreditsPanel
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
if OS.has_feature("web"):
@ -61,3 +63,8 @@ func _on_settings_button_pressed():
func _on_lan_button_pressed():
get_tree().change_scene_to_file("res://UI/Lobby/LANLobby.tscn")
func _on_credits_button_pressed():
credits_panel.visible = true
pass # Replace with function body.