#(pesce1234) GUI

12 messages · Page 1 of 1 (latest)

vivid magnet
#

i need an example of a menu that have a button on it

twin timberBOT
#

(pesce1234) GUI

twin timberBOT
#

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.

small wharf
#

!clientl gui script containers

radiant tigerBOT
# small wharf !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>

Group

Script Container System

small wharf
#

!clientl button

radiant tigerBOT
small wharf
#

!clientl Button GUI Element

radiant tigerBOT
# small wharf !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>

Group

GUI System

small wharf
# radiant tiger

^ 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: