diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 18:36:31 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 18:36:31 +0100 |
| commit | 8ba97262a0219d7defd928d7bfb5f4214f235fc8 (patch) | |
| tree | ae7e56661007bda80e61e776a5c123866349da43 /src/hl2h.h | |
| parent | GUI: wire real feature state and config (diff) | |
| download | hl2h-8ba97262a0219d7defd928d7bfb5f4214f235fc8.tar.gz hl2h-8ba97262a0219d7defd928d7bfb5f4214f235fc8.zip | |
GUI: fix footer clipping; remove the old text menu
- Right-align the footer hint and size the config label from the remaining
width, so "INS close" is no longer truncated.
- Delete the text-tree menu now that the GUI has feature parity: remove the
tree/input/render code, the F1 toggle and menu_force_close.
- Keep only held-key polling for feature binds; poll it every frame from
outer_draw.
- Update CONTEXT/ADR: the GUI is the only menu.
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.h | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -185,7 +185,7 @@ enum AimBone { | |||
| 185 | }; | 185 | }; |
| 186 | 186 | ||
| 187 | // --------------------------------------------------------------------------- | 187 | // --------------------------------------------------------------------------- |
| 188 | // feature state / settings (owned by menu.cpp until the text menu is removed) | 188 | // feature state / settings (owned by menu.cpp alongside config) |
| 189 | // --------------------------------------------------------------------------- | 189 | // --------------------------------------------------------------------------- |
| 190 | 190 | ||
| 191 | struct FeatureState { | 191 | struct FeatureState { |
| @@ -268,7 +268,6 @@ bool head_position(int idx, Vector &out); | |||
| 268 | int aim_points(int idx, unsigned group_mask, Vector *out, int max); | 268 | int aim_points(int idx, unsigned group_mask, Vector *out, int max); |
| 269 | 269 | ||
| 270 | void outer_draw(); | 270 | void outer_draw(); |
| 271 | void menu_force_close(); | ||
| 272 | void gui_handle_input(); | 271 | void gui_handle_input(); |
| 273 | void gui_draw(); | 272 | void gui_draw(); |
| 274 | bool gui_is_open(); | 273 | bool gui_is_open(); |
