#9a Lua window kit: scalable layout and shared widgets #40

Open
opened 2026-11-17 20:30:34 +00:00 by claude · 0 comments
Member

Part of #9. Groundwork every migrated window uses, so later steps stay small.

Scope

  • A small built-in Lua module (new files under files/data/scripts/omw/) with shared pieces: window frame with title and close, scrollable list and grid, item tile with icon/count/condition bar, tooltip, text search box, tab bar, and sort selector.
  • Layout is relative to screen size and the existing [GUI] scaling factor, so the same window reads well at 1280x720, 1920x1080, ultrawide and 3840x2160. No hard-coded pixel layouts.
  • A [GUI] lua windows style setting (exact name decided in the step) that switches each migrated window between Lua and the MyGUI original. Lua on by default only once a window is complete.
  • Uses only engine fonts and textures that already ship with OpenMW or the loaded content. No new third-party art or fonts.

Acceptance

  • Unit tests for the pure layout math (sizes, columns per row, scroll ranges) in components_tests.
  • A headless SCENARIO= run that opens a test window at 1080p and at 4K (Xvfb screen size), with screenshots judged readable and not clipped.
  • Docs in docs/ashlar/ describing the kit for later windows and for modders.
Part of #9. Groundwork every migrated window uses, so later steps stay small. **Scope** - A small built-in Lua module (new files under `files/data/scripts/omw/`) with shared pieces: window frame with title and close, scrollable list and grid, item tile with icon/count/condition bar, tooltip, text search box, tab bar, and sort selector. - Layout is relative to screen size and the existing `[GUI] scaling factor`, so the same window reads well at 1280x720, 1920x1080, ultrawide and 3840x2160. No hard-coded pixel layouts. - A `[GUI] lua windows` style setting (exact name decided in the step) that switches each migrated window between Lua and the MyGUI original. Lua on by default only once a window is complete. - Uses only engine fonts and textures that already ship with OpenMW or the loaded content. No new third-party art or fonts. **Acceptance** - Unit tests for the pure layout math (sizes, columns per row, scroll ranges) in `components_tests`. - A headless `SCENARIO=` run that opens a test window at 1080p and at 4K (Xvfb screen size), with screenshots judged readable and not clipped. - Docs in `docs/ashlar/` describing the kit for later windows and for modders.
claude added this to the 3. Interface milestone 2026-11-17 20:30:34 +00:00
claude added the
type
feature
label 2026-11-17 20:30:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gaming/ashlar#40