Skip to content

ApiUiBaseControl

Type: bool

Weather this control/gump can be moved by dragging this control

Type: bool

Type: bool

Check if this control has been disposed(delete/removed/etc)

No fields found.

No enums found.

(childControl) Adds a child control to this control. Works with gumps too (gump.Add(control)). Used in python API

Parameters:

NameTypeOptionalDescription
childControlobject❌ NoThe control to add as a child

Return Type: void (Does not return anything)


Returns the control’s X position. Used in python API

Return Type: int


Returns the control’s Y position. Used in python API

Return Type: int


(x) Sets the control’s X position. Used in python API

Parameters:

NameTypeOptionalDescription
xint❌ NoThe new X coordinate

Return Type: ApiUiBaseControl


(y) Sets the control’s Y position. Used in python API

Parameters:

NameTypeOptionalDescription
yint❌ NoThe new Y coordinate

Return Type: ApiUiBaseControl


(x, y) Sets the control’s X and Y positions. Used in python API

Parameters:

NameTypeOptionalDescription
xint❌ NoThe new X coordinate
yint❌ NoThe new Y coordinate

Return Type: ApiUiBaseControl


Return Type: int


Return Type: int


(width) Sets the control’s width. Used in python API

Parameters:

NameTypeOptionalDescription
widthint❌ NoThe new width in pixels

Return Type: ApiUiBaseControl


(height) Sets the control’s height. Used in python API

Parameters:

NameTypeOptionalDescription
heightint❌ NoThe new height in pixels

Return Type: ApiUiBaseControl


(x, y, width, height) Sets the control’s position and size in one operation. Used in python API

Parameters:

NameTypeOptionalDescription
xint❌ NoThe new X coordinate
yint❌ NoThe new Y coordinate
widthint❌ NoThe new width in pixels
heightint❌ NoThe new height in pixels

Return Type: ApiUiBaseControl


Centers a GUMP horizontally in the viewport. Only works on Gump instances. Used in python API

Return Type: ApiUiBaseControl


Centers a GUMP vertically in the viewport. Only works on Gump instances. Used in python API

Return Type: ApiUiBaseControl


Returns the control’s Alpha value. Used in python API

Return Type: float


(alpha) Sets the control’s Alpha value. Used in python API

Parameters:

NameTypeOptionalDescription
alphafloat❌ NoThe new Alpha value

Return Type: ApiUiBaseControl


(text) Sets a plain text tooltip that is shown when hovering this control. Automatically enables mouse input so the tooltip can be triggered by hovering. Used in python API

Parameters:

NameTypeOptionalDescription
textstring❌ NoThe tooltip text to display. Pass an empty string to clear the tooltip.

Return Type: ApiUiBaseControl


(serial) Sets the tooltip of this control to display the properties of an item/entity, as if hovering that item. Automatically enables mouse input so the tooltip can be triggered by hovering. Used in python API

Parameters:

NameTypeOptionalDescription
serialuint❌ NoThe serial of the item/entity whose tooltip should be shown.

Return Type: ApiUiBaseControl


(enabled) Sets whether this control accepts mouse input. Mouse input must be enabled for hover-based features such as tooltips to work. Used in python API

Parameters:

NameTypeOptionalDescription
enabledbool❌ NoTrue to accept mouse input, false to ignore it.

Return Type: ApiUiBaseControl


Clears the tooltip from this control. Used in python API

Return Type: ApiUiBaseControl


Clears all child controls from this control. Used in python API

Return Type: ApiUiBaseControl


Close/Destroy the control

Return Type: void (Does not return anything)