Skip to content

rq.AgentOpts ​

How rq.agent.control finds a control: a game button, or a rectangle a mod draws.

Fields ​

NameTypeDescription
label (optional)stringThe text rqmod-ctl ui shows for the control.
button (optional)integerThe game's T_Button id. Leave it out for a HUD rectangle and give x, y, w, h.
hoverOnly (optional)booleanThe control exists only while the cursor is already on its parent.
x (optional)integerLeft edge of a HUD rectangle, in game pixels.
y (optional)integerTop edge of a HUD rectangle, in game pixels.
w (optional)integerWidth of a HUD rectangle, in game pixels.
h (optional)integerHeight of a HUD rectangle, in game pixels.

Used by ​

rq.agent.control