Fix enemy turn hanging when a lethal hit frees the target widget: UpdateInfo skips freed widgets, animations finish early and restore the attacker only while it is alive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
182 lines
4.5 KiB
Plaintext
182 lines
4.5 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="src/UI/FFCharacterWidget.cs" id="1_script"]
|
|
|
|
[node name="FFCharacterWidget" type="Control" script=ExtResource("1_script")]
|
|
custom_minimum_size = Vector2(180, 260)
|
|
layout_mode = 3
|
|
mouse_filter = 0
|
|
|
|
[node name="TeamLine" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchor_right = 1.0
|
|
offset_bottom = 2.0
|
|
mouse_filter = 2
|
|
|
|
[node name="Art" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 3.0
|
|
offset_top = 3.0
|
|
offset_right = -3.0
|
|
offset_bottom = -92.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="Info" type="PanelContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -92.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
mouse_filter = 2
|
|
|
|
[node name="Column" type="VBoxContainer" parent="Info"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 5
|
|
|
|
[node name="NameRow" type="HBoxContainer" parent="Info/Column"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="TeamDot" type="Panel" parent="Info/Column/NameRow"]
|
|
custom_minimum_size = Vector2(7, 7)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
mouse_filter = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="Info/Column/NameRow"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 14
|
|
clip_text = true
|
|
text_overrun_behavior = 3
|
|
|
|
[node name="HpNumLabel" type="Label" parent="Info/Column/NameRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 11
|
|
|
|
[node name="HpBarStack" type="Control" parent="Info/Column"]
|
|
custom_minimum_size = Vector2(0, 8)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="ShieldBar" type="ProgressBar" parent="Info/Column/HpBarStack"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
show_percentage = false
|
|
|
|
[node name="HpBar" type="ProgressBar" parent="Info/Column/HpBarStack"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
show_percentage = false
|
|
|
|
[node name="Foot" type="HBoxContainer" parent="Info/Column"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="PipsBox" type="HBoxContainer" parent="Info/Column/Foot"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="AtkLabel" type="Label" parent="Info/Column/Foot"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 10
|
|
|
|
[node name="Spacer" type="Control" parent="Info/Column/Foot"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_filter = 2
|
|
|
|
[node name="ShieldChip" type="PanelContainer" parent="Info/Column/Foot"]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
mouse_filter = 2
|
|
|
|
[node name="ShieldRow" type="HBoxContainer" parent="Info/Column/Foot/ShieldChip"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="ShieldKey" type="Label" parent="Info/Column/Foot/ShieldChip/ShieldRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 10
|
|
text = "ui/character_panel/stat_def"
|
|
auto_translate = true
|
|
uppercase = true
|
|
|
|
[node name="ShieldValue" type="Label" parent="Info/Column/Foot/ShieldChip/ShieldRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "0"
|
|
|
|
[node name="StatusBox" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -140.0
|
|
offset_top = 8.0
|
|
offset_right = -8.0
|
|
offset_bottom = 40.0
|
|
grow_horizontal = 0
|
|
mouse_filter = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="StunBadge" type="PanelContainer" parent="StatusBox"]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
mouse_filter = 2
|
|
|
|
[node name="StunRow" type="HBoxContainer" parent="StatusBox/StunBadge"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 5
|
|
|
|
[node name="StunIcon" type="TextureRect" parent="StatusBox/StunBadge/StunRow"]
|
|
custom_minimum_size = Vector2(14, 14)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
mouse_filter = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="StunLabel" type="Label" parent="StatusBox/StunBadge/StunRow"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_font_sizes/font_size = 10
|
|
uppercase = true
|
|
|
|
[node name="Selection" type="Panel" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|