diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 18:53:32 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 18:53:32 +0100 |
| commit | 6b5425ebd35c28e20680f5f28c887b705827ba1c (patch) | |
| tree | 9b9c4b74c597b4d225e65a04e8812de784d91f01 /src/ISURFACE_STATUS.md | |
| parent | GUI: fix footer clipping; remove the old text menu (diff) | |
| download | hl2h-6b5425ebd35c28e20680f5f28c887b705827ba1c.tar.gz hl2h-6b5425ebd35c28e20680f5f28c887b705827ba1c.zip | |
GUI: add on-screen toasts and atomic config writes
- Toast queue drawn in the top-right by the overlay, independent of the GUI
being open. Info/warn/error colors and 6/9/12 s lifetimes; timers start on
the first painted frame so startup messages are not missed.
- Queue a load toast after install_menu, plus warnings/errors for missing
modules/interfaces/netvars, input hooks, fonts, ISurface, server datamap,
and spread seed support.
- Toast on config reload, reset, bind/unbind and config save failure.
- Config saves now write `config.tmp`, flush, then rename it over the real
file; failures leave the previous config intact.
- config_load reports whether a file was found so Reload can distinguish a
successful reload from a missing file.
- Update CONTEXT and ISURFACE_STATUS for the single GUI, toasts and atomic
config writes.
Diffstat (limited to '')
| -rw-r--r-- | src/ISURFACE_STATUS.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ISURFACE_STATUS.md b/src/ISURFACE_STATUS.md index 00a7adf..d553af0 100644 --- a/src/ISURFACE_STATUS.md +++ b/src/ISURFACE_STATUS.md | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # HL2hake ISurface Drawing — Status Report | 1 | # HL2hake ISurface Drawing — Status Report |
| 2 | 2 | ||
| 3 | ## Date: 2026-09-12, updated 2026-10-26 | 3 | ## Date: 2026-09-12, updated 2026-10-27 |
| 4 | 4 | ||
| 5 | ## Result: WORKING | 5 | ## Result: WORKING |
| 6 | 6 | ||
| @@ -67,21 +67,21 @@ fc-match findings (system fontconfig): | |||
| 67 | 67 | ||
| 68 | ## Menu | 68 | ## Menu |
| 69 | 69 | ||
| 70 | - Starts fully collapsed on first open; `Insert` toggles it. | 70 | - Custom immediate-mode GUI; `Insert` is the only toggle. |
| 71 | - Tree: HL2hake -> Bunnyhop (Active, Auto-strafe), ABH (Active), ESP (Active, | 71 | - Sidebar: Movement / Combat / Visuals / Weapons / System. Cards show |
| 72 | Show neutral/healthbar/healthnum/name/skeleton/box), Aimbot (Active, Bind, | 72 | Active + Bind and collapsible settings; System has config path, build info, |
| 73 | Vischeck, Bones, Smoothness), Triggerbot (Active, Bind), Silent aim | 73 | Reload and two-click Reset. |
| 74 | (Active, Bind). Children indented by `g_depth[]` (+12px/level). | ||
| 75 | - Right-aligned state at x=270: `[on]`/`[off]` for toggles, `[keyname]` for | ||
| 76 | binds, `[press key]` while binding, `N deg/tick` for values. | ||
| 77 | - Feature gating: `feature_active(int)` (menu.cpp) — active AND | 74 | - Feature gating: `feature_active(int)` (menu.cpp) — active AND |
| 78 | (bind==0 or key held), used by `do_move` and the aim features. | 75 | (bind==0 or key held), used by `do_move` and the aim features. |
| 79 | - Config: `$XDG_CONFIG_HOME/hl2hake/config` (fallback `~/.config/hl2hake/config`). | 76 | - Layout (`x`, `y`, `category`, `expanded` bitmask) persists under `[gui]`. |
| 77 | - Config: `$XDG_CONFIG_HOME/hl2hake/config` (fallback `~/.config/hl2hake/config`); | ||
| 78 | writes are atomic (`.tmp` + rename). | ||
| 79 | - Toasts are drawn by `gui.cpp` even when the menu is closed. | ||
| 80 | 80 | ||
| 81 | ## Build / Run | 81 | ## Build / Run |
| 82 | 82 | ||
| 83 | - `./build.sh`: g++ `-m32 -O2 -std=c++17 -fPIC -shared`, 9 TUs | 83 | - `./build.sh`: g++ `-m32 -O2 -std=c++17 -fPIC -shared`, 10 TUs |
| 84 | (`hl2h modules cinput netvars menu esp server bones vischeck`), `-ldl`, | 84 | (`hl2h modules cinput netvars menu gui esp server bones vischeck`), `-ldl`, |
| 85 | `-Wall -Wextra -Werror` (all warnings fatal). | 85 | `-Wall -Wextra -Werror` (all warnings fatal). |
| 86 | - `./play.sh -windowed +map d1_trainstation_01` (Steam runtime wrapper, | 86 | - `./play.sh -windowed +map d1_trainstation_01` (Steam runtime wrapper, |
| 87 | `LD_PRELOAD=libhl2hake.so`). | 87 | `LD_PRELOAD=libhl2hake.so`). |
