Class HytaleUIEventBinding
java.lang.Object
net.blueva.arcade.api.ui.menu.hytale.HytaleUIEventBinding
- Record Components:
elementSelector- the CSS-like selector for the target element (e.g."#ConfirmButton")eventType- the Hytale UI event type name (e.g."Activating","Hovering")actionId- an action identifier sent back to the server handleractions- the list of action commands to execute when triggered
Binds a Hytale UI element to a server-side action.
When the user interacts with the element in the client UI, the server
receives an event with the specified action identifier. The event type
corresponds to Hytale's CustomUIEventBindingType values.
- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionId()actions()static HytaleUIEventBindingCreates a simple button-click binding.booleaninthashCode()toString()
-
Constructor Details
-
HytaleUIEventBinding
-
-
Method Details
-
elementSelector
-
eventType
-
actionId
-
actions
-
equals
-
hashCode
public int hashCode() -
toString
-
click
Creates a simple button-click binding.- Parameters:
selector- the element selectoractionId- the action identifieractions- the actions to execute- Returns:
- a new HytaleUIEventBinding for Activating events
-