Example menu
This is an example menu for you to see all the available features
Last updated
This is an example menu for you to see all the available features
Last updated
#Command to open the menu directly
open_command: "menu"
#Requirements to open the menu
open_requirements:
#Type of requirement
type: "has_permission"
#Permission required for the requirement 'has_permission'
permission: "mapmenu.menu"
#Actions that will be triggered if the player cannot open this menu
deny_actions:
- "[message] &cYou do not have permission to do this action"
#Button order.
#This is used to know which button to navigate to when moving in the menu
# with A, S, D, W
button_order:
- "button1 button2"
- "button3"
#In the 'Layers' section, everything to be drawn on the map is defined
#There are various types of layers, and in the future,
# many will be added and some may be modified. Additionally,
# the buttons are specified here with their requirements to be pressed,
# deny_actions for when access is denied,
# and actions to execute when they are pressed and meet the requirements
layers:
#The backgrounds are PNG, JPG, or GIF images.
#These are drawn beneath all other layers, following the order they appear in the file.
background:
type: "background"
texture: "main/main_background.png"
animated_background:
type: "background"
texture: "cat.gif"
#frame_speed is the speed at which GIF images are played.
frame_speed: 1
title:
type: "background"
texture: "main/map_menu_title.png"
#"Position where the texture will be drawn
position: "[20, 3]"
#Button that performs actions based on requirements, among other things
button1:
type: "button"
#Location of the button texture. This should be inside /plugins/MapMenu/menus/
texture: "main/green_button.png"
position: "[2, 46]"
#texture_outline is the texture
# that visually indicates which button you are currently on
texture_outline: "main/selector.png"
#This is the location where the indicator
# should be drawn when you are on this button
position_outline: "[4, 52]"
actions:
#Requirements to use the button
requeriments:
type: "has_permission"
permission: "mapmenu.view.stats"
#pre_actions are the actions called when you are on a button, before selecting it
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: "&aStats &bTime"
position: "[20, 51]"
text2:
type: "text"
text: "&eExample of moving"
position: "[20, 71]"
#The 'chibi' type is used to draw a miniature version of your skin.
miniskin:
type: "chibi"
position: "[2, 12]"
#You can use this placeholder or provide a URL to specify the texture for the chibi.
texture: "%mapmenu_player_skinurl%"
#This type of layer is used to draw with fonts that you can download
# and place in the plugins/MapMenu/fonts folder.
displaynane:
type: "customtext"
position: "[28, 12]"
text: "%player_displayname%"
font: "Arial"
size: 10
style: 0
head_first_layer:
type: "url"
position: "[120, 120]"
#offset is used to use only a section of the texture and not the entire texture
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%"