1.2.12 — Open button layout config
What changed
Open button now configurable in layout.rblua
Two new layout fields control the floating open/reopen button:
layout {
open_button_mobile_only = true, -- false = also show on desktop
open_button_icon = "swords", -- any Lucide icon name
}
| Field | Type | Default | Description |
|---|---|---|---|
open_button_mobile_only | boolean | true | true = button only appears on mobile; false = visible on desktop too |
open_button_icon | string | "" | Lucide icon name shown on the button (e.g. "swords", "menu") |
Setting open_button_mobile_only = false is useful when you want a persistent button on desktop so players can reopen the window after closing it without needing the keyboard shortcut.
Dynamic layout adaptation removed
The live HStack/VStack switching added in 1.2.11 has been removed. Attempting to flip UIListLayout.FillDirection on WindUI's internal containers at runtime is not reliable across WindUI versions. The layout is determined once at load time based on viewport width (≥ 960 px → two-column, < 960 px → single-column) and remains fixed for the session.
Impact on existing projects
open_button_mobile_only and open_button_icon are optional — existing layout.rblua files without them continue to work (default: mobile-only, no icon override).