From 8ba97262a0219d7defd928d7bfb5f4214f235fc8 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 18:36:31 +0100 Subject: 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. --- CONTEXT.md | 53 ++++++----------------------------------------------- 1 file changed, 6 insertions(+), 47 deletions(-) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index 0cb05c5..5e0e4b2 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -94,52 +94,11 @@ Relevant vtable slots (this build): ## Menu -Preview key: `F1` (the final GUI will replace this tree). Starts fully collapsed on first open. `F1` toggles; `Up`/`Down` navigate; -`Enter` expands/toggles; `Left`/`Right` edit values; `Escape` closes. -Bind rows enter bind-select mode: press a key/button to assign, `Escape` sets -None (always-on), `Enter` cancels. - -> The text menu below is being replaced by the GUI described in the next -> section. The GUI now drives the same feature state/config. The old tree is -> kept only for a verification pass; **Insert** toggles the GUI and the old -> text tree is on **F1**. - -``` -HL2hake - Bunnyhop - Active - Uni-directional auto-strafe - ABH - Active - Jumpbug - Active - Assist timing - Melee killbot - Active - Spread control - Active - No spread - ESP - Active - Show neutral / healthbar / healthnum / name / skeleton / box / speed graph - Aimbot - Active - Bind - Vischeck - Bones -> Head / Torso / Left arm / Right arm / Left leg / Right leg - Smoothness (1..45 deg/tick, Left/Right) - FOV (1..180 deg, Left/Right) - Show FOV circle - Triggerbot - Active - Bind - Silent aim - Active - Bind - FOV (1..180 deg, Left/Right) -``` - -Binds use SDL scancodes; mouse buttons are pseudo-scancodes 600..604. +There is a single menu: the custom GUI, toggled with `Insert`. The old +text-tree menu was removed after the GUI reached parity. Every feature still +has an active flag and a bind (SDL scancode; mouse buttons 600..604; None = +always-on), and all settings are persisted in the INI described under GUI +vocabulary / decisions. ## GUI vocabulary / decisions @@ -170,7 +129,7 @@ Binds use SDL scancodes; mouse buttons are pseudo-scancodes 600..604. category and expanded cards persisted under `[gui]` in the same INI. Esc does not close the GUI; the toggle key (Insert) is the only close path. There is no title-bar X. -- GUI controls write the same state the text tree used; sliders persist when +- GUI controls write the shared feature state; sliders persist when the drag ends, toggles/binds/layout persist immediately. `[gui]` stores `x`, `y`, `category` and an `expanded` bitmask (card index order). Every feature now persists an `active` and `bind` pair, including movement, melee -- cgit v1.2.3