- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
3. Working with a SimpleGui
        LitleProgrammer edited this page May 12, 2024 
        ·
        1 revision
      
    Creating a gui is easy.
- You need to create all your components, as you can see here: creating components
 - Create a new SimpleGui
 
SimpleGui gui = new SimpleGui("Some title") - Add a text as content
 
SimpleGui gui = new SimpleGui("Some title")
                .addContent(text)- Add up to 3 buttons
 
SimpleGui gui = new SimpleGui("Some title")
                .addButton(button)- Put everything together and it can look like this
 
SimpleGui gui = new SimpleGui("Some title")
                .addContent(text)
                .addButton(button)
                .addButton(button2)
                .addButton(button3);- The last step is to open the the gui to a player
 
gui.open(player);description: returns, weather the gui is open or not
parameters: none
returns: boolean
description: gets a component by it's UUID
parameters: UUID uuid -> the components UUID
returns: Component component
If you have any questions regarding this, feel free to join my discord server https://discord.gg/YjmAFKTUHK