diff --git a/prefabs/combat_ui.tscn b/prefabs/combat_ui.tscn index b7d7287..0292898 100644 --- a/prefabs/combat_ui.tscn +++ b/prefabs/combat_ui.tscn @@ -51,6 +51,48 @@ region = Rect2(1055, 151, 28, 19) atlas = ExtResource("3_hadma") region = Rect2(547, 824, 130, 15) +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_gqe5k"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_yhw6j"] +atlas = SubResource("CompressedTexture2D_gqe5k") +region = Rect2(261, 272, 3, 9) + +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_icxrh"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_kdblo"] +atlas = SubResource("CompressedTexture2D_icxrh") +region = Rect2(255, 272, 3, 9) + +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ptl6p"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_vj7wc"] +atlas = SubResource("CompressedTexture2D_ptl6p") +region = Rect2(1056, 172, 27, 15) + +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_5b4vf"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_kd55s"] +atlas = SubResource("CompressedTexture2D_5b4vf") +region = Rect2(261, 272, 3, 9) + +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_4lqfr"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_alhr0"] +atlas = SubResource("CompressedTexture2D_4lqfr") +region = Rect2(255, 272, 3, 9) + +[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_eajv6"] +load_path = "res://.godot/imported/SO008B.BMP-57a2d92123e6b32a5ec6367855ebadf6.ctex" + +[sub_resource type="AtlasTexture" id="AtlasTexture_r8i3r"] +atlas = SubResource("CompressedTexture2D_eajv6") +region = Rect2(1056, 190, 26, 16) + [node name="BattleViewUI" type="CanvasLayer" unique_id=1093388037] script = ExtResource("2_ui_script") @@ -105,42 +147,6 @@ offset_right = 799.0 offset_bottom = 543.0 texture = SubResource("AtlasTexture_hr2yf") -[node name="UnitPanel" type="PanelContainer" parent="UIBase" unique_id=2000000001] -unique_name_in_owner = true -visible = false -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -200.0 -offset_top = -70.0 -grow_horizontal = 0 -grow_vertical = 0 -theme = ExtResource("1_2ro41") - -[node name="MarginContainer" type="MarginContainer" parent="UIBase/UnitPanel" unique_id=899996785] -layout_mode = 2 -theme_override_constants/margin_left = 8 -theme_override_constants/margin_top = 8 -theme_override_constants/margin_right = 8 -theme_override_constants/margin_bottom = 8 - -[node name="VBoxContainer" type="VBoxContainer" parent="UIBase/UnitPanel/MarginContainer" unique_id=333573880] -layout_mode = 2 - -[node name="NameLabel" type="Label" parent="UIBase/UnitPanel/MarginContainer/VBoxContainer" unique_id=2000000002] -unique_name_in_owner = true -layout_mode = 2 -text = "Unit" - -[node name="HPBar" type="ProgressBar" parent="UIBase/UnitPanel/MarginContainer/VBoxContainer" unique_id=2000000003] -unique_name_in_owner = true -layout_mode = 2 -value = 100.0 -show_percentage = false - [node name="BackgroundTint" type="ColorRect" parent="UIBase" unique_id=253893594] unique_name_in_owner = true visible = false @@ -276,7 +282,8 @@ unique_name_in_owner = true layout_mode = 2 text = "Cancel" -[node name="UnitPanel2" type="Control" parent="UIBase" unique_id=1823763147] +[node name="UnitPanel" type="Control" parent="UIBase" unique_id=1823763147] +visible = false layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 @@ -288,7 +295,7 @@ offset_top = -194.0 grow_horizontal = 0 grow_vertical = 0 -[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel2" unique_id=691752297] +[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel" unique_id=691752297] layout_mode = 0 offset_left = 128.0 offset_right = 265.0 @@ -296,7 +303,7 @@ offset_bottom = 26.0 size_flags_horizontal = 8 texture = SubResource("AtlasTexture_3wejr") -[node name="Items" type="HBoxContainer" parent="UIBase/UnitPanel2/TextureRect" unique_id=828992814] +[node name="Items" type="HBoxContainer" parent="UIBase/UnitPanel/TextureRect" unique_id=828992814] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 @@ -308,42 +315,94 @@ offset_top = -20.0 grow_horizontal = 0 grow_vertical = 0 -[node name="Spacer" type="Control" parent="UIBase/UnitPanel2/TextureRect/Items" unique_id=1068603879] +[node name="Spacer" type="Control" parent="UIBase/UnitPanel/TextureRect/Items" unique_id=1068603879] layout_mode = 2 size_flags_horizontal = 3 -[node name="Label" type="TextureRect" parent="UIBase/UnitPanel2/TextureRect/Items" unique_id=1299333906] +[node name="Label" type="TextureRect" parent="UIBase/UnitPanel/TextureRect/Items" unique_id=1299333906] layout_mode = 2 size_flags_vertical = 8 texture = SubResource("AtlasTexture_uh1k2") -[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel2/TextureRect/Items" unique_id=702997768 instance=ExtResource("5_55shj")] +[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel/TextureRect/Items" unique_id=702997768 instance=ExtResource("5_55shj")] layout_mode = 2 sprite_sheet = SubResource("AtlasTexture_yayqj") number_sprite_width = 27 number_sprite_height = 39 value = 12 -[node name="UnitHealth" type="HBoxContainer" parent="UIBase/UnitPanel2" unique_id=53239936] +[node name="UnitHealth" type="HBoxContainer" parent="UIBase/UnitPanel" unique_id=53239936] layout_mode = 0 offset_left = 185.0 offset_top = 103.0 offset_right = 225.0 offset_bottom = 143.0 -[node name="ChipBar" parent="UIBase/UnitPanel2/UnitHealth" unique_id=379110810 instance=ExtResource("6_gqe5k")] +[node name="ChipBar" parent="UIBase/UnitPanel/UnitHealth" unique_id=379110810 instance=ExtResource("6_gqe5k")] layout_mode = 2 size_flags_vertical = 0 max_chips_per_row = 100 empty_chip_texture = SubResource("AtlasTexture_eskga") filled_chip_texture = SubResource("AtlasTexture_14b7f") -[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel2/UnitHealth" unique_id=668812970] +[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel/UnitHealth" unique_id=668812970] layout_mode = 2 size_flags_vertical = 0 texture = SubResource("AtlasTexture_manhy") -[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel2/UnitHealth" unique_id=1442983008 instance=ExtResource("5_55shj")] +[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel/UnitHealth" unique_id=1442983008 instance=ExtResource("5_55shj")] +layout_mode = 2 +size_flags_vertical = 0 +sprite_sheet = SubResource("AtlasTexture_ox7qj") +number_sprite_width = 13 +number_sprite_height = 15 + +[node name="UnitSP" type="HBoxContainer" parent="UIBase/UnitPanel" unique_id=514403074] +layout_mode = 0 +offset_left = 185.0 +offset_top = 133.0 +offset_right = 225.0 +offset_bottom = 151.0 + +[node name="ChipBar" parent="UIBase/UnitPanel/UnitSP" unique_id=374103132 instance=ExtResource("6_gqe5k")] +layout_mode = 2 +size_flags_vertical = 0 +max_chips_per_row = 100 +empty_chip_texture = SubResource("AtlasTexture_yhw6j") +filled_chip_texture = SubResource("AtlasTexture_kdblo") + +[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel/UnitSP" unique_id=805168370] +layout_mode = 2 +size_flags_vertical = 0 +texture = SubResource("AtlasTexture_vj7wc") + +[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel/UnitSP" unique_id=442319509 instance=ExtResource("5_55shj")] +layout_mode = 2 +size_flags_vertical = 0 +sprite_sheet = SubResource("AtlasTexture_ox7qj") +number_sprite_width = 13 +number_sprite_height = 15 + +[node name="UnitFS" type="HBoxContainer" parent="UIBase/UnitPanel" unique_id=1209088756] +layout_mode = 0 +offset_left = 185.0 +offset_top = 160.0 +offset_right = 225.0 +offset_bottom = 178.0 + +[node name="ChipBar" parent="UIBase/UnitPanel/UnitFS" unique_id=1380843979 instance=ExtResource("6_gqe5k")] +layout_mode = 2 +size_flags_vertical = 0 +max_chips_per_row = 100 +empty_chip_texture = SubResource("AtlasTexture_kd55s") +filled_chip_texture = SubResource("AtlasTexture_alhr0") + +[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel/UnitFS" unique_id=1340673242] +layout_mode = 2 +size_flags_vertical = 0 +texture = SubResource("AtlasTexture_r8i3r") + +[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel/UnitFS" unique_id=1558008542 instance=ExtResource("5_55shj")] layout_mode = 2 size_flags_vertical = 0 sprite_sheet = SubResource("AtlasTexture_ox7qj")