Skip to content

rq.UiCommentOpts ​

since 2.13.0

What rq.uikit.comment takes besides the text.

Fields ​

NameTypeDescription
header (optional)stringA title over the text, in 22-pixel black (pink in "red").
sub (optional)stringRed lines under the text, 3 pixels apart from it, as the game's "cannot use" notes.
style (optional)"normal"|"red""normal" (default): the paper window with a cyan border. "red": the game's red one, as for the skills of a character who cannot use them.
x (optional)integerLeft edge, in game pixels. Default: 11 right of the mouse.
y (optional)integerTop edge, in game pixels. Default: 20 under the mouse.
game (optional)boolean@ and $ break a line too, as in the game's own texts (rq.ain strings). Default false: only \n does.
id (optional)anyThe window's id in rqmod-ctl ui (as "comment-" .. id). Default "comment".

Used by ​

rq.uikit.comment, rq.uikit.comment_size