> For the complete documentation index, see [llms.txt](https://nekoplugins.gitbook.io/mapmenu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nekoplugins.gitbook.io/mapmenu/example-menu.md).

# Example menu

This is an example menu for you to see all the available features

<figure><img src="https://proxy.spigotmc.org/d48cf2c121b0cb65e43d61bd3ace2b1ba06bea4b?url=https%3A%2F%2Fi.postimg.cc%2Fjjynqpgg%2Fezgif-com-gif-maker-9.gif" alt=""><figcaption><p>MainMenu example</p></figcaption></figure>

<pre class="language-yaml"><code class="lang-yaml"><strong>#Command to open the menu directly
</strong>open_command: "menu"
<strong>#Requirements to open the menu
</strong>open_requirements:
<strong>  #Type of requirement
</strong>  type: "has_permission"
<strong>  #Permission required for the requirement 'has_permission'
</strong>  permission: "mapmenu.menu"
<strong>  #Actions that will be triggered if the player cannot open this menu
</strong>  deny_actions:
    - "[message] &#x26;cYou do not have permission to do this action"

<strong>#Button order. 
</strong><strong>#This is used to know which button to navigate to when moving in the menu
</strong><strong># with A, S, D, W
</strong>button_order:
  - "button1 button2"
  - "button3"
<strong>#In the 'Layers' section, everything to be drawn on the map is defined
</strong><strong>#There are various types of layers, and in the future,
</strong><strong># many will be added and some may be modified. Additionally,
</strong><strong># the buttons are specified here with their requirements to be pressed,
</strong><strong># deny_actions for when access is denied,
</strong><strong># and actions to execute when they are pressed and meet the requirements
</strong>layers:
<strong>#The backgrounds are PNG, JPG, or GIF images.
</strong><strong>#These are drawn beneath all other layers, following the order they appear in the file.
</strong>  background:
    type: "background"
    texture: "main/main_background.png"
  
  animated_background:
    type: "background"
    texture: "cat.gif"
<strong>    #frame_speed is the speed at which GIF images are played.
</strong>    frame_speed: 1
    
  title:
    type: "background"
    texture: "main/map_menu_title.png"
<strong>    #"Position where the texture will be drawn
</strong>    position: "[20, 3]"
    
<strong>  #Button that performs actions based on requirements, among other things
</strong>  button1:
    type: "button"
<strong>    #Location of the button texture. This should be inside /plugins/MapMenu/menus/
</strong>    texture: "main/green_button.png"
    position: "[2, 46]"
<strong>    #texture_outline is the texture
</strong><strong>    # that visually indicates which button you are currently on
</strong>    texture_outline: "main/selector.png"
<strong>    #This is the location where the indicator
</strong><strong>    # should be drawn when you are on this button
</strong>    position_outline: "[4, 52]"
    actions:
<strong>      #Requirements to use the button
</strong>      requeriments:
        type: "has_permission"
        permission: "mapmenu.view.stats"
<strong>      #pre_actions are the actions called when you are on a button, before selecting it
</strong>      pre_actions:
        - "[subtitle] Press the space key to view your statistics"
      actions:
        - "[open_menu] stats"
    
  button2:
    type: "button"
    texture: "main/blue_button.png"
    position: "[65, 46]"
    texture_outline: "main/selector.png"
    position_outline: "[67, 52]"
    actions:
      actions:
        - "[open_menu] time_menu"
    
  button3:
    type: "button"
    texture: "main/yellow_button.png"
    position: "[2, 66]"
    texture_outline: "main/selector.png"
    position_outline: "[4, 72]"
    actions:
      actions:
        - "[open_menu] example"
  text1:
    type: "text"
    text: "&#x26;aStats          &#x26;bTime"
    position: "[20, 51]"
    
  text2:
    type: "text"
    text: "&#x26;eExample of moving"
    position: "[20, 71]"
  
<strong>  #The 'chibi' type is used to draw a miniature version of your skin.
</strong>  miniskin:
    type: "chibi"
    position: "[2, 12]"
<strong>    #You can use this placeholder or provide a URL to specify the texture for the chibi.
</strong>    texture: "%mapmenu_player_skinurl%"
  
<strong>  #This type of layer is used to draw with fonts that you can download
</strong><strong>  # and place in the plugins/MapMenu/fonts folder.
</strong>  displaynane:
    type: "customtext"
    position: "[28, 12]"
    text: "%player_displayname%"
    font: "Arial"
    size: 10
    style: 0
  
  head_first_layer:
    type: "url"
    position: "[120, 120]"
<strong>    #offset is used to use only a section of the texture and not the entire texture
</strong>    offset: [8, 8, 8, 8]
    texture: "%mapmenu_player_skinurl%"
  
  head_second_layer:
    type: "url"
    position: "[120, 120]"
    offset: [40, 8, 8, 8]
    texture: "%mapmenu_player_skinurl%"
    
</code></pre>
