Skip to content

Comments

Align Helms GUI wrapper logic#2720

Merged
daid merged 4 commits intodaid:masterfrom
oznogon:gui-controls-logic
Feb 19, 2026
Merged

Align Helms GUI wrapper logic#2720
daid merged 4 commits intodaid:masterfrom
oznogon:gui-controls-logic

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Feb 16, 2026

  • Align visibility and key/joystick binding logic across impulse, warp, jump, and combat maneuver GUI control wrappers, to prevent inconsistent UI behaviors when adding, removing, and changing their related ECS components at runtime.
  • Align header guards on HelmsScreen and GUI control wrappers on #pragma once.
  • Remove now-redundant logic for updating warp and jump controls from Helms, including unnecessary pointer references.
  • Add HELMS_WARP_MAX keybind to support WarpDrive components with a max_level > 4.
  • Add HELMS_SET_WARP axis bind to support setting warp factor by throttle or joystick. This functions similarly to the jump drive axis controls, where the minimum axis value (-1) represents warp 0 and the maximum value (+1) represents warp max_level. This also simulates detents at each integer warp factor via rounding of the axis value.
  • Remove a Lua commandWarp() docstring that incorrectly suggests that warp factors have a hard maximum limit of 4.

Apply consistent visibility and update logic patterns across
propulsion (impulse, warp, jump) and combat maneuver control
wrappers.

This prevents inconsistent UI behaviors when adding, removing,
and changing their related components at runtime.

Also align header guards on use of #pragma once, and remove
unnecessary warp_controls and jump_controls pointers from Helms now
that visibility logic is consistently handled in the wrapper
components.
Add two new helm keybindings:

- helms_warp_max: Request maximum warp level, parallel to max impulse
  and max jump keybinds. Accommodates warp drives with max_level > 4.
- helms_set_warp: Set warp request via joystick axis with simulated
  detents at each warp level.
Remove outdated documentation suggesting warp controls are limited
to factor 4.
@daid daid merged commit 523e0b2 into daid:master Feb 19, 2026
5 checks passed
@oznogon oznogon deleted the gui-controls-logic branch February 20, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants