- Added BattleState class to manage battle flow, including turn management and event handling. - Introduced BuffInstance class to represent buffs applied to combatants. - Created CardInstance class to handle card definitions and cost calculations. - Developed CombatantState class to manage combatant attributes and actions. - Implemented EffectRegistry to apply effects based on event specifications. - Added various handlers (BlockHandler, DamageHandler, DrawHandler, etc.) to process specific events. - Created IntentPlanner and IntentState classes to manage enemy actions and intents. - Established a queue system for handling battle events with BattleEventQueue and BattleEventTask. - Introduced triggers for applying effects based on game events (e.g., OnCardDrawnGainBlockTrigger). - Added necessary UID files for new scripts to ensure proper resource management.
122 lines
2.6 KiB
Plaintext
122 lines
2.6 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://dwanhimc5evhk"]
|
|
|
|
[ext_resource type="Script" path="res://Game/Presentation/Cards/Scripts/BaseCardView.gd" id="1_hg72d"]
|
|
|
|
[node name="BaseCard" type="Control"]
|
|
custom_minimum_size = Vector2(180, 240)
|
|
layout_mode = 0
|
|
size_flags_vertical = 0
|
|
script = ExtResource("1_hg72d")
|
|
|
|
[node name="Visuals" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="BackGround" type="TextureRect" parent="Visuals"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="Art" type="TextureRect" parent="Visuals"]
|
|
layout_mode = 0
|
|
offset_left = 16.0
|
|
offset_top = 42.0
|
|
offset_right = 164.0
|
|
offset_bottom = 130.0
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="TypeLayer" type="TextureRect" parent="Visuals"]
|
|
layout_mode = 0
|
|
offset_left = 12.0
|
|
offset_top = 136.0
|
|
offset_right = 168.0
|
|
offset_bottom = 158.0
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="Frame" type="TextureRect" parent="Visuals"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="CostIndicator" type="TextureRect" parent="Visuals"]
|
|
layout_mode = 0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 52.0
|
|
offset_bottom = 52.0
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[node name="UILayer" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="UILayer"]
|
|
layout_mode = 0
|
|
offset_left = 14.0
|
|
offset_top = 12.0
|
|
offset_right = 166.0
|
|
offset_bottom = 32.0
|
|
horizontal_alignment = 1
|
|
|
|
[node name="DescriptionLabel" type="RichTextLabel" parent="UILayer"]
|
|
layout_mode = 0
|
|
offset_left = 14.0
|
|
offset_top = 162.0
|
|
offset_right = 166.0
|
|
offset_bottom = 230.0
|
|
bbcode_enabled = true
|
|
fit_content = true
|
|
scroll_active = false
|
|
|
|
[node name="CostLabel" type="Label" parent="UILayer"]
|
|
layout_mode = 0
|
|
offset_left = 13.0
|
|
offset_top = 16.0
|
|
offset_right = 47.0
|
|
offset_bottom = 42.0
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="HitButton" type="Button" parent="UILayer"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
text = ""
|
|
flat = true
|
|
|
|
[node name="SelectionFrame" type="ColorRect" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
color = Color(1, 0.85, 0.2, 0.2)
|