layout_live_edit
Live-edit the styling of an existing game layout (e.g. layout='citadel_hud_top_bar').
Instructions
Live-edit the styling of an existing game layout (e.g. layout='citadel_hud_top_bar').
css: an edited copy of one of the layout's stylesheets. stylesheet: which one, in any form ('hud/foo', 'styles/hud/foo.css', 's2r://panorama/styles/hud/foo.vcss'); default: the layout's include with the layout's own name, else its only include (an error lists the choices). Get the original with ui_source. Declarations you added or changed are applied live as a persistent inline-style sheet named 'live:<path under styles/ without extension>', e.g. 'live:hud/foo' (@define values are substituted; pseudo-classes/animations and removed declarations can't be applied live — use compile_source for those). Undo with css_clear('live:hud/foo').
unsafe_reload=True instead compiles an edited copy of the layout (xml and/or css) and re-loads it into the live panels. This CRASHES the game for layouts whose root is a C++ panel type (most HUD/dashboard layouts, e.g. CitadelHudTopBar); the bridge skips panels it knows are unsafe and lists them under 'skipped'. Only use it for plain Panel-rooted layouts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layout": "<layout>"
},
"name": "layout_live_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ui | No | auto | |
| css | No | ||
| xml | No | ||
| layout | Yes | ||
| stylesheet | No | ||
| unsafe_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |