# This script creates a GUI with three sections: END, STR, and MAG.
The sections are made of green, red, and blue glass panes, respectively.
The GUI pops up whenever the command /stats is used.
def create_gui():
# Create the three sections.
end_section = ui.Pane(color="green")
str_section = ui.Pane(color="red")
mag_section = ui.Pane(color="blue")
# Add the sections to the GUI.
gui = ui.Window("GUI")
gui.add(end_section)
gui.add(str_section)
gui.add(mag_section)
def onstats():
gui.show()
# Register the command /stats to show the GUI.
register-command "stats", onstats
if name == "main":
create_gui()
#I put these to describe
Posted by: tokbo from the skUnity Discord. View the thread on skUnity Discord here