Cursor work

This commit is contained in:
2026-01-18 00:25:42 -06:00
parent 8e0ab72185
commit 6f3f613f56
11 changed files with 317 additions and 54 deletions

View File

@@ -2,14 +2,14 @@
[ext_resource type="PackedScene" uid="uid://d1xyb0hdf1yeh" path="res://battle/fighter/BattleFighterScene.tscn" id="1_abr1f"]
[ext_resource type="Script" uid="uid://dihfp05x6pktn" path="res://battle/BattleScene.gd" id="1_acaen"]
[ext_resource type="PackedScene" uid="uid://ktmvnapibv2q" path="res://battle/ui/ActionBox.tscn" id="2_c3ndu"]
[ext_resource type="PackedScene" uid="uid://c4knowtushjly" path="res://battle/ui/BattleCursor.tscn" id="3_7s6t6"]
[ext_resource type="PackedScene" uid="uid://ktmvnapibv2q" path="res://battle/ui/action/ActionBox.tscn" id="2_c3ndu"]
[ext_resource type="PackedScene" uid="uid://br2rs8skcn72l" path="res://battle/ui/action/BattleCursorIcon.tscn" id="3_7s6t6"]
[node name="BattleScene" type="Node3D" node_paths=PackedStringArray("actionBox", "battleCursor", "battleFighterScenes")]
[node name="BattleScene" type="Node3D" node_paths=PackedStringArray("actionBox", "battleFighterScenes", "cursorScenes")]
script = ExtResource("1_acaen")
actionBox = NodePath("UI/ActionBox")
battleCursor = NodePath("UI/BattleCursor")
battleFighterScenes = NodePath("Fighters")
cursorScenes = NodePath("UI/Cursors")
metadata/_custom_type_script = "uid://dihfp05x6pktn"
[node name="UI" type="Control" parent="."]
@@ -29,9 +29,189 @@ offset_right = 40.0
offset_bottom = 12.0
text = "Battle"
[node name="BattleCursor" parent="UI" instance=ExtResource("3_7s6t6")]
[node name="Cursors" type="Control" parent="UI"]
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="LeftTopBack" 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
[node name="LeftTopFront" 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 = 1
[node name="LeftMiddleBack" 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 = 2
[node name="LeftMiddleFront" 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 = 3
[node name="LeftBottomBack" 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 = 4
[node name="LeftBottomFront" 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 = 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")]
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 = 11
[node name="RightBottomBack" 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 = 10
[node name="Fighters" type="Node" parent="."]