Files
MaidEngine/prefabs/combat_ui.tscn
2026-04-09 12:03:31 -04:00

319 lines
11 KiB
Plaintext

[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/StylizedNumberDisplay.tscn" id="5_55shj"]
[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="CanvasItemMaterial" id="CanvasItemMaterial_hadma"]
blend_mode = 1
[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(546, 839, 272, 39)
[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="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
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="UnitPanel2" type="Control" parent="UIBase" unique_id=1823763147]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -241.0
offset_top = -194.0
grow_horizontal = 0
grow_vertical = 0
[node name="VBoxContainer" type="VBoxContainer" parent="UIBase/UnitPanel2" unique_id=1655913738]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Level" type="Control" parent="UIBase/UnitPanel2/VBoxContainer" unique_id=1602621942]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="UIBase/UnitPanel2/VBoxContainer/Level" unique_id=691752297]
material = SubResource("CanvasItemMaterial_hadma")
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -137.0
offset_top = -13.0
offset_bottom = 13.0
grow_horizontal = 0
grow_vertical = 2
texture = SubResource("AtlasTexture_3wejr")
[node name="Items" type="HBoxContainer" parent="UIBase/UnitPanel2/VBoxContainer/Level" unique_id=828992814]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -241.0
offset_top = -10.0
offset_bottom = 10.0
grow_horizontal = 0
grow_vertical = 2
[node name="Spacer" type="Control" parent="UIBase/UnitPanel2/VBoxContainer/Level/Items" unique_id=1068603879]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="TextureRect" parent="UIBase/UnitPanel2/VBoxContainer/Level/Items" unique_id=1299333906]
layout_mode = 2
size_flags_vertical = 8
texture = SubResource("AtlasTexture_uh1k2")
[node name="StylizedNumberDisplay" parent="UIBase/UnitPanel2/VBoxContainer/Level/Items" unique_id=702997768 instance=ExtResource("5_55shj")]
layout_mode = 2
sprite_sheet = SubResource("AtlasTexture_yayqj")
number_sprite_width = 27
number_sprite_height = 36
value = 12