Skip to content

rq.UiButtonStyle ​

since 2.6.0

A button style of the hub theme: two states of a grey button and its text.

Fields ​

NameTypeDescription
normalrq.UiPieceThe button.
hoverrq.UiPieceThe button under the mouse.
wintegerIts width, in pixels, when opts.w is not given.
hintegerIts height, in pixels.
textrq.HudTextStyleThe text, usually with font = "game".
fit (optional)number[]{max size, min size, max spacing, min spacing}: as the game's FitText2, a long text gets smaller, 2 pixels at a time, and tighter until it fits.
pad (optional)integerPixels kept free at each side of the text. Default 4.
hover_dy (optional)integerThe text moves down this much under the mouse, as on the footer's buttons.
cover (optional)booleanThe pulsing cover over it under the mouse, as on rect buttons.

Used by ​

rq.UiTheme