summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 18:02:10 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 18:02:10 +0100
commit0e9f3422e37d0b2d1344efec5ceb07c2246bfcd7 (patch)
treea8aa0b5a4718f0e7d407a31135823523a77744b0 /src/hl2h.h
parentSpeedgraph: lower the graph (diff)
downloadhl2h-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 285b591..11b9014 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -230,6 +230,11 @@ bool head_position(int idx, Vector &out);
230int aim_points(int idx, unsigned group_mask, Vector *out, int max); 230int aim_points(int idx, unsigned group_mask, Vector *out, int max);
231 231
232void outer_draw(); 232void outer_draw();
233void menu_force_close();
234void gui_handle_input();
235void gui_draw();
236bool gui_is_open();
237QAngle 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)
234struct ISurface; 239struct ISurface;
235extern ISurface *g_surface; 240extern ISurface *g_surface;