diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 20:30:15 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 20:30:15 +0100 |
| commit | 5ee13d8cee52505056a14c3ba3793d0e56afa202 (patch) | |
| tree | 856c32e86382d1a4a0161271fdc7cc714560cee2 /CONTEXT.md | |
| parent | Stucklaunch: alternate attack/use and expose spam rate (diff) | |
| download | hl2h-5ee13d8cee52505056a14c3ba3793d0e56afa202.tar.gz hl2h-5ee13d8cee52505056a14c3ba3793d0e56afa202.zip | |
GUI: wrap all text instead of truncating
- Remove ellipsis truncation from text_in; text is never cut to fit.
- Add a wrapping helper that breaks at spaces and, for long words such as
paths, at character boundaries. Card titles, control labels, info rows,
sections, tooltips and toasts now wrap and their rows/panels grow.
- Use ISurface::GetTextSize (slot 75) for real glyph widths, with the old
estimate only as a fallback before the surface/fonts exist.
- Dynamic card header height for wrapped titles; Active/Bind controls stay
vertically centered. Slider controls are vertically centered in taller
wrapped rows.
- Auto-size System buttons to their labels.
- Tooltips wrap to a panel sized by the widest line.
- Drop the duplicate config path from the footer; the System page shows it
wrapped, so the footer hint fits without clipping.
Diffstat (limited to '')
| -rw-r--r-- | CONTEXT.md | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -108,6 +108,10 @@ vocabulary / decisions. | |||
| 108 | - **Category**: sidebar group. Movement, Combat, Visuals, Weapons, System. | 108 | - **Category**: sidebar group. Movement, Combat, Visuals, Weapons, System. |
| 109 | - **Card**: per-feature panel. Header always shows Active + Bind; body is a | 109 | - **Card**: per-feature panel. Header always shows Active + Bind; body is a |
| 110 | collapsible set of settings. | 110 | collapsible set of settings. |
| 111 | - **Text layout**: measured with `ISurface::GetTextSize` and wrapped to the | ||
| 112 | available width. Card headers, control rows, info rows, tooltips and toasts | ||
| 113 | grow/wrap instead of truncating; there is no ellipsis truncation. The config | ||
| 114 | path is shown on the System page (not duplicated in the footer). | ||
| 111 | - **Freeze**: while the GUI is open, look/attack/use/impulse/weapon selection | 115 | - **Freeze**: while the GUI is open, look/attack/use/impulse/weapon selection |
| 112 | are blocked and combat features are skipped, but normal WASD/jump/duck/walk | 116 | are blocked and combat features are skipped, but normal WASD/jump/duck/walk |
| 113 | movement is allowed. Mouse deltas are discarded before `CInput::CreateMove` | 117 | movement is allowed. Mouse deltas are discarded before `CInput::CreateMove` |
