Show inactive Viper utility states - #121
Conversation
📝 WalkthroughWalkthroughThe PR adds inactive-state support for image and wall abilities. It adds inactive trace painters, animated widget rendering, Active context-menu controls, Viper configuration, and widget tests. ChangesInactive ability state
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant VisibilityMenu
participant AbilityWidget
participant InactiveTrace
User->>VisibilityMenu: Select Active
VisibilityMenu->>AbilityWidget: Set showRangeFill false
AbilityWidget->>InactiveTrace: Render inactive trace
InactiveTrace-->>AbilityWidget: Paint alpha-adjusted trace
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThe inactive Poison Cloud presentation removes its placed icon, leaving only the dashed footprint. T-Rex validation blockedThe focused Flutter widget test could not run because the required Flutter 3.44.4 tool is not installed in this environment ( Confidence Score: 4/5The inactive Poison Cloud state does not preserve the placed ability icon, so the change is not ready to merge as implemented. One actionable non-security failure remains: disabling Poison Cloud hides its placed icon rather than displaying it with the inactive footprint. Files Needing Attention: lib/widgets/draggable_widgets/ability/simple_image_ability_widget.dart
What T-Rex did
|
What
Activetoggle for Viper's Poison Cloud and Toxic Screen.Colors.greenAccentat alpha100).AbilityVisualState, preserving strategy saves, undo/redo, lineups, and.icaround-trips without a schema migration.Why
An icon-only or faded state loses spatial truth. The dashed geometry keeps the planned placement visible while clearly separating inactive utility from active gas.
Deactivated state
Demo
▶ Watch the updated 13-second Viper inactive-state demo
The screenshot and recording use the production widgets and context menus in an isolated, non-persisting demo surface; no local strategy library data was read or written.
Checks
flutter test— all tests passedflutter test test/ability_visibility_widgets_test.dart— 29 passed after the visual adjustmentsflutter build windows --debug— passedflutter analyze— only the pre-existingpages_bar.dart:534onReorderdeprecation remainsSummary by CodeRabbit
New Features
Bug Fixes
Tests