Commit f7a6ebc
committed
Add in-game HUD options menu (Shift+H)
Introduces a two-column overlay menu toggled with Shift+H or Esc, allowing players to enable/disable individual HUD elements without leaving the game. Replaces the previous all-or-nothing HUD toggle.
Registers dedicated CVars for all HUD elements (CVAR_ARCHIVE)
Redundant CVars removed in favour of native ones (cg_drawRearView, cg_drawMMap, cg_derbyHitFxEnable)
Checkpoint Arrow cycles through all three states: Off / On HUD / Above Car
Derby and Scores Panel entries are greyed out and non-interactive when not applicable to the current game type
Fuel Gauge follows Speedometer (no separate toggle needed)
Menu input is isolated from the game: Shift+H sets KEYCATCH_CGAME, preventing chat and other binds from firing while the menu is open
Cursor rendered via menu/art/3_cursor2; mouse click toggles entries directly
Layout: 560px wide panel, two columns (Racing left, Derby/Vehicle right), BIGCHAR title, TINYCHAR hint, uniform badge width for clean alignment
Refactored from monolithic cg_rally_hud.c/.c2 into cg_hud_core.c, cg_hud_racing.c, cg_hud_derby.c, cg_hud_vehicle.c1 parent 0d74d5c commit f7a6ebc
File tree
10 files changed
+2511
-5
lines changed- engine
- code
- cgame
- client
- docs
10 files changed
+2511
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2729 | 2729 | | |
2730 | 2730 | | |
2731 | 2731 | | |
2732 | | - | |
2733 | | - | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
2734 | 2736 | | |
2735 | 2737 | | |
2736 | 2738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
3168 | 3169 | | |
3169 | 3170 | | |
3170 | 3171 | | |
| 3172 | + | |
3171 | 3173 | | |
3172 | 3174 | | |
3173 | 3175 | | |
| |||
3510 | 3512 | | |
3511 | 3513 | | |
3512 | 3514 | | |
3513 | | - | |
| 3515 | + | |
3514 | 3516 | | |
3515 | 3517 | | |
3516 | 3518 | | |
| |||
0 commit comments