Refactor UI components to inherit from Control and update node paths for consistency

This commit is contained in:
2025-08-26 16:20:01 +02:00
parent 1d4948e5b4
commit ca0d21e40a
84 changed files with 767 additions and 884 deletions

View File

@@ -1,12 +1,12 @@
[gd_scene load_steps=4 format=3 uid="uid://dulkm3ah4tm0u"]
[ext_resource type="Script" uid="uid://b3d1p21sviww4" path="res://scripts/ui/death_screen.gd" id="1_eaoak"]
[ext_resource type="Script" uid="uid://csprksav8mj1h" path="res://scripts/UI/DeathScreen.cs" id="1_eaoak"]
[ext_resource type="Texture2D" uid="uid://jix7wdn0isr3" path="res://sprites/ppc_icon.png" id="1_m30em"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_eaoak"]
bg_color = Color(0, 0, 0, 1)
[node name="DeathScreen" type="Control" node_paths=PackedStringArray("death_screen_root", "current_level_label", "lives_left_label")]
[node name="DeathScreen" type="Control" node_paths=PackedStringArray("CurrentLevelLabel", "LivesLeftLabel")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -14,9 +14,8 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_eaoak")
death_screen_root = NodePath(".")
current_level_label = NodePath("PanelContainer/MarginContainer/VBoxContainer/LevelName")
lives_left_label = NodePath("PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/LivesLeft")
CurrentLevelLabel = NodePath("PanelContainer/MarginContainer/VBoxContainer/LevelName")
LivesLeftLabel = NodePath("PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/LivesLeft")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 1