diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 18:02:10 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 18:02:10 +0100 |
| commit | 0e9f3422e37d0b2d1344efec5ceb07c2246bfcd7 (patch) | |
| tree | a8aa0b5a4718f0e7d407a31135823523a77744b0 /src/hl2h.h | |
| parent | Speedgraph: lower the graph (diff) | |
| download | hl2h-0e9f3422e37d0b2d1344efec5ceb07c2246bfcd7.tar.gz hl2h-0e9f3422e37d0b2d1344efec5ceb07c2246bfcd7.zip | |
GUI: add F2 preview shell with dummy controls
First vertical slice for the custom ISurface GUI:
- window/sidebar/content shell with Movement, Combat, Visuals, Weapons and
System categories;
- cards with dummy Active/Bind, collapsible settings, toggles, sliders,
buttons, bind capture, scrolling and tooltips;
- native OS cursor by releasing SDL relative mode; reasserted while open;
- F2 toggles the preview; Insert still opens the old text tree;
- while the GUI is open, do_move freezes movement/buttons/impulses/view and
skips combat features; ESP and the speed graph keep drawing.
Dummy controls do not touch the real config yet. The text menu is removed
after feature parity in the next pass.
Diffstat (limited to 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -230,6 +230,11 @@ bool head_position(int idx, Vector &out); | |||
| 230 | int aim_points(int idx, unsigned group_mask, Vector *out, int max); | 230 | int aim_points(int idx, unsigned group_mask, Vector *out, int max); |
| 231 | 231 | ||
| 232 | void outer_draw(); | 232 | void outer_draw(); |
| 233 | void menu_force_close(); | ||
| 234 | void gui_handle_input(); | ||
| 235 | void gui_draw(); | ||
| 236 | bool gui_is_open(); | ||
| 237 | QAngle gui_frozen_view(); | ||
| 233 | // ISurface pointer (defined in menu.cpp, used for drawing tests) | 238 | // ISurface pointer (defined in menu.cpp, used for drawing tests) |
| 234 | struct ISurface; | 239 | struct ISurface; |
| 235 | extern ISurface *g_surface; | 240 | extern ISurface *g_surface; |
