{
  //"enabled": false,
  //"startMode": "large",
  //"startMode": "medium",
  //"startMode": "{{battletype=regular?medium|{{battletype=rated_sandbox?short|medium2}}}}",
  //"altMode": "{{battletype=regular?large|{{battletype=clan?medium|short}}}}",
  "def": {
    "c1": "0x13C313",
    "c2": "0xFF0F0F"
  },
  "large": {
    //"enabled": false,
    //"fixedPosition": true,
    "removeSquadIcon": true,
    "standardFields": [ "nick", "vehicle", "badge", "frags" ],
    "vehicleIconOffsetXLeft": -15,
    "vehicleIconOffsetXRight": -15,
    "vehicleLevelOffsetXLeft": -15,
    "vehicleLevelOffsetXRight": -15,
    //"fragsOffsetXLeft": 0,
    //"fragsOffsetXRight": 0,
    //"rankBadgeOffsetXLeft": -5,
    //"rankBadgeOffsetXRight": -5,
    //"rankBadgeWidth": 20,
    //"nickOffsetXLeft": 0,
    //"nickOffsetXRight": 0,
    //"vehicleOffsetXLeft": 0,
    //"vehicleOffsetXRight": 0,
    //"vehicleLevelAlpha": 0,
    "nickFormatLeft": "        {{r_size=2?|{{r_size=4?   |    }}}}<img src='cfg://sirmax/img/icons/{{comment}}.png'>{{name%.18s~..}}<font alpha='#A0'>{{clan}}</font>",
    "nickFormatRight": "{{name%.18s~..}}<font alpha='#A0'>{{clan}}</font><img src='cfg://sirmax/img/icons/{{comment}}.png'>{{r_size=2?|{{r_size=4?   |    }}}}       &nbsp;",
    "vehicleFormatLeft": "{{hp|---}} / {{hp-max}}",
    "vehicleFormatRight": "{{hp|---}} / {{hp-max}}",
    //"vehicleFormatLeft": "<font color='{{c:winrate}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
    //"vehicleFormatRight": "<font color='{{c:winrate}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
    //"vehicleFormatLeft": "<img src='xvm://res/icons/xvm/xvm-user-{{xvm-user|none}}.png' width='9' height='9'>",
    //"vehicleFormatRight": "<img src='xvm://res/icons/xvm/xvm-user-{{xvm-user|none}}.png' width='9' height='9'>",
    //"fragsFormatLeft": "{{frags|0}}",
    //"fragsFormatRight": "{{frags|0}}",
    //"fragsShadowLeft": { "color": "0xFF0000" },
    //"fragsShadowRight": { "color": "0xFF0000" },
    //"nickShadowLeft": { "color": "0x0000FF" },
    //"nickShadowRight": { "color": "0x0000FF" },
    //"vehicleShadowLeft": { "color": "0x00FF00" },
    //"vehicleShadowRight": { "color": "0x00FF00" },
    "extraFieldsLeft": [
      // for tests
      //{ "width": 1, "height": 23, "bgColor": "0xFFFFFF" },
      //{ "x": -1, "y": 2, "width": 5, "height": 22, "bgColor": "0x800600", "borderColor": "0x000000", "bindToIcon": true },
      //{ "width": 1, "height": 23, "bindToIcon": true, "bgColor": "0xFFFFFF" },
      //{ "x": 100, "scaleX": 1, "src": "img://gui/maps/icons/vehicle/contour/{{vehiclename}}.png" },
      //{ "x": 0, "src": "cfg://sirmax/img/MinimapAim.png" },
      //{ "x": 0, "bindToIcon": true, "src": "cfg://sirmax/img/MinimapAim.png" },

      //{ "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png" },
      { "y": 2, "width": 3, "height": 21, "bgColor": ${"def.c1"}, "alpha": "{{alive?75|0}}" },
      { "x": "{{r_size=2?13|{{r_size=4?16|19}}}}", "y": 2, "height": 21, "align": "center", "format": "<font color='{{t-battles>19?{{c:r|#666666}}|#666666}}' alpha='{{alive?#FF|#80}}'>{{r_size=2?{{r}}|{{r%d}}}}</font>", "shadow": {} },
      { "x": "{{r_size=2?23|{{r_size=4?32|36}}}}", "y": 2, "height": 21, "width": "{{hp-max:120}}", "bgColor": 0, "alpha": 40 },
      { "x": "{{r_size=2?23|{{r_size=4?32|36}}}}", "y": 2, "height": 21, "width": "{{hp:120}}", "bgColor": ${"def.c1"}, "alpha": 50 },
      ${"../default/playersPanel.xc":"def.clanIcon"},
      { "$ref": { "file":"../default/playersPanel.xc", "path":"def.xvmUserMarker" }, "enabled": true },
      ${"../default/playersPanel.xc":"def.xmqpServiceMarker"},
      //{ "$ref": { "file":"../default/playersPanel.xc", "path":"def.xmqpServiceMarker" },
      //  "x":100,
      //  "textFormat": { "font": "$FieldFont" },
      //  "format": "e:{{x-enabled?1|0}} 6:{{x-sense-on?1|0}} s:{{x-spotted?1|0}} f:{{x-fire?1|0}} o:{{x-overturned?1|0}} d:{{x-drowning?1|0}}"
      //},
      //{ "x": -20, "y": 6.7, "bindToIcon": true, "src": "xvm://res/icons/flags/{{flag|default}}.png" },
      {}
    ],
    "extraFieldsRight": [
      // for tests
      //{ "width": 1, "height": 23, "bgColor": "0xFFFFFF" },
      //{ "x": -1, "y": 2, "width": 5, "height": 22, "bgColor": "0x800600", "borderColor": "0x000000", "bindToIcon": true },
      //{ "width": 1, "height": 23, "bindToIcon": true, "bgColor": "0xFFFFFF" },
      //{ "x": 100, "y":15, "scaleX": -1, "src": "img://gui/maps/icons/vehicle/contour/{{vehiclename}}.png" },
      //{ "x": 0, "src": "cfg://sirmax/img/MinimapAim.png" },
      //{ "x": 0, "bindToIcon": true, "src": "cfg://sirmax/img/MinimapAim.png" },

      //{ "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png", "scaleX": -1 },
      { "y": 2, "width": 3, "height": 21, "bgColor": ${"def.c2"}, "alpha": "{{alive?75|0}}" },
      { "x": "{{r_size=2?13|{{r_size=4?20|21}}}}", "y": 2, "height": 21, "align": "center", "format": "<font color='{{t-battles>19?{{c:r|#666666}}|#666666}}' alpha='{{alive?#FF|#80}}'>{{r_size=2?{{r}}|{{r%d}}}}</font> </font>", "shadow": {} },
      { "x": "{{r_size=2?23|{{r_size=4?33|38}}}}", "y": 2, "height": 21, "width": "{{hp-max:120}}", "bgColor": 0, "alpha": 40 },
      { "x": "{{r_size=2?23|{{r_size=4?33|38}}}}", "y": 2, "height": 21, "width": "{{hp:120}}", "bgColor": ${"def.c2"}, "alpha": 50 },
      ${"../default/playersPanel.xc":"def.clanIcon"},
      { "$ref": { "file":"../default/playersPanel.xc", "path":"def.xvmUserMarker" }, "enabled": true },
      ${"../default/playersPanel.xc":"def.enemySpottedMarker"},
      //{ "x": -20, "y": 6.7, "bindToIcon": true, "src": "xvm://res/icons/flags/{{flag|default}}.png" },
      {}
    ],
    "nickMinWidth": 120,
    "nickMaxWidth": 180,
    "__stub__": null
  },
  "medium": {
    //"enabled": false,
    //"fixedPosition": true,
    "expandAreaWidth": 0,
    "nickMinWidth": 80,
    "nickMaxWidth": 80,
    //"standardFields": [ "frags", "badge", "nick" ],
    //"removeSquadIcon": true,
    "vehicleIconOffsetXLeft": -15,
    "vehicleIconOffsetXRight": -15,
    "vehicleLevelOffsetXLeft": -15,
    "vehicleLevelOffsetXRight": -15,
    //"vehicleLevelAlpha": 0,
    "nickFormatLeft": "<font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{nick}}</font>",
    "nickFormatRight": "<font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{nick}}</font>",
    //"extraFieldsLeft": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png" }
    //],
    //"extraFieldsRight": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png", "scaleX": -1 }
    //],
    "__stub__": null
  },
  "medium2": {
    //"enabled": false,
    "expandAreaWidth": 0,
    "vehicleWidth": 80,
    //"standardFields": [ "frags", "badge", "vehicle" ],
    //"removeSquadIcon": true,
    "vehicleIconOffsetXLeft": -15,
    "vehicleIconOffsetXRight": -15,
    "vehicleLevelOffsetXLeft": -15,
    "vehicleLevelOffsetXRight": -15,
    //"vehicleLevelAlpha": 0,
    "vehicleFormatLeft": "<font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
    "vehicleFormatRight": "<font color='{{c:xwn8}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>",
    //"extraFieldsLeft": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png" }
    //],
    //"extraFieldsRight": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png", "scaleX": -1 }
    //],
    "__stub__": null
  },
  "short": {
    //"enabled": false,
    "expandAreaWidth": 40,
    "fragsWidth": 20,
    //"standardFields": [ "badge", "frags" ],
    "vehicleIconOffsetXLeft": -15,
    "vehicleIconOffsetXRight": -15,
    "vehicleLevelOffsetXLeft": -15,
    "vehicleLevelOffsetXRight": -15,
    "vehicleLevelAlpha": 70,
    //"removeSquadIcon": true,
    //"extraFieldsLeft": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png" }
    //],
    //"extraFieldsRight": [
    //  { "layer": "substrate", "height": 25, "src": "cfg://sirmax/img/panel-bg-{{alive|dead}}.png", "scaleX": -1 }
    //],
    "__stub__": null
  },
  "none": {
    //"enabled": false,
    "expandAreaWidth": 40,
    //"layout": "horizontal",
    //"fixedPosition": true,
    //"inviteIndicatorAlpha": 50,
    //"inviteIndicatorX": 100,
    //"inviteIndicatorY": 100,
    "extraFields": ${"sirmax-panels-none.xc":"."}
  },
  "alpha": 50,
  //"iconAlpha": 50,
  //"removeSelectedBackground": true,
  "removePanelsModeSwitcher": true
}
