Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
A tablet button. In toolbar mode (Developer > UI > Tablet Becomes Toolbar), the tablet button is displayed on the toolbar.Create a new button using TabletProxy#addButton.
Properties
| Name | Type | Summary |
|---|---|---|
| uuid | Uuid |
The ID of the button. Read-only. |
| properties | TabletButtonProxy.ButtonProperties |
The current values of the button's properties. Only properties that have been set during button creation or subsequently edited are returned. Read-only. |
| Constructor |
|---|
new TabletButtonProxy( )
|
Methods
| Name | Return Value | Summary |
|---|---|---|
editProperties
|
None |
Changes the values of the button's properties. |
getProperties
|
TabletButtonProxy.ButtonProperties |
Gets the current values of the button's properties. Only properties that have been set during button creation or subsequently edited are returned. |
Signals
| Name | Summary |
|---|---|
clicked
|
Triggered when the button is clicked. |
propertiesChanged
|
Triggered when a button's properties are changed. |
Type Definitions
|
ButtonProperties Type: object |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Properties of a tablet button. Properties
|
Method Details
| editProperties( properties ) | ||||||
|---|---|---|---|---|---|---|
|
Changes the values of the button's properties. Parameters
ExampleSet a button's hover text after a delay.
|
|
getProperties( ) → {TabletButtonProxy.ButtonProperties}
Returns: The button properties. |
|---|
|
Gets the current values of the button's properties. Only properties that have been set during button creation or subsequently edited are returned. ExampleReport a test button's properties.
|
Signal Details
|
clicked(
)
Returns: Signal |
|---|
|
Triggered when the button is clicked. ExampleReport a menu button click.
|
|
propertiesChanged(
)
Returns: Signal |
|---|
|
Triggered when a button's properties are changed. |