From 84af6158bf21dff5029870f72a250f1cefa0926e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Jun 2025 01:15:48 +0000 Subject: [PATCH] Remove splash screen leftovers and properly implement credits script Co-authored-by: saebyn <185030+saebyn@users.noreply.github.com> --- ui/{splash.gd => credits.gd} | 8 ++++---- ui/credits.tscn | 2 +- ui/splash.gd.uid | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) rename ui/{splash.gd => credits.gd} (75%) delete mode 100644 ui/splash.gd.uid diff --git a/ui/splash.gd b/ui/credits.gd similarity index 75% rename from ui/splash.gd rename to ui/credits.gd index cd923d2..1029bda 100644 --- a/ui/splash.gd +++ b/ui/credits.gd @@ -1,14 +1,14 @@ extends Control -func exit_splash(): +func exit_credits(): get_tree().change_scene_to_file("res://scenes/main.tscn") func _on_timeout(): - exit_splash() + exit_credits() func _input(event: InputEvent) -> void: if event is InputEventMouseButton: if event.is_pressed(): - exit_splash() + exit_credits() elif event is InputEventKey: - exit_splash() + exit_credits() \ No newline at end of file diff --git a/ui/credits.tscn b/ui/credits.tscn index 41608f2..8931444 100644 --- a/ui/credits.tscn +++ b/ui/credits.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=4 format=3 uid="uid://b73ltany0lfiq"] -[ext_resource type="Script" uid="uid://b5waksogab2fq" path="res://ui/splash.gd" id="1_2ckv8"] +[ext_resource type="Script" path="res://ui/credits.gd" id="1_2ckv8"] [ext_resource type="Theme" uid="uid://5wwgiimot5nw" path="res://theme/theme.tres" id="2_0ctdu"] [sub_resource type="Theme" id="Theme_4rrho"] diff --git a/ui/splash.gd.uid b/ui/splash.gd.uid deleted file mode 100644 index 10893fe..0000000 --- a/ui/splash.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://b5waksogab2fq