Add NotificationLabel styling and manage miracles in hand

This commit is contained in:
2025-08-23 14:06:52 +02:00
parent 729a9fd1ea
commit de2f24cfce
28 changed files with 431 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://c2baysanqtp8g"]
[ext_resource type="Texture2D" uid="uid://c46t8kj1gb5qd" path="res://Sprites/castle.png" id="1_42k1r"]
[node name="CastleTier1" type="Sprite2D"]
scale = Vector2(0.03, 0.03)
texture = ExtResource("1_42k1r")

View File

@@ -0,0 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://cg5mdwkf7fxqn"]
[ext_resource type="Texture2D" uid="uid://c61h7a8byuyeu" path="res://Sprites/house.png" id="1_ub3ef"]
[node name="HouseTier1" type="Sprite2D"]
scale = Vector2(0.02, 0.02)
texture = ExtResource("1_ub3ef")

View File

@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://bi6053qjm60vt"]
[ext_resource type="Texture2D" uid="uid://c61h7a8byuyeu" path="res://Sprites/house.png" id="1_8opcd"]
[node name="HouseTier2" type="Sprite2D"]
scale = Vector2(0.02, 0.02)
texture = ExtResource("1_8opcd")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(450, 0)
texture = ExtResource("1_8opcd")

View File

@@ -0,0 +1,15 @@
[gd_scene load_steps=2 format=3 uid="uid://ctqgx6alvxci0"]
[ext_resource type="Texture2D" uid="uid://c61h7a8byuyeu" path="res://Sprites/house.png" id="1_rp41l"]
[node name="HouseTier2" type="Sprite2D"]
scale = Vector2(0.02, 0.02)
texture = ExtResource("1_rp41l")
[node name="Sprite2D2" type="Sprite2D" parent="."]
position = Vector2(-550, 0)
texture = ExtResource("1_rp41l")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(450, 0)
texture = ExtResource("1_rp41l")

View File

@@ -1,10 +1,42 @@
[gd_scene load_steps=2 format=3 uid="uid://crpf0llofg0sc"]
[gd_scene load_steps=3 format=3 uid="uid://crpf0llofg0sc"]
[ext_resource type="Script" uid="uid://drx8lqcjq5khj" path="res://Scripts/NotificationLabel.cs" id="1_x4sn4"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4bx8n"]
bg_color = Color(0.187176, 0.187176, 0.187176, 1)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(1, 0.759215, 0.00113704, 1)
corner_radius_top_left = 2
corner_radius_top_right = 2
corner_radius_bottom_right = 2
corner_radius_bottom_left = 2
[node name="NotificationLabel" type="Label"]
offset_right = 40.0
offset_bottom = 23.0
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
horizontal_alignment = 1
vertical_alignment = 1
script = ExtResource("1_x4sn4")
[node name="Panel" type="Panel" parent="."]
z_index = -1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_4bx8n")
metadata/_edit_group_ = true