Skip to content

PyBaseControl

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: void (Does not return anything)


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

Parameters:

NameTypeOptionalDescription
yint❌ NoThe new Y coordinate

Return Type: void (Does not return anything)


(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: void (Does not return anything)


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: void (Does not return anything)


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

Parameters:

NameTypeOptionalDescription
heightint❌ NoThe new height in pixels

Return Type: void (Does not return anything)


(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: void (Does not return anything)


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

Return Type: void (Does not return anything)


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

Return Type: void (Does not return anything)


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: void (Does not return anything)


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

Return Type: void (Does not return anything)


Close/Destroy the control

Return Type: void (Does not return anything)