(menu
  ; **Required** to name each menu, the top level menu is always named "main"
  (name main)
  ; **Required** This is placement of the menu list x | y | width | height
  (position 100 200 450 250)
  ; **Optional** This is body color of above menu red | blue | green | alpha
  (position-body 0 0 0 128)
  ; **Optional** This is border color of above menu red | blue | green | alpha
  (position-border 200 200 200 255)
  ; **Optional** This is the fade speed of the appearing menus, default at 12
  (fade-speed 12)
  ; **Optional** for the toplevel menu "main"
  ; 		 If there is no bitmap specified then the clear-color will be used instead
  ;		 Note that if the top level menu has a bitmap then subsequent menus will utilize that if there is none declared in the menu.
  (background menu/paintown.png)
  ; **Optional** Clear color for the background in case there is no background defined defaults to black (0,0,0)
  (clear-color 0 0 0)
  ; **Optional** The option info text placement defaults to 320 100
  ; location centered on the x and y coordinate
  (info-position 320 100)
  ; ** Optional** menu info text
  (menuinfo "Main Menu")
  ; **optional** The menu info text placement if menu info text is set defaults to 320 465
  ; location centered on the x and y coordinate
  (menuinfo-position 320 465)
  ; **Optional** to use music
  (music music/aqua.s3m)
  ; **Optional** to use a sound for menu item selection
  (select-sound menu/sounds/menu-select.wav)
  (back-sound menu/sounds/menu-back.wav)
  (ok-sound menu/sounds/menu-ok.wav)
  ; **Optional** Set default gamespeed
  (action (fixedspeed 1.0))
  ; **Optional** Font name and size (default /fonts/arial.ttf 24 24) 
  ;(font "fonts/arial.ttf" 24 24)
  (font "fonts/Neuropol.ttf" 24 24)
  ; Main options which are basically optional
  ; Each mode will have be similar to this
  (option
    (adventure
      ; ** Each option is required to have a name! >:E
      (name
        (language "english" "Adventure Mode")
        (language "spanish" "Modo Aventura"))
      ; ** Optional** This is a popup with information regarding the selected item
      ; Place text
      ; location is optional which is centered on the x and y coordinate and overwrites info-position in the main menu
      (info
        (language "english" "Play through an adventure yourself")
        (language "spanish" "Juega a través de una aventura solo")
        )))
  (option
    (adventure-cpu
      (name
        (language "english" "Adventure Mode with computer")
        (language "spanish" "El modo Aventura con la computadora"))
      (info
        (language "english" "Play through an adventure with\nthe computers help")
        (language "spanish" "Juega a través de una aventura\ncon la ayuda de la computadora")
        )))
  ; Write more menus
  ;@
  (option
    (menu
      (name "Versus Mode")
      (select-sound menu/sounds/menu-select.wav)
      (back-sound menu/sounds/menu-back.wav)
      (ok-sound menu/sounds/menu-ok.wav)
      (position 100 300 450 100)
      ; **Optional** This is body color of above menu red | blue | green | alpha
      (position-body 0 0 0 128)
      ; **Optional** This is border color of above menu red | blue | green | alpha
      (position-border 200 200 200 255)
      (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))
      (option
        (versus
          (name
            (language "english" "Player Vs. Player")
            (language "spanish" "Jugador contra Jugador"))
          (human)))
      ; cpu is default so essentially it's not needed, but is shown here for clarity
      (option
        (versus
          (name
            (language "english" "Player Vs. Computer")
            (language "spanish" "Jugador contra Computadora"))
          (cpu)))
      (info
        (language "english" "Play a 1 on 1 fight")
        (language "spanish" "Juega 1 por 1 pelea"))))
  ; a submenu can be created inline
  (option
    (change-mod
      (name
        (language "english" "Change mod")
        (language "spanish" "Cambia mod"))
      (info
        (language "english" "Switch to a different game mod")
        (language "spanish" "Cambia a differente mod"))))
  (option
    (network-host
      (name "Network - Host")
      (info "Host a game that can be\nplayed over the internet")))
  (option
    (network-join
      (name
        (language "english" "Network - Join")
        (language "spanish" "Network - Join"))
      (info
        (language "english" "Join a game over the internet")
        (language "spanish" "Join a game over the internet"))))
  (option
    (menu
      (name "Options")
      (info "Change various game options")
      (select-sound menu/sounds/menu-select.wav)
      (back-sound menu/sounds/menu-back.wav)
      (ok-sound menu/sounds/menu-ok.wav)
      (position 100 200 450 250)
      ; **Optional** This is body color of above menu red | blue | green | alpha
      (position-body 0 0 0 128)
      ; **Optional** This is border color of above menu red | blue | green | alpha
      (position-border 200 200 200 255)
      (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))
      ; User settable invincibility
      (option
        (invincible
          (name
            (language "english" "Invincibility")
            (language "spanish" "Invisibilidad"))
          (info
            (language "english" "Players will be invincible for the entire game")
            (language "spanish" "Jugadoras tienen invisibilidad durante el juego entero"))))
      ; User settable speed
      (option
        (speed
          (name
            (language "english" "Default speed")
            (language "spanish" "Default speed"))
          (info
            (language "english" "Set the relative speed of the game")
            (language "spanish" "Set the relative speed of the game"))))
      (option
        (play-mode
          (name
            (language "english" "Play mode")
            (language "spanish" "Moda de juega"))
          (info
            (language "english" "Free for all mode lets you attack other players.\nIn cooperative you cannot")
            (language "spanish" "Free for all mode lets you attack other players.\nIn cooperative you cannot"))))

      (option
        (screen-size
          (name
            (language "english" "Screen size")
            (language "spanish" "Resolucion de pantalla"))
          (info
            (language "english" "Set the size of the screen")
            (language "spanish" "Cambia el resolucion de la pantalla"))))
      ; User settable fullscreen
      (option
        (fullscreen
          (name
            (language "english" "Fullscreen")
            (language "spanish" "Pantalla completa"))
          (info
            (language "english" "Make the game windowed or fullscreen")
            (language "spanish" "Cambia juego a usar la pantalla completa"))))
      ; User settable lives
      (option
        (lives
          (name
            (language "english" "Lives")
            (language "spanish" "Vidas"))
          (info
            (language "english" "Set the starting number of\nlives in adventure mode")
            (language "spanish" "Set the starting number of\nlives in adventure mode"))))
      (option
        (npc
          (name
            (language "english" "NPC Buddies")
            (language "spanish" "NPC Buddies"))
          (info
            (language "english" "Set the number of computer\nplayers in adventure mode")
            (language "spanish" "Set the number of computer\nplayers in adventure mode"))))
      ; Adds a tabbed menu
      (option
        (tabmenu
          (name "Keyboard / Joystick")
          (info "Modify Keyboard/Joystick Input")
          (position 100 200 450 250)
          (position-body 0 0 0 128)
          (back-sound menu/sounds/menu-back.wav)
          (position-border 200 200 200 255)
          ; tab data
          (tab-body 15 15 15 120)
          (tab-border 120 120 120 120)
          (selectedtab-body 100 100 100 200)
          (selectedtab-border 200 200 200 200)
          (runningtab-body 155 155 155 255)
          (runningtab-border 255 255 255 255)
          (font-color 150 150 150)
          (selectedfont-color 0 255 255)
          (runningfont-color 255 255 0)
          (menuinfo "Press Left or Right to go between tabs")
          (runninginfo "Press ESC to return to tabs")
          (menuinfo-position 320 465)
          ; it can also do animation
          (anim
            (location 0)
            (image 0 "menu/paintown.png")
            (velocity -.2 0)
            (frame
              (image 0)
              (time -1)))
          (menu
            (name "Player1 Keys")
            (select-sound menu/sounds/menu-select.wav)
            (back-sound menu/sounds/menu-back.wav)
            (ok-sound menu/sounds/menu-ok.wav)
            (info "Change the keys for player 1")
            (position 120 200 400 250)
            (position-body 0 0 0 192)
            (position-border 200 200 200 255)
            (menuinfo "Press ESC to return to Tab Menu")
            (menuinfo-position 320 465)
            (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))
            ; Keys are for reconfiguring, not for setting menu keys :P
            ; params: 1st = key, 2nd = Menu text
            (option (key (name "UP Button") (player 0) (type up)))
            (option (key (name "Down Button") (player 0) (type down)))
            (option (key (name "Left Button") (player 0) (type left)))
            (option (key (name "Right Button") (player 0) (type right)))
            (option (key (name "Jump Button") (player 0) (type jump)))
            (option (key (name "Attack1 Button") (player 0) (type attack1)))	
            (option (key (name "Attack2 Button") (player 0) (type attack2)))
            (option (key (name "Attack3 Button") (player 0) (type attack3))))	
          (menu
            (name "Player2 Keys")
            (select-sound menu/sounds/menu-select.wav)
            (back-sound menu/sounds/menu-back.wav)
            (ok-sound menu/sounds/menu-ok.wav)
            (info "Change the keys for player 2")
            (position 120 200 400 250)
            (position-body 0 0 0 192)
            (position-border 200 200 200 255)
            (menuinfo "Press ESC to return to Tab Menu")
            (menuinfo-position 320 465)
            (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))
            ; Keys are for reconfiguring, not for setting menu keys :P
            ; params: 1st = key, 2nd = Menu text
            (option (key (name "UP Button") (player 1) (type up)))
            (option (key (name "Down Button") (player 1) (type down)))
            (option (key (name "Left Button") (player 1) (type left)))
            (option (key (name "Right Button") (player 1) (type right)))
            (option (key (name "Jump Button") (player 1) (type jump)))
            (option (key (name "Attack1 Button") (player 1) (type attack1)))	
            (option (key (name "Attack2 Button") (player 1) (type attack2)))
            (option (key (name "Attack3 Button") (player 1) (type attack3))))
          (menu
            (name "Player1 Joystick")
            (select-sound menu/sounds/menu-select.wav)
            (back-sound menu/sounds/menu-back.wav)
            (ok-sound menu/sounds/menu-ok.wav)
            (info "Change the joystick for player 1")
            (position 120 200 400 250)
            (position-body 0 0 0 192)
            (position-border 200 200 200 255)
            (menuinfo "Press ESC to return to Tab Menu")
            (menuinfo-position 320 465)
            (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))

            ; Keys are for reconfiguring, not for setting menu keys :P
            ; params: 1st = key, 2nd = Menu text
            (option (joystick (name "UP Button") (player 0) (type up)))
            (option (joystick (name "Down Button") (player 0) (type down)))
            (option (joystick (name "Left Button") (player 0) (type left)))
            (option (joystick (name "Right Button") (player 0) (type right)))
            (option (joystick (name "Jump Button") (player 0) (type jump)))
            (option (joystick (name "Attack1 Button") (player 0) (type attack1)))	
            (option (joystick (name "Attack2 Button") (player 0) (type attack2)))
            (option (joystick (name "Attack3 Button") (player 0) (type attack3))))))
      (option 
        (menu 
          (name "Adjust Font") 
          (select-sound menu/sounds/menu-select.wav)
          (back-sound menu/sounds/menu-back.wav)
          (ok-sound menu/sounds/menu-ok.wav)
          (info "Change the menu fonts")
          (position 20 200 600 80)
          (position-body 0 0 0 192) 
          (position-border 200 200 200 255)
          (anim (location 0) (image 0 "menu/paintown.png") (velocity -.2 0) (frame (image 0) (time -1)))
          ; To adjust the font options
          (option (font-select (adjust "name")))
          (option (font-select (adjust "width")))
          (option (font-select (adjust "height")))))))
  ; And submenu can also be created via another file
  ; (option (menu menu/options.txt))
  (option
    (credits
      (name
        (language "english" Credits)
        (language "spanish" Creditos))
      (info
        (language "english" "See who did what on Paintown")
        (language "spanish" "Ve quien lo hacieron que en Paintown"))
      ; set music
      (music music/kilimanz.mod)
      ; Optional else you'll have a black background
      (background menu/paintown.png)
      ; Optional to set colors of fonts
      ; This is the first word
      (titlecolor 0 255 255)
      ; This is the rest of the text
      (color 255 255 255)
      ; This adds additional credits to the static ones included with the game
      (additional "Additional thanks")
      (additional "Paintown logo by Mark Oates")
      (additional "Elecbyte")
      (additional "Senile Team")))
  ; Added a test menu, that gets ommited
  ; (option (menu (name Test)(info Test)(position 120 200 400 130)(position-body 0 0 0 192)(position-border 200 200 200 255)))
  
  ; This is a M.U.G.E.N. Menu currently in testing
  (option 
    (mugen 
  	(name "M.U.G.E.N. mode")
        ; This is optional gives you more flexibility otherwise it is pulled from mugen.cfg
  	; (motif "data/kfm/system.def")
    ; (motif "data/mt3/system.def")
  	(motif "data/system.def")
  	(info "M.U.G.E.N. Menu")))

  (option
    (quit
      (name
        (language "english" "Quit")
        (language "spanish" "Salir"))
      (info
        (language "english" "Exit the game")
        (language "spanish" "Terminar el juego"))))
  ; Two Example animations for use in menus
  ; Animations can be used in options as well but they require to be name "option-anim" instead of "anim", they will be updated and ran only when the option is selected
  ; to get a better understanding of the useage of the animation, look at menu_animation.cpp about info
  ;
  ; scroll main menu background in foreground with alpha
  (anim
    (location 0)
    (image 0 "menu/paintown.png")
    (velocity -.2 0)
    (frame
      (image 0)
      (time -1)))
  ;@
  (anim (location 1) (image 0 "menu/paintown.png") (window 0 0 0 -300) (velocity -.5 0) (frame (image 0) (alpha 25) (time -1)))
  ;
  ; this renders images and fades in and out within the main menu box
  ;@
  (anim
    (id 0)
    (location 0)
    (basedir "menu/bgs/seizure-bg/")
    (velocity -1.5 -1.5)
    (image 0 "00200000.png")
    (image 1 "00200001.png")
    (image 2 "00200002.png")
    (image 3 "00200003.png")
    (image 4 "00200004.png")
    (image 5 "00200005.png")
    (image 6 "00200006.png")
    (image 7 "00200007.png")
    (image 8 "00200008.png")
    (image 9 "00200009.png")
    (image 10 "00200010.png")
    (image 11 "00200011.png")
    (image 12 "00200012.png")
    (image 13 "00200013.png")
    (axis 20 165)
    (reset 1)
    (window 105 210 -95 -40)
    (frame (image 0) (alpha 0) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 1) (alpha 15) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 2) (alpha 30) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 3) (alpha 45) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 4) (alpha 60) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 5) (alpha 75) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 6) (alpha 90) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 7) (alpha 105) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 8) (alpha 120) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 9) (alpha 135) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 10) (alpha 150) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 11) (alpha 175) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 12) (alpha 190) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 13) (alpha 200) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 0) (alpha 190) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 1) (alpha 175) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 2) (alpha 150) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 3) (alpha 135) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 4) (alpha 120) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 5) (alpha 105) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 6) (alpha 90) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 7) (alpha 75) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 8) (alpha 60) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 9) (alpha 45) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 10) (alpha 30) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 11) (alpha 15) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 12) (alpha 5) (offset 0 0) (hflip 0) (vflip 0) (time 5))
    (frame (image 13) (alpha 0) (offset 0 0) (hflip 0) (vflip 0) (time 5)))
  )
