extends GuiObject
Class fields
| Field | XML type | Value |
|---|---|---|
Name | string | GuiButton |
summary | string | A GUI button containing an Image |
Browsable | bool | false |
ExplorerOrder | string | 16 |
ExplorerImageIndex | string | 52 |
Properties
10AutoButtonColor
bool| Field | XML type | Value |
|---|---|---|
Name | string | AutoButtonColor |
summary | string | Determines whether a button changes color automatically when reacting to mouse events. |
Modal
bool| Field | XML type | Value |
|---|---|---|
Name | string | Modal |
summary | string | Allows the mouse to be free in first person mode. If a button with this property set to true is visible, the mouse is 'free' in first person mode. |
MouseButton1ClickConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1ClickConnectionCount |
MouseButton1DownConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1DownConnectionCount |
MouseButton1UpConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1UpConnectionCount |
MouseButton2ClickConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2ClickConnectionCount |
MouseButton2DownConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2DownConnectionCount |
MouseButton2UpConnectionCount
int| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2UpConnectionCount |
Selected
bool| Field | XML type | Value |
|---|---|---|
Name | string | Selected |
Style
ButtonStyle| Field | XML type | Value |
|---|---|---|
Name | string | Style |
summary | string | Determines how a button will look, including mouse event states. Uses Enum.ButtonStyle. <a href="http://wiki.roblox.com/index.php?title=API:Class/GuiButton/Style" target="_blank">More info</a> |
Functions
1SetVerb
(verb: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetVerb |
Events
6MouseButton1Click
() → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1Click |
summary | string | Fired when the mouse is over the button, and the mouse down and up events fire without the mouse leaving the button. |
MouseButton1Down
(x: int, y: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1Down |
summary | string | Fired when the mouse button is pushed down on a button. |
MouseButton1Up
(x: int, y: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton1Up |
summary | string | Fired when the mouse button is released on a button. |
MouseButton2Click
() → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2Click |
summary | string | This function currently does not work :( |
MouseButton2Down
(x: int, y: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2Down |
summary | string | This function currently does not work :( |
MouseButton2Up
(x: int, y: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | MouseButton2Up |
summary | string | This function currently does not work :( |