{
  cooldown: 0.0,
  areas: [
    {
      name: "ANYWHERE",
      rect: { x: 0, y: 0, w: 100, h: 100 },
      model: "*FILLAREA*",
      activeAreaColor: "REF: clr_menuBKG",
      isEnterable: 1
    },
    {
      name: "TITLE1",
      rect: { x: 5, y:3 , w: 90, h: 10 },
      areaColor: "",
      activeAreaColor: "",
      model: "CYBER CITY",
      material: "REF: mat_menuTitle",
      isEnterable: 0
    },
    {
      name: "TITLE2",
      rect: { x: 5, y:13 , w: 90, h: 10 },
      areaColor: "",
      activeAreaColor: "",
      model: "PUNCHOUT",
      material: "0xbc1c1eff, 8, TITLE,5",
      isEnterable: 0
    },
    {
      name: "NEWGAME",
      rect: { x: 30, y: 27, w: 40, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "NEW GAME",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "SETTINGS",
      rect: { x: 30, y: 40, w: 40, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "SETTINGS",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "HELP",
      rect: { x: 30, y: 53, w: 40, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "HELP",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "QUIT",
      rect: { x: 30, y: 69, w: 40, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "QUIT",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

    {
      name: "INFO",
      rect: { x: 5, y: 85, w: 90, h: 7 },
      //areaColor: "0x0c0c0cff",
      areaColor: "0x000000ff",
      //model: "RESCUE MAJOR HAVOC AND HIS CREW FROM CYBER CITY - PLANET OF THE ROBOTS",
      model: "",
      material: "REF: mat_menuOpt3",
      isEnterable: 0
    },
    {
      name: "CREDITS",
      rect: { x: 5, y: 88, w: 30, h: 10 },
      model: "Music by Eric Matyas\nhttp://soundimage.org",
      material: "0xd5d5d57f, 2.0, SIMPLEX",
      isEnterable: 0
    },
    {
      name: "VERSION",
      rect: { x: 65, y: 88, w: 30, h: 10 },
      model: "Game by Tam Toucan\nv1.1",
      material: "0xd5d5d57f, 2.0, SIMPLEX",
      isEnterable: 0
    },
  ],
  switches: [
    {
      areas: [ "*ALL*" ],
      triggersRef: "menu_escape",
      delays: { },
      actions: { press:    [ { id: "GOTO_AREA", info: "QUIT" } ] }
    },
    // Press anything when not on menu then move to menu top
    {
      areas: [ "ANYWHERE" ],
      triggersRef: "menu_pressAny",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "NEWGAME" } ] }
    },
    // Press select then logic returns the area name
    {
      areas: [ "NEWGAME","SETTINGS","HELP","QUIT" ],
      triggersRef: "menu_pressSelect",
      delays: { },
      actions: { press:       [ { id: "LOGIC_RETURN", info: "[AREA_NAME]" } ] }
    },

    // Press up then move menu up
    {
      areas: [ "NEWGAME", "SETTINGS", "HELP", "QUIT" ],
      triggersRef: "menu_pressUP",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "[PREV_AREA]" } ] }
    },

    // Press down then move menu down
    {
      areas: [ "NEWGAME", "SETTINGS", "HELP", "QUIT" ],
      triggersRef: "menu_pressDN",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "[NEXT_AREA]" } ] }
    },

  ]
}
