feat: Implement UIManager for player action, playerboard, and power-up UI, and add initial lobby, main scenes, and PlayerboardManager.

This commit is contained in:
Yogi Wiguna
2026-02-09 11:35:45 +08:00
parent 1048d7e0ca
commit 20e9897481
4 changed files with 128 additions and 32 deletions
+29 -21
View File
@@ -117,10 +117,10 @@ material = SubResource("ShaderMaterial_j8jky")
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 24.0
offset_top = -246.79544
offset_right = 259.46997
offset_bottom = -18.622345
offset_left = 63.731766
offset_top = -200.62561
offset_right = 214.42894
offset_bottom = -15.877472
grow_vertical = 2
rotation = -0.10297442
theme_override_styles/panel = SubResource("StyleBoxFlat_playerboard")
@@ -130,10 +130,10 @@ clip_contents = true
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 36.0
offset_top = -239.79541
offset_right = 252.0
offset_bottom = -23.79541
offset_left = 34.000004
offset_top = -190.23553
offset_right = 250.0
offset_bottom = 25.764465
grow_vertical = 2
rotation = -0.10297442
scale = Vector2(1.08, 1.08)
@@ -141,6 +141,7 @@ size_flags_horizontal = 3
columns = 5
[node name="Slot1" type="TextureRect" parent="PlayerboardUI" unique_id=1399081516]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -281,6 +282,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot5" type="TextureRect" parent="PlayerboardUI" unique_id=1644684927]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -316,6 +318,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot6" type="TextureRect" parent="PlayerboardUI" unique_id=481932710]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -456,6 +459,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot10" type="TextureRect" parent="PlayerboardUI" unique_id=1184621406]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -491,6 +495,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot11" type="TextureRect" parent="PlayerboardUI" unique_id=1688573384]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -631,6 +636,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot15" type="TextureRect" parent="PlayerboardUI" unique_id=1663725669]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -666,6 +672,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot16" type="TextureRect" parent="PlayerboardUI" unique_id=628611489]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -806,6 +813,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot20" type="TextureRect" parent="PlayerboardUI" unique_id=2086008463]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -841,6 +849,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot21" type="TextureRect" parent="PlayerboardUI" unique_id=1451444134]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -876,6 +885,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot22" type="TextureRect" parent="PlayerboardUI" unique_id=141949470]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -911,6 +921,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot23" type="TextureRect" parent="PlayerboardUI" unique_id=1345458769]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -946,6 +957,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot24" type="TextureRect" parent="PlayerboardUI" unique_id=1840834103]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -981,6 +993,7 @@ grow_vertical = 2
texture = ExtResource("9_6gcb6")
[node name="Slot25" type="TextureRect" parent="PlayerboardUI" unique_id=1179195394]
modulate = Color(1, 1, 1, 0)
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
texture = ExtResource("6_2vy7d")
@@ -1017,10 +1030,10 @@ texture = ExtResource("9_6gcb6")
[node name="PlayerboardPanel2" type="PanelContainer" parent="." unique_id=1458381676]
material = SubResource("ShaderMaterial_j8jky")
offset_left = 23.999996
offset_top = 66.99999
offset_right = 243.46997
offset_bottom = 106.66015
offset_left = 22.0
offset_top = 116.559875
offset_right = 241.46997
offset_bottom = 156.22003
rotation = -0.10297442
theme_override_styles/panel = SubResource("StyleBoxFlat_playerboard")
@@ -1028,21 +1041,16 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_playerboard")
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 33.0
offset_top = -293.0
offset_right = 73.0
offset_bottom = -257.0
offset_left = 31.000004
offset_top = -243.44012
offset_right = 71.0
offset_bottom = -207.44012
grow_vertical = 2
rotation = -0.10297442
theme_override_fonts/font = ExtResource("13_j8jky")
theme_override_font_sizes/font_size = 32
text = "X0"
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=2131054934]
offset = Vector2(15, 50)
scale = Vector2(1.11, 1.0303639)
transform = Transform2D(1.11, 0, 0.105, 1.025, 15, 50)
[node name="PowerUpBar" type="PanelContainer" parent="." unique_id=1775378146]
anchors_preset = 4
anchor_top = 0.5