pub fn load_layout(name: &str) -> Result<ScreenLayout, RenderError>Expand description
Load a layout by name from the game’s data directory.
Tries to load from data/ui_layouts/{name}.json relative to the current
working directory (a generic fallback; callers that know their own data
root pass a full path instead).
§Errors
Returns RenderError::InvalidLayout if the file cannot be read or
the JSON is malformed.