Class HytaleUIElement
java.lang.Object
net.blueva.arcade.api.ui.menu.hytale.HytaleUIElement
- Record Components:
selector- the element selector in the layout (e.g."#TitleLabel")property- the property to set (e.g."Text","Visible")defaultValue- the default value to set when the menu opens, ornull
Represents a named element in a Hytale
.ui layout whose value
can be set from the server side.
Element selectors follow Hytale's UI DSL: identifiers prefixed with
# target elements by ID, while other strings may target by type.
- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()property()selector()static HytaleUIElementCreates a text element with a default value.toString()static HytaleUIElementvisibility(String selector, boolean visible) Creates a visibility element.
-
Constructor Details
-
HytaleUIElement
-
-
Method Details
-
selector
-
property
-
defaultValue
-
equals
-
hashCode
public int hashCode() -
toString
-
text
Creates a text element with a default value.- Parameters:
selector- the element selectordefaultValue- the default text- Returns:
- a new HytaleUIElement for the Text property
-
visibility
Creates a visibility element.- Parameters:
selector- the element selectorvisible- whether the element should be visible by default- Returns:
- a new HytaleUIElement for the Visible property
-