Pintux Support
  • Welcome
  • BedrockGUI
    • Download & Installation
    • Commands & Permissions
    • Your First Menu
      • Simple
      • Modal
      • Custom
    • API
Powered by GitBook
On this page
  1. BedrockGUI
  2. Your First Menu

Modal

PreviousSimpleNextCustom

Last updated 4 months ago

Modal Menu: A single screen with a title, content panel / description, and only 2 buttons.

menu:
  test_modal:
    type: MODAL
    server: Lobby
    title: "Modal test $1"
    description: "Something here to write"
    buttons:
      bottone_1:
        text: "Your_name » %player_name%"
        onClick: "command say hi $1"
      bottone_2:
        text: "Other » thing"
        onClick: "command say hello $1"

How it works:

  1. You place a “menu” called test_modal in your config.

  2. It’s marked as type: MODAL, so it’s a basic single-page menu with only 2 buttons.

  3. Each button can have:

    • text

  4. Descriptionis what will be shown on the main content panel

  5. Permission custom permission for this menu to be opened

  6. (Proxy Only) server define the server you want this menu to work on

onClick (the action to run when pressed) - see.

Actions