Skip to content

rq.SettingsOpts ​

since 2.35.0

What rq.config.settings takes.

Fields ​

NameTypeDescription
rowsrq.SettingsRow []The rows, top to bottom.
id (optional)stringThe page's id (rq.config.show). Default the mod's id.
title (optional)stringThe page's row in the list and its heading. Default the mod's name.
keep (optional)"global"|"profile"|"save"Where the values are kept: "global" (default) in rq.store.global, the same for every profile; "profile" in rq.store, the profile's; "save" in rq.savedata, the save's, and the page asks to load a save first while none is loaded.
reset (optional)booleanfalse leaves out the Reset button, which puts every row back to its default.
label_w (optional)integerThe width of the labels' column in pixels. Default the widest label, 120 to 420.
draw (optional)fun(ui: rq.uikit , box: {x: integer, y: integer, w: integer, h: integer})Draws more after the rows and the Reset button, as a page's own draw does.
on_open (optional)fun()The page came on screen.
on_close (optional)fun()It went away.

Used by ​

rq.config.settings