{
  cooldown: 0.0,
  areas: [
    {
      name: "ANYWHERE",
      rect: { x: 0, y: 0, w: 100, h: 100 },
      model: "*FILLAREA*",
      activeAreaColor: "REF: clr_menuBKG",
      isEnterable: 1
    },
    {
      name: "TITLE",
      rect: { x: 5, y: 10, w: 90, h: 10 },
      areaColor: "",
      activeAreaColor: "",
      model: "SOUND",
      material: "REF: mat_menuTitle",
      isEnterable: 0
    },
    {
      name: "MASTER",
      rect: { x: 20, y: 22, w: 60, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "MASTER [MASTER_VOL]",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "EFFECT",
      rect: { x: 20, y: 35, w: 60, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "EFFECT [EFFECT_VOL]",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "MUSIC",
      rect: { x: 20, y: 48, w: 60, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "MUSIC  [MUSIC_VOL]",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "SPEECH",
      rect: { x: 20, y: 61, w: 60, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "SPEECH  [SPEECH_VOL]",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "BACK",
      rect: { x: 30, y: 77, w: 40, h: 10 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "BACK",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

    {
      name: "MASTER_DEC",
      rect: { x: 8, y: 23, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "-",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "MASTER_INC",
      rect: { x: 84, y: 23, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "+",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

    {
      name: "EFFECT_DEC",
      rect: { x: 8, y: 36, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "-",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "EFFECT_INC",
      rect: { x: 84, y: 36, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "+",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

    {
      name: "MUSIC_DEC",
      rect: { x: 8, y: 49, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "-",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "MUSIC_INC",
      rect: { x: 84, y: 49, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "+",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

    {
      name: "SPEECH_DEC",
      rect: { x: 8, y: 62, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "-",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },
    {
      name: "SPEECH_INC",
      rect: { x: 84, y: 62, w: 8, h: 8 },
      activeAreaColor: "REF: clr_menuATV",
      areaColor: "REF: clr_menuCLR",
      model: "+",
      material: "REF: mat_menuOpt5",
      isEnterable: 1
    },

  ],
  switches: [
    // Press select then logic returns the area name
    {
      areas: [ "*ALL*" ],
      triggersRef: "menu_escape",
      delays: { },
      actions: { press:    [ { id: "LOGIC_RETURN", info: "BACK" } ] }
    },
    // Press anything when not on menu then move to menu top
    {
      areas: [ "ANYWHERE" ],
      triggersRef: "menu_pressAny",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "MASTER" } ] }
    },
    // Press select then logic returns the area name
    {
      areas: [ "BACK" ],
      triggersRef: "menu_pressSelect",
      delays: { },
      actions: { press:       [ { id: "LOGIC_RETURN", info: "[AREA_NAME]" } ] }
    },

    // Press up then move menu up
    {
      areas: [ "MASTER", "EFFECT", "MUSIC", "SPEECH", "BACK" ],
      triggersRef: "menu_pressUP",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "[PREV_AREA]" } ] }
    },

    // Press down then move menu down
    {
      areas: [ "MASTER", "EFFECT", "MUSIC", "SPEECH", "BACK" ],
      triggersRef: "menu_pressDN",
      delays: { },
      actions: { press:       [ { id: "GOTO_AREA", info: "[NEXT_AREA]" } ] }
    },

    // Left DEC volume
    {
      areas: [ "MASTER", "EFFECT", "MUSIC", "SPEECH" ],
      triggersRef: "menu_pressLF",
      delays: { },
      actions: { press:       [ { id: "SOUND_DEC", info: "[AREA_NAME]" } ] }
    },

    // Right INC volume
    {
      areas: [ "MASTER", "EFFECT", "MUSIC", "SPEECH" ],
      triggersRef: "menu_pressRT",
      delays: { },
      actions: { press:       [ { id: "SOUND_INC", info: "[AREA_NAME]" } ] }
    },

    // DEC buttons
    {
      areas: [ "MASTER_DEC", "EFFECT_DEC", "MUSIC_DEC", "SPEECH_DEC" ],
      triggersRef: "menu_pressSelect",
      delays: { },
      actions: { press:       [ { id: "SOUND_DEC", info: "[AREA_NAME]" } ] }
    },
    // INC buttons
    {
      areas: [ "MASTER_INC", "EFFECT_INC", "MUSIC_INC", "SPEECH_INC" ],
      triggersRef: "menu_pressSelect",
      delays: { },
      actions: { press:       [ { id: "SOUND_INC", info: "[AREA_NAME]" } ] }
    },

  ]
}
