summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 18:53:32 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 18:53:32 +0100
commit6b5425ebd35c28e20680f5f28c887b705827ba1c (patch)
tree9b9c4b74c597b4d225e65a04e8812de784d91f01 /CONTEXT.md
parentGUI: fix footer clipping; remove the old text menu (diff)
downloadhl2h-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 'CONTEXT.md')
-rw-r--r--CONTEXT.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
index 5e0e4b2..78f7c75 100644
--- a/CONTEXT.md
+++ b/CONTEXT.md
@@ -116,6 +116,11 @@ vocabulary / decisions.
116 and ESP/FOV circle/speed graph keep drawing. No invulnerability. 116 and ESP/FOV circle/speed graph keep drawing. No invulnerability.
117- **Native cursor**: on open, leave SDL relative-mouse mode and show the OS 117- **Native cursor**: on open, leave SDL relative-mouse mode and show the OS
118 cursor; restore on close. Absolute mouse coordinates are used. 118 cursor; restore on close. Absolute mouse coordinates are used.
119- **Toast**: transient top-right notification drawn by the overlay even when
120 the GUI is closed. Info/warn/error colors; lifetimes 6/9/12 s. Toasts queued
121 before the first paint (load errors) start their timer when first drawn.
122 Used for the load message, config problems, missing interfaces/netvars,
123 bind changes, Reload and Reset.
119- **Bind capture**: click Bind, press a key or any mouse button; Esc cancels 124- **Bind capture**: click Bind, press a key or any mouse button; Esc cancels
120 capture but does not close the GUI; the small x clears the bind (None = 125 capture but does not close the GUI; the small x clears the bind (None =
121 always-on). Insert is reserved for the GUI. 126 always-on). Insert is reserved for the GUI.
@@ -134,6 +139,8 @@ vocabulary / decisions.
134 `x`, `y`, `category` and an `expanded` bitmask (card index order). Every 139 `x`, `y`, `category` and an `expanded` bitmask (card index order). Every
135 feature now persists an `active` and `bind` pair, including movement, melee 140 feature now persists an `active` and `bind` pair, including movement, melee
136 and spread. 141 and spread.
142- Config writes are atomic: `config.tmp` is written and flushed, then
143 `rename()`d over the real file. A failed write raises an error toast.
137 144
138 145
139## Bones / ESP 146## Bones / ESP