PyBaseControl
Properties
Section titled “Properties”CanMove
Section titled “CanMove”Type: bool
Weather this control/gump can be moved by dragging this control
IsVisible
Section titled “IsVisible”Type: bool
IsDisposed
Section titled “IsDisposed”Type: bool
Check if this control has been disposed(delete/removed/etc)
No fields found.
No enums found.
Methods
Section titled “Methods”(childControl)
Adds a child control to this control. Works with gumps too (gump.Add(control)).
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
childControl | object | ❌ No | The 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:
| Name | Type | Optional | Description |
|---|---|---|---|
x | int | ❌ No | The new X coordinate |
Return Type: void (Does not return anything)
(y)
Sets the control’s Y position.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
y | int | ❌ No | The new Y coordinate |
Return Type: void (Does not return anything)
SetPos
Section titled “SetPos”(x, y)
Sets the control’s X and Y positions.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
x | int | ❌ No | The new X coordinate |
y | int | ❌ No | The new Y coordinate |
Return Type: void (Does not return anything)
GetWidth
Section titled “GetWidth”Return Type: int
GetHeight
Section titled “GetHeight”Return Type: int
SetWidth
Section titled “SetWidth”(width)
Sets the control’s width.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
width | int | ❌ No | The new width in pixels |
Return Type: void (Does not return anything)
SetHeight
Section titled “SetHeight”(height)
Sets the control’s height.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
height | int | ❌ No | The new height in pixels |
Return Type: void (Does not return anything)
SetRect
Section titled “SetRect”(x, y, width, height)
Sets the control’s position and size in one operation.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
x | int | ❌ No | The new X coordinate |
y | int | ❌ No | The new Y coordinate |
width | int | ❌ No | The new width in pixels |
height | int | ❌ No | The new height in pixels |
Return Type: void (Does not return anything)
CenterXInViewPort
Section titled “CenterXInViewPort”Centers a GUMP horizontally in the viewport. Only works on Gump instances. Used in python API
Return Type: void (Does not return anything)
CenterYInViewPort
Section titled “CenterYInViewPort”Centers a GUMP vertically in the viewport. Only works on Gump instances. Used in python API
Return Type: void (Does not return anything)
GetAlpha
Section titled “GetAlpha”Returns the control’s Alpha value. Used in python API
Return Type: float
SetAlpha
Section titled “SetAlpha”(alpha)
Sets the control’s Alpha value.
Used in python API
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
alpha | float | ❌ No | The 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)
Dispose
Section titled “Dispose”Close/Destroy the control
Return Type: void (Does not return anything)