Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 56 language explanations...
NameButton GUI Element
DescriptionButtons are clickable GUI elements that can run code when clicked; they have a UI type of "button".
See also Language:Toggle Button GUI Element, for buttons made specifically to control a single boolean value.


ui_type: button
# A label for the button, optional.
label: <text>
# An icon for the button, optional.
icon: <GUI Icon>
# The icon's size (width and height), optional.
icon_size: <number>
# Horizontal text alignment for the button's label, optional.
horizontal_text_alignment: LEFT/CENTER/RIGHT
# Code to run when the button is pressed, optional.
on_click:
- <script>
GroupGUI System
Sourcehttps://github.com/DenizenScript/Clientizen/blob/master/src/main/java/com/denizenscript/clientizen/scripts/containers/gui/elements/ButtonElement.java#L26