Skip to content

rq.UiItemWindowOpts ​

since 2.32.0

Options for rq.uikit.item_window.

Fields ​

NameTypeDescription
id (optional)string|integerKeeps its state (the page shown) and names its controls. Default "itemwindow".
title (optional)stringText in the grey band at the top left, in the game's font; cut where it would reach the page arrows.
rows (optional)integerRows of five tiles, 1 to 5. Default 3, or 4 with more than 15 items.
x (optional)integerThe left edge, in game pixels. Default 473, the game's.
y (optional)integerThe top edge, in game pixels. Default 165, the game's, or higher for a window that would go past y 607 (the 3D view's bottom).
empty (optional)stringText in the window's middle when the list is empty.
cell (optional)fun(index: integer, x: integer, y: integer, entry: any)Called after each tile is drawn, with the item's place in the list, the tile's top left (100 × 100) and the list's value, to draw marks on it.
capacity (optional)integerHow many cells hold items, 0 or more (since 2.47.0). A tile past it is darkened, cannot be clicked and has the vault's lock mark (CG 11419) in its middle, and so has each empty cell past it on the page shown. Default: no limit.

Used by ​

rq.uikit.item_window