[gd_scene format=3 uid="uid://cy7r0udfcsqbn"] [ext_resource type="Theme" uid="uid://dx26d6py3n8xi" path="res://resources/main_ui_theme.tres" id="1_2ro41"] [ext_resource type="Script" uid="uid://w2wh6gtv3u2l" path="res://scripts/battle/combat_ui.gd" id="2_ui_script"] [ext_resource type="Texture2D" uid="uid://cavpqnd0qqoou" path="res://assets/ui/SO008B.BMP" id="3_hadma"] [ext_resource type="Texture2D" uid="uid://cau61m1755dkn" path="res://assets/ui/SO008A.BMP" id="3_tfn3h"] [ext_resource type="PackedScene" uid="uid://bc5a7tb0my6n5" path="res://prefabs/stylized_number_display.tscn" id="5_55shj"] [ext_resource type="PackedScene" uid="uid://8edgswcwdiwu" path="res://prefabs/chip_bar.tscn" id="6_gqe5k"] [sub_resource type="AtlasTexture" id="AtlasTexture_hadma"] atlas = ExtResource("3_tfn3h") region = Rect2(0, 0, 800, 600) [sub_resource type="AtlasTexture" id="AtlasTexture_55shj"] atlas = ExtResource("3_hadma") region = Rect2(393, 280, 168, 77) [sub_resource type="AtlasTexture" id="AtlasTexture_gqe5k"] atlas = ExtResource("3_hadma") region = Rect2(141, 0, 513, 169) [sub_resource type="AtlasTexture" id="AtlasTexture_hr2yf"] atlas = ExtResource("3_hadma") region = Rect2(393, 169, 263, 111) [sub_resource type="AtlasTexture" id="AtlasTexture_3wejr"] atlas = ExtResource("3_hadma") region = Rect2(614, 711, 137, 26) [sub_resource type="AtlasTexture" id="AtlasTexture_uh1k2"] atlas = ExtResource("3_hadma") region = Rect2(614, 737, 55, 20) [sub_resource type="AtlasTexture" id="AtlasTexture_yayqj"] atlas = ExtResource("3_hadma") region = Rect2(547, 839, 270, 36) [sub_resource type="AtlasTexture" id="AtlasTexture_eskga"] atlas = ExtResource("3_hadma") region = Rect2(249, 272, 3, 14) [sub_resource type="AtlasTexture" id="AtlasTexture_14b7f"] atlas = ExtResource("3_hadma") region = Rect2(246, 272, 3, 14) [sub_resource type="AtlasTexture" id="AtlasTexture_manhy"] atlas = ExtResource("3_hadma") region = Rect2(1055, 151, 28, 19) [sub_resource type="AtlasTexture" id="AtlasTexture_ox7qj"] 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(258, 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") [node name="UIBase" type="Control" parent="." unique_id=7839209] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 1 [node name="Overlay" type="Control" parent="UIBase" unique_id=114439631] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="Background" type="TextureRect" parent="UIBase/Overlay" unique_id=1726665864] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = SubResource("AtlasTexture_hadma") [node name="HoverInfo" type="TextureRect" parent="UIBase/Overlay" unique_id=1180275113] layout_mode = 0 offset_right = 40.0 offset_bottom = 40.0 texture = SubResource("AtlasTexture_55shj") [node name="Bars" type="TextureRect" parent="UIBase/Overlay" unique_id=780801800] layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -513.0 offset_bottom = 169.0 grow_horizontal = 0 texture = SubResource("AtlasTexture_gqe5k") [node name="TextureRect" type="TextureRect" parent="UIBase/Overlay" unique_id=1469571203] layout_mode = 0 offset_left = 536.0 offset_top = 432.0 offset_right = 799.0 offset_bottom = 543.0 texture = SubResource("AtlasTexture_hr2yf") [node name="BackgroundTint" type="ColorRect" parent="UIBase" unique_id=253893594] unique_name_in_owner = true visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 0.4) [node name="CombatProposalPanel" type="PanelContainer" parent="UIBase" unique_id=2088533653] unique_name_in_owner = true visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -88.0 offset_top = -103.5 offset_right = 88.0 offset_bottom = 103.5 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("1_2ro41") [node name="MarginContainer" type="MarginContainer" parent="UIBase/CombatProposalPanel" unique_id=924522188] layout_mode = 2 theme_override_constants/margin_left = 12 theme_override_constants/margin_top = 12 theme_override_constants/margin_right = 12 theme_override_constants/margin_bottom = 12 [node name="VBoxContainer" type="VBoxContainer" parent="UIBase/CombatProposalPanel/MarginContainer" unique_id=666671196] layout_mode = 2 [node name="TitleLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer" unique_id=1520669125] layout_mode = 2 text = "COMBAT FORECAST" horizontal_alignment = 1 [node name="StatsContainer" type="HBoxContainer" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer" unique_id=1101898616] layout_mode = 2 theme_override_constants/separation = 24 [node name="AttackerStats" type="VBoxContainer" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer" unique_id=1193603706] layout_mode = 2 [node name="AttackerNameLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=1574861154] unique_name_in_owner = true layout_mode = 2 text = "Attacker" [node name="AttackerTacticSelect" type="OptionButton" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=1466363800] unique_name_in_owner = true layout_mode = 2 [node name="AttackerHPBar" type="ProgressBar" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=241886156] unique_name_in_owner = true layout_mode = 2 show_percentage = false [node name="AttackerATKLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=1656041171] unique_name_in_owner = true layout_mode = 2 text = "ATK: 0" [node name="AttackerDEFLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=2145851939] unique_name_in_owner = true layout_mode = 2 text = "DEF: 0" [node name="AttackerHITLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=1234331828] unique_name_in_owner = true layout_mode = 2 text = "HIT: 0%" [node name="AttackerSPDLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/AttackerStats" unique_id=1461624142] unique_name_in_owner = true layout_mode = 2 text = "SPD: 0" [node name="DefenderStats" type="VBoxContainer" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer" unique_id=1747482540] layout_mode = 2 [node name="DefenderNameLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=365769500] unique_name_in_owner = true layout_mode = 2 text = "Defender" [node name="DefenderTacticSelect" type="OptionButton" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=1226652499] unique_name_in_owner = true layout_mode = 2 [node name="DefenderHPBar" type="ProgressBar" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=1878516243] unique_name_in_owner = true layout_mode = 2 show_percentage = false [node name="DefenderATKLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=1571527922] unique_name_in_owner = true layout_mode = 2 text = "ATK: 0" [node name="DefenderDEFLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=1755454849] unique_name_in_owner = true layout_mode = 2 text = "DEF: 0" [node name="DefenderHITLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=717216786] unique_name_in_owner = true layout_mode = 2 text = "HIT: 0%" [node name="DefenderSPDLabel" type="Label" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/StatsContainer/DefenderStats" unique_id=132072292] unique_name_in_owner = true layout_mode = 2 text = "SPD: 0" [node name="ButtonContainer" type="HBoxContainer" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer" unique_id=2145647565] layout_mode = 2 alignment = 1 [node name="FightButton" type="Button" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/ButtonContainer" unique_id=2109262268] unique_name_in_owner = true layout_mode = 2 text = "Fight" [node name="CancelButton" type="Button" parent="UIBase/CombatProposalPanel/MarginContainer/VBoxContainer/ButtonContainer" unique_id=238295206] unique_name_in_owner = true layout_mode = 2 text = "Cancel" [node name="UnitPanel" type="Control" parent="UIBase" unique_id=1823763147] unique_name_in_owner = true layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -265.0 offset_top = -194.0 grow_horizontal = 0 grow_vertical = 0 [node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel" unique_id=691752297] layout_mode = 0 offset_left = 128.0 offset_right = 265.0 offset_bottom = 26.0 size_flags_horizontal = 8 texture = SubResource("AtlasTexture_3wejr") [node name="UnitLevel" type="HBoxContainer" parent="UIBase/UnitPanel/TextureRect" unique_id=828992814] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -63.0 offset_top = -20.0 grow_horizontal = 0 grow_vertical = 0 [node name="Spacer" type="Control" parent="UIBase/UnitPanel/TextureRect/UnitLevel" unique_id=1068603879] layout_mode = 2 size_flags_horizontal = 3 [node name="Label" type="TextureRect" parent="UIBase/UnitPanel/TextureRect/UnitLevel" unique_id=1299333906] layout_mode = 2 size_flags_vertical = 8 texture = SubResource("AtlasTexture_uh1k2") [node name="LevelNumber" parent="UIBase/UnitPanel/TextureRect/UnitLevel" unique_id=702997768 instance=ExtResource("5_55shj")] unique_name_in_owner = true 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/UnitPanel" unique_id=53239936] layout_mode = 0 offset_left = -127.0 offset_top = 103.0 offset_right = 253.0 offset_bottom = 131.0 alignment = 2 [node name="HealthChipBar" parent="UIBase/UnitPanel/UnitHealth" unique_id=379110810 instance=ExtResource("6_gqe5k")] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 max_chips_per_row = 100 empty_chip_texture = SubResource("AtlasTexture_eskga") filled_chip_texture = SubResource("AtlasTexture_14b7f") [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="HealthNumber" parent="UIBase/UnitPanel/UnitHealth" unique_id=1442983008 instance=ExtResource("5_55shj")] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 4 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 = 1.0 offset_top = 133.0 offset_right = 249.0 offset_bottom = 151.0 [node name="SPChipBar" parent="UIBase/UnitPanel/UnitSP" unique_id=374103132 instance=ExtResource("6_gqe5k")] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 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="SPNumber" parent="UIBase/UnitPanel/UnitSP" unique_id=442319509 instance=ExtResource("5_55shj")] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 4 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 = 1.0 offset_top = 160.0 offset_right = 249.0 offset_bottom = 178.0 [node name="FSChipBar" parent="UIBase/UnitPanel/UnitFS" unique_id=1380843979 instance=ExtResource("6_gqe5k")] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 4 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="FSNumber" parent="UIBase/UnitPanel/UnitFS" unique_id=1558008542 instance=ExtResource("5_55shj")] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 4 sprite_sheet = SubResource("AtlasTexture_ox7qj") number_sprite_width = 13 number_sprite_height = 15 [node name="UnitName" type="RichTextLabel" parent="UIBase/UnitPanel" unique_id=1945794101] unique_name_in_owner = true layout_mode = 0 offset_left = 69.0 offset_top = 51.0 offset_right = 258.0 offset_bottom = 66.0 theme = ExtResource("1_2ro41") theme_override_font_sizes/normal_font_size = 16 theme_override_font_sizes/bold_font_size = 16 bbcode_enabled = true scroll_active = false text_direction = 2