This commit is contained in:
2025-05-09 23:06:36 +02:00
parent f3d332f39c
commit dda8eac39a
135 changed files with 8297 additions and 186 deletions

View File

@@ -0,0 +1,4 @@
extends Control
func _enter_tree() -> void:
grab_focus()

View File

@@ -0,0 +1 @@
uid://dq43w4hln4sud

14
ui/src/loading_screen.gd Normal file
View File

@@ -0,0 +1,14 @@
class_name LoadingScreen extends Node
@onready var _progress_bar: ProgressBar = %ProgressBar
@onready var _player: AnimationPlayer = %AnimationPlayer
func _ready() -> void:
return
func fade_out() -> void:
return
func _process(_delta: float) -> void:
if SceneLoader.progress.size() > 0:
_progress_bar.value = SceneLoader.progress[0] * 100

View File

@@ -0,0 +1 @@
uid://dc7ug0ojnhtgo

13
ui/src/main_menu.gd Normal file
View File

@@ -0,0 +1,13 @@
extends Control
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
func _on_new_game_button_pressed() -> void:
GameManager.start_new_game()
func _on_quit_button_pressed() -> void:
GameManager.quit_game()

1
ui/src/main_menu.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://cvpje2w2881j7

View File

@@ -1,7 +1,12 @@
class_name PauseMenu extends Node
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
func _on_continue() -> void:
GameManager.pause_game(false)
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
func _on_quit() -> void:
GameManager.quit_game()
GameManager.load_menu()

1
ui/src/pause_menu.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://ir3th8i5efqy