This commit is contained in:
2026-01-18 11:44:34 -06:00
parent 73104560e8
commit f9a4f42821
2 changed files with 88 additions and 92 deletions

View File

@@ -131,6 +131,9 @@ func _getTargets(fighter:BattleFighter, move:BattleAction) -> Array[BattleFighte
cursor.mode = BattleCursorIcon.Mode.ACTIVE cursor.mode = BattleCursorIcon.Mode.ACTIVE
else: else:
cursor.mode = BattleCursorIcon.Mode.INACTIVE cursor.mode = BattleCursorIcon.Mode.INACTIVE
# Handle movement
# TODO: Allow movement here, wait for selection, etc. # TODO: Allow movement here, wait for selection, etc.
# Wait 1 second for now and select all possible targets # Wait 1 second for now and select all possible targets

View File

@@ -9,7 +9,7 @@
script = ExtResource("1_acaen") script = ExtResource("1_acaen")
actionBox = NodePath("UI/ActionBox") actionBox = NodePath("UI/ActionBox")
battleFighterScenes = NodePath("Fighters") battleFighterScenes = NodePath("Fighters")
cursorScenes = NodePath("UI/Cursors") cursorScenes = NodePath("")
metadata/_custom_type_script = "uid://dihfp05x6pktn" metadata/_custom_type_script = "uid://dihfp05x6pktn"
[node name="UI" type="Control" parent="."] [node name="UI" type="Control" parent="."]
@@ -32,10 +32,10 @@ text = "Battle"
[node name="Cursors" type="Control" parent="UI"] [node name="Cursors" type="Control" parent="UI"]
anchors_preset = 0 anchors_preset = 0
offset_right = 40.0 offset_right = 40.0
offset_bottom = 40.0 offset_bottom = 44.0
[node name="LeftTopBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftTopBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
@@ -43,155 +43,148 @@ anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 0.0
offset_top = 0.0 offset_top = 0.0
offset_right = 8.0 offset_right = 0.0
offset_bottom = 8.0 offset_bottom = 0.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
[node name="LeftTopFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftTopFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 4.0
offset_top = 0.0 offset_top = 0.0
offset_right = 8.0 offset_bottom = 0.0
offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
battlePosition = 1 battlePosition = 1
[node name="RightTopFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 2
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 8.0
offset_top = 0.0
offset_right = 8.0
offset_bottom = 0.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 7
[node name="RightTopBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 2
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 12.0
offset_top = 0.0
offset_right = 12.0
offset_bottom = 0.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 6
[node name="LeftMiddleBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftMiddleBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 0.0
offset_top = 0.0 offset_top = 4.0
offset_right = 8.0 offset_right = 0.0
offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
battlePosition = 2 battlePosition = 2
[node name="LeftMiddleFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftMiddleFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 4.0
offset_top = 0.0 offset_top = 4.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
battlePosition = 3 battlePosition = 3
[node name="RightMiddleFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 2
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 8.0
offset_top = 4.0
offset_right = 8.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 9
[node name="RightMiddleBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 2
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 12.0
offset_top = 4.0
offset_right = 12.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 8
[node name="LeftBottomBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftBottomBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 0.0
offset_top = 0.0 offset_top = 8.0
offset_right = 8.0 offset_right = 0.0
offset_bottom = 8.0 offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
battlePosition = 4 battlePosition = 4
[node name="LeftBottomFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="LeftBottomFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 4.0
offset_top = 0.0 offset_top = 8.0
offset_right = 8.0
offset_bottom = 8.0 offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1
battlePosition = 5 battlePosition = 5
[node name="RightTopFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 0.0
offset_top = 0.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 7
[node name="RightTopBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 0.0
offset_top = 0.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 6
[node name="RightMiddleFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 0.0
offset_top = 0.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 9
[node name="RightMiddleBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0
anchors_preset = 0
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 0.0
offset_top = 0.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 1
grow_vertical = 1
battlePosition = 8
[node name="RightBottomFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="RightBottomFront" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 8.0
offset_top = 0.0 offset_top = 8.0
offset_right = 8.0 offset_right = 8.0
offset_bottom = 8.0 offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
@@ -199,15 +192,15 @@ grow_vertical = 1
battlePosition = 11 battlePosition = 11
[node name="RightBottomBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")] [node name="RightBottomBack" parent="UI/Cursors" instance=ExtResource("3_7s6t6")]
layout_mode = 0 layout_mode = 2
anchors_preset = 0 anchors_preset = 0
anchor_left = 0.0 anchor_left = 0.0
anchor_top = 0.0 anchor_top = 0.0
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_left = 0.0 offset_left = 12.0
offset_top = 0.0 offset_top = 8.0
offset_right = 8.0 offset_right = 12.0
offset_bottom = 8.0 offset_bottom = 8.0
grow_horizontal = 1 grow_horizontal = 1
grow_vertical = 1 grow_vertical = 1