Skip to content

rq.UiTheme ​

since 1.7.0 changed 2.6.0

A look for the kit: pieces, text styles, colors and sounds.

rq.uikit.themes.config is the look of the game's Config screen; it holds Config's pieces only. rq.uikit.themes.hub (2.6.0) is Config's theme with the hub's pieces added: with it in use, rq.uikit.button is the castle's grey button and rq.uikit.list has the game's scroll bar.

Fields ​

NameTypeDescription
labelrq.HudTextStyleLabel text.
dim{r: integer, g: integer, b: integer}The grey-green of Config's Low and High.
pagerq.UiPieceA Config page.
blockrq.UiPieceThe 3D tab's dark block.
buttonrq.UiPieceA button.
button_textrq.HudTextStyleButton text.
button_cover{r: integer, g: integer, b: integer, a: integer}The cover that pulses over a hovered button.
tab{normal: rq.UiPiece , hover: rq.UiPiece , current: rq.UiPiece }The tabs.
tab_text{normal: rq.HudTextStyle , hover: rq.HudTextStyle , current: rq.HudTextStyle }Tab text.
check_framerq.UiPieceThe checkbox frame.
check_markrq.UiPieceThe checkmark.
hover_barrq.UiPieceThe bar over a hovered row.
trackrq.UiPieceThe slider track.
knobrq.UiPieceThe slider knob.
knob_hotrq.UiPieceThe knob while hovered or dragged.
list_textrq.HudTextStyleList row text.
list_current{r: integer, g: integer, b: integer}The color of the chosen list row.
scrollbar{r: integer, g: integer, b: integer, a: integer}A list's scroll bar.
sound{hover?: integer, click?: integer, error?: integer}Sound numbers; nil plays none.
button_style (optional)stringThe button style rq.uikit.button draws without opts.style. The hub theme's is "large". Since 2.6.0.
tabs_style (optional)stringThe tabs style rq.uikit.tabs draws without opts.style. Since 2.6.0.
styles (optional){button?: table<string, rq.UiButtonStyle >, tabs?: table<string, rq.UiTabsStyle >}Button and tabs styles by name. A name the theme in use lacks is taken from themes.hub. Since 2.6.0.
castle (optional)tableRance Castle's room row: base, frame, new (pieces) and marks (heart, run: pieces with their x, y). Since 2.6.0.
quest (optional)tableA quest row: normal, hover, box (pieces), no, name, mark (text styles), name_fit, current (a color), gap. Since 2.6.0.
rack (optional)tableFrostbuy's rack tile: w, h, outer, line, fill (colors), text, fit. Since 2.6.0.
sort (optional)tableThe sort column: back, base, normal, hover, current (pieces), text, fit, fit_w. Since 2.6.0.
scroll (optional)rq.UiScrollPiecesThe game's scroll bar. A theme with it gives rq.uikit.list that bar. Since 2.6.0.
close (optional){normal: rq.UiPiece , hover: rq.UiPiece }The close button. Since 2.6.0.
hub_page (optional)tableA page over the hub: x, y, w, h, dim, outer, line (colors), title (a text style), pad. Since 2.6.0.
options (optional)tableThe choice menu's look for rq.uikit.options: base (the menu's background), sep, panels (the text row's pieces for 1 to 3 lines, with ph, their height), text, text_fit (text styles). Since 2.7.0; comment gone in 2.13.0 (the comment is the game's window).
vault (optional)tableThe vault's item rows: rows (the backgrounds by style: vault, storage, and since 2.9.0 shop and equip), name, info, number, level_text, count (text styles), name_fit, info_fit, level_fit, level, locked, count_box, stock_box (2.9.0) (pieces), rank (the first rank badge CG), kinds (the kind marks' CGs), current (a color), buttons (the row buttons' pieces and places), gold (the gold digits), price (2.9.0: the shop's price place, cells and gap). Since 2.8.0.
item_window (optional)tableThe Quest Storage window for rq.uikit.item_window: top, middle, last, foot (pieces of CG 11335; foot closes a window of one row), w, cols, cell, tile_x, tile_y, band, close_x, close_y, x, y, bottom (where a taller window ends), title, page, empty (text styles), title_x. Since 2.32.0.
section (optional)tableThe quest panel's heading for rq.uikit.section: left, middle, right, box (pieces of CG 11014), w, h, text_x, box_x, box_y, box_right, text (the heading's gold), fit (as a button style's), body (the panel's own text style, for text in the box). Since 2.32.0.
balloon (optional)tableFrostbuy's balloon for rq.uikit.balloon: top, base, left, tail, right (pieces of CG 11110), w, h, edge, tail_x, tail_w, tail_h, pad_x, pad_y, pad_r, line_h, text. Since 2.32.0.
parchment (optional)tableTrivia's paper for rq.uikit.page's style = "parchment": paper (a piece of CG 20001), x, y, w, h, pad_x, pad_y, pad_b, close_x, close_y, text (the brown text, also the labels inside), dim, title_h. Since 2.32.0.
filters (optional)tableThe vault's filter column: back, backs (2.9.0: the column's grey by style), cats, classes, lock, equip (2.9.0) (each with lit and dim pieces), and sub (the sub-filters' panel: base, title, and by category title, cgs, names). Since 2.8.0.

Used by ​

rq.uikit, rq.uikit.copy_theme, rq.uikit.use