#(pesce1234) GUI
12 messages · Page 1 of 1 (latest)
(pesce1234) GUI
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!clientl gui script containers
GUI script containers represent a UI element (such as a button, scroll panel, etc.).
They contain a !language GUI Element, and can be opened using !command Gui.
# An example of a basic GUI script container, with a plain panel as its element.
my_gui:
type: gui
ui_type: plain_panel
width: 200
height: 200
content: <GUI Element>
Script Container System
!clientl button
!clientl Button GUI Element
Buttons 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>
GUI System
^ A GUI script has any GUI element in it, and some elements can contain other elements
In this case you'd want a panel element (like in the example/a different type of panel, can look at the meta docs), that has a button element as it's content: