PyNiceButton
Properties
Section titled “Properties”ButtonParameter
Section titled “ButtonParameter”Type: int
IsSelectable
Section titled “IsSelectable”Type: bool
IsSelected
Section titled “IsSelected”Type: bool
DisplayBorder
Section titled “DisplayBorder”Type: bool
AlwaysShowBackground
Section titled “AlwaysShowBackground”Type: bool
Type: string
TextHue
Section titled “TextHue”Type: ushort
BackgroundHue
Section titled “BackgroundHue”Type: ushort
No fields found.
No enums found.
Methods
Section titled “Methods”SetText
Section titled “SetText”(text)
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
text | string | ❌ No |
Return Type: void (Does not return anything)
SetBackgroundHue
Section titled “SetBackgroundHue”(hue)
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
hue | ushort | ❌ No |
Return Type: void (Does not return anything)
SetBackgroundColor
Section titled “SetBackgroundColor”(r, g, b, a)
Sets the background color of the button. Pass null to clear.
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
r | int? | ❌ No | |
g | int? | ❌ No | |
b | int? | ❌ No | |
a | int? | ✅ Yes |
Return Type: void (Does not return anything)
ClearBackgroundColor
Section titled “ClearBackgroundColor”Clears the background color of the button.
Return Type: void (Does not return anything)