TrMenu
PurchaseGithubLicense
English
English
  • Home
  • Start
    • Install
    • Setup
  • Migrate
  • MENU
    • Structure
      • Title
      • Layout
      • Options
      • Bindings
      • Events
      • Buttons
      • Built-in Scripts
      • Tasks
    • Icons
      • Update
      • Refresh
      • Display
        • Material
        • Name
        • Lore
        • Amount
        • Glow
        • Flags
        • NBT
      • Actions
      • Priority
      • Condition
      • Inherit
  • ACTIONS
    • Types
      • Command (as Player)
      • Command (as OP)
      • Command (as CONSOLE)
      • Player's chat
      • Message
      • Tellraw
      • ActionBar
      • Title/SubTitle
      • Sound
      • Bungee Server
      • JavaScript
      • Input Catcher
        • Re-Enter
      • Useful
        • Delay
        • Break
      • Items
        • Take-Items
        • Give-Item
        • Enchant-Item
        • Repair-Item
      • Economy
        • Give-Money
        • Take-Money
        • Set-Money
        • Give-Points
        • Take-Points
        • Set-Points
      • Menu
        • Close
        • Close (Silent)
        • Open
        • Page
        • Set-Args
        • Set-Title
        • Refresh
      • Datas
        • Set-Meta
        • Rem-Meta
        • Set-Data
        • Rem-Data
    • Options
      • Delay
      • Condition
      • Chance
      • All Players
    • Action
  • SCRIPT
    • Expressions
      • stringEquals
      • stringEqualsIgnoreCase
      • isNumber
      • isOperator
      • isPlayerOperator
      • hasPermission
      • hasLevel
      • hasMoney
      • hasPoints
      • hasItem
    • Scripts
  • FUNCTIONS
    • Arguments
    • Item Identifiers
    • Script Placeholder
    • Register Commands
    • Shortcuts
    • Commands
  • HOOK
    • PlaceholderAPI
    • Cronus
    • Vault
    • PlayerPoints
    • HeadDatabase
    • Oraxen
    • SkinsRestorer
  • API
    • TrMenuAPI
    • Events
      • MenuOpenEvent
      • MenuCloseEvent
      • MenuClickEvent
    • MenuFactory
Powered by GitBook
On this page
  • Example
  • Multiples pages
  • Note

Was this helpful?

  1. MENU
  2. Structure

Layout

The menu layout is a major feature of TrMenu which allows you to quicly design menus easily (it looks better with items with a single character).

Example

Layout:
  - '########`Close`'
  - '         '
  - '         '
  - '         '
  - '########`Next`'

PlayerInventory:
  - '         '
  - '         '
  - '         '
  - '         '
  • The characters represent the buttons' identifiers.

  • You can also use buttons with multiple characters if you surround them by ````````

  • This defines the size of the menu at the same time

  • The PlayerInventory feature, allows you to have 4 rows more in your menu by using the player's inventory!

Multiples pages

Layout:
  - - '########`Close`'
    - '         '
    - '         '
    - '         '
    - '########`Next`'

  - - '########`Close`'
    - '         '
    - ' *       '
    - '         '
    - '`Pre`########'

PlayerInventory:
  - - '         '
    - '  | `Close` `Next`  '
    - '         '
    - '         '

  - - '         '
    - '  `Pre` `Close` |  '
    - '         '
    - '         '
  • You can also have multiples Shapes (multiples pages) which you can then change with the set-shape action

  • And the PlayerInventory works alongside multiples shapes too!

Note

  • If a Layout doesn't have a corresponding PlayerInventory layout, then the player's inventory won't be used on this page

  • The player's items will still be shown and hidden if there's a button in the same slot.

    • You can also use this feature with the Hide-Player-Inv option (see in on the Options wiki page).

PreviousTitleNextOptions

Last updated 4 years ago

Was this helpful?