Add Use Spot Overlay and Target Capture Bar functionality

- Introduced `StageUseTargetCaptureBar` class for managing user interactions with props and their use spots.
- Implemented UI elements including buttons for changing props and canceling actions.
- Added `PropUseSpotData` class for validation and serialization of prop use spots.
- Created tests for validating use spot data migration, serialization, and rule matching.
- Ensured proper handling of edge cases in use spot data, including unique IDs and finite positions.
This commit is contained in:
2026-10-13 11:23:44 -04:00
parent 235c6aa6a6
commit d8b1b1164b
42 changed files with 3847 additions and 50 deletions
+20
View File
@@ -176,6 +176,17 @@
"stickman_cue_color": "#F5F7FA",
"prop_cue_color": "#B7824D",
"cue_outline_color": "#171B24"
},
"spots": {
"row_gap": 8,
"pin_visual_size": 30,
"pin_hit_size": 44,
"pin_outline_width": 2,
"focus_ring_width": 3,
"name_pill_padding": 10,
"pin_surface_color": "#F4F7FB",
"pin_outline_color": "#171B24",
"completion_duration": 0.6
}
},
"overlays": {
@@ -183,6 +194,8 @@
"terrain_guide": { "color": "#22C6FF" },
"completed_path_alpha": 0.2,
"completed_path_color": "#959EAD",
"rule_connector_color": "#AAB2C0",
"rule_action_color": "#7E57C2",
"valid": { "color": "#4DE66680" },
"same_type": { "color": "#FFFFFF26" },
"invalid": { "color": "#FF4D4D80" },
@@ -190,6 +203,13 @@
"unknown_color": "#C5CAD4",
"reach_color": "#FFB300",
"ghost_alpha": 0.36
},
"use_preview": {
"valid_color": "#42D887",
"invalid_color": "#F06464",
"uncertain_color": "#FFB300",
"neutral_color": "#C5CAD4",
"completion_duration": 0.6
}
},
"widgets": {