<?xml version="1.0" encoding="UTF-8"?>
<map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header id="header" resourceFile="hud_core.dat"/>
  <class id="material" tc="base"/>
  <class id="tc" bat_file="texture_compress.bat" dll_file="texture_compress.dll"/>
  <tc id="base"/>
  <tc id="bmp_only" bat_file="texture_compress_bmp_only.bat"/>
  <tc id="bmp_expand_only" bat_file="texture_compress_bmp_expand_only.bat"/>
  <class id="material" tc="base"/>

  <!-- notify icon -->
  <material id="_m.notify.hud(?)" path="notifyIcon(?).png" flags="MfReplaceFunction MfColor MfForceFirstMipMap0 MfAoBlendByTexture MfWmClampToEdge MfExpand" groupid="TgIDUI" tc="bmp_expand_only"/>

  <!-- module hud -->
  <window3d id="module.hud" position="_p.module.hud" children="mod.hud.back, mhud.e.direction[2], mhud.e.direction[1], mhud.e.direction[0], mhud.e.finish, mhud.e.distance, mhud.e.speed, mhud.speedLimit.icon, mhud.e.limit, mhud.e.warning, mhud.e.signal,
mhud.speedLimit.iconUsa, mhud.e.limitUsa"
popup="mhud.popup, mhud.popup.buttonBack, mhud.popup.buttonFlip" popupFlipped="mhud.popup, mhud.popup.buttonBack.flipped, mhud.popup.buttonFlip.flipped"/>

  <positionFix id="_p.module.hud" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="1"/>
  <shape3d id="mod.hud.back" material="_m.mod.hud.back"/>
  <material id="_m.mod.hud.back" color="ff000000" flags="MfColor MfAoBlend"/>

<?if landscape?>
  <positionFix id="_p.mhud.e.direction" deltaX1="0" relatX1="0" deltaX2="0" relatX2="0.45" deltaY1="0" relatY1="0.2" deltaY2="0" relatY2="1"/>
  <positionFix id="_p.mhud.e.finish" deltaX1="0" relatX1="0.02" deltaX2="0" relatX2="0.5" deltaY1="0" relatY1="0" deltaY2="0" relatY2="0.2"/>
  <positionFix id="_p.mhud.e.distance" deltaX1="0" relatX1="0.4" deltaX2="0" relatX2="1" deltaY1="0" relatY1="=0.3+0.3" deltaY2="0" relatY2="1"/>
  <positionFix id="_p.mhud.e.speed" deltaX1="0" relatX1="0.4" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0.3" deltaY2="0" relatY2="=0.3+0.3"/>
  <positionFix id="_p.mhud.e.limit" deltaX1="=-min(w*0.33, h*0.33)" relatX1="1" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="=min(w*0.33, h*0.33)" relatY2="0"/>
  <positionFix id="_p.mhud.e.warning" deltaX1="0" relatX1="0.5" deltaX2="=-min(w*0.33, h*0.33)" relatX2="1" deltaY1="0" relatY1="0" deltaY2="=min(w*0.33, h*0.33)" relatY2="0"/>
<?endif landscape?>

<?if portrait?>
  <positionFix id="_p.mhud.e.distance" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0.75" deltaY2="0" relatY2="1"/>

  <positionFix id="_p.mhud.e.direction" deltaX1="0" relatX1="0" deltaX2="0" relatX2="0.7" deltaY1="0" relatY1="0.3" deltaY2="0" relatY2="0.75"/>
  <positionFix id="_p.mhud.e.warning" deltaX1="=-min(w*0.33, h*0.33)" relatX1="1" deltaX2="0" relatX2="1" deltaY1="=-min(w*0.33, h*0.33)" relatY1="0.75" deltaY2="0" relatY2="0.75"/>

  <positionFix id="_p.mhud.e.finish" deltaX1="0" relatX1="0.02" deltaX2="0" relatX2="=1-0.02" deltaY1="0" relatY1="0.20" deltaY2="0" relatY2="0.30"/>
  <positionFix id="_p.mhud.e.limit" deltaX1="=-min(w*0.33, h*0.33)" relatX1="1" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0" deltaY2="=min(w*0.33, h*0.33)" relatY2="0"/>
  <positionFix id="_p.mhud.e.speed" deltaX1="0" relatX1="0" deltaX2="=-min(w*0.33, h*0.33)" relatX2="1" deltaY1="0" relatY1="0" deltaY2="0" relatY2="0.20"/>
<?endif portrait?>

  <color id="_c.mhud.green"  color="ff00ff00"/>
  <color id="_c.mhud.darkGreen"  color="ff008000"/>
  <color id="_c.mhud.white"  color="ffffffff"/>
  <color id="_c.mhud.yellow"  color="ffffff00"/>
  <color id="_c.mhud.red"  color="ffff0000"/>

  <font id="_f.mhud.direction" name="special" nameBorder="NONE" scale="nodpi" size="214" leading="214"/>
  <textStyle id="_t.mhud.direction[0]" color="_c.mhud.green" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.direction"/>
  <textStyle id="_t.mhud.direction[1]" color="_c.mhud.darkGreen" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.direction"/>
  <textStyle id="_t.mhud.direction[2]" color="_c.mhud.green" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.direction"/>
  <static3d id="mhud.e.direction[0]" align="left" valign="top" textstyle="_t.mhud.direction[0]" position="_p.mhud.e.direction" text="A"/>
  <static3d id="mhud.e.direction[1]" align="left" valign="top" textstyle="_t.mhud.direction[1]" position="_p.mhud.e.direction" text="A"/>
  <static3d id="mhud.e.direction[2]" align="left" valign="top" textstyle="_t.mhud.direction[2]" position="_p.mhud.e.direction" text="A"/>

  <font id="_f.mhud.finish" name="special" nameBorder="NONE" scale="nodpi" size="52" leading="52"/>
  <textStyle id="_t.mhud.finish" color="_c.mhud.green" colorSel="_c.mhud.yellow" colorDis="_c.mhud.green" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.finish"/>
  <static3d id="mhud.e.finish" align="left" valign="center" textstyle="_t.mhud.finish" precise="yes" position="_p.mhud.e.finish" text="F 12:34"/>

  <font id="_f.mhud.distance" name="regular" nameBorder="NONE" scale="nodpi" size="120" leading="120"/>
  <textStyle id="_t.mhud.distance" color="_c.mhud.green" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.distance"/>
  <static3d id="mhud.e.distance" align="center" valign="center" textstyle="_t.mhud.distance" precise="yes" position="_p.mhud.e.distance" text="1234m"/>

  <font id="_f.mhud.speed" name="regular" nameBorder="NONE" scale="nodpi" size="76" leading="76"/>
  <textStyle id="_t.mhud.speed" color="_c.mhud.white" colorSel="_c.mhud.yellow" colorDis="_c.mhud.white" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.speed"/>
  <static3d id="mhud.e.speed" align="center" valign="center" textstyle="_t.mhud.speed" precise="yes" position="_p.mhud.e.speed" text="1234m"/>

  <font id="_f.mhud.limit" name="bold" nameBorder="NONE" scale="nodpi" size="50" leading="50"/>
  <textStyle id="_t.mhud.limit" color="_c.mhud.white" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.limit"/>
  <static3d id="mhud.e.limit" align="center" valign="center" textstyle="_t.mhud.limit" precise="yes" position="_p.mhud.e.limit" text="130"/>

  <color id="_c.mhud.speedLimit.icon"  color="ffff0000"/>
  <font id="_f.mhud.speedLimit.icon" name="special" nameBorder="NONE" scale="nodpi" size="224" leading="224"/>
  <textStyle id="_t.mhud.speedLimit.icon" color="_c.mhud.speedLimit.icon" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.speedLimit.icon"/>
  <static3d id="mhud.speedLimit.icon" align="center" valign="center" precise="yes" position="_p.mhud.e.limit" textstyle="_t.mhud.speedLimit.icon" text="\x25cb"/>

  <color id="_c.mhud.speedLimit.iconUsa" color="ffb5b5b5"/>
  <font id="_f.mhud.speedLimit.iconUsa" name="special" nameBorder="NONE" scale="nodpi" size="140" leading="140"/>
  <textStyle id="_t.mhud.speedLimit.iconUsa" color="_c.mhud.speedLimit.iconUsa" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.speedLimit.iconUsa"/>
  <static3d id="mhud.speedLimit.iconUsa" align="center" valign="center" precise="yes" position="_p.mhud.e.limit" textstyle="_t.mhud.speedLimit.iconUsa" text="\xefef"/>
  <positionFix id="_p.mhud.e.limitUsa" reference="_p.mhud.e.limit" deltaX1="0" relatX1="0" deltaX2="0" relatX2="1" deltaY1="0" relatY1="0.35" deltaY2="0" relatY2="0.9"/>
  <static3d id="mhud.e.limitUsa" align="center" valign="center" textstyle="_t.mhud.limit" precise="yes" position="_p.mhud.e.limitUsa" text="130"/>

  <font id="_f.mhud.warning" name="special" nameBorder="NONE" scale="nodpi" size="110" leading="110"/>
  <textStyle id="_t.mhud.warning" color="_c.mhud.yellow" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.warning"/>
  <static3d id="mhud.e.warning" align="center" valign="center" textstyle="_t.mhud.warning" position="_p.mhud.e.warning" precise="yes" text="\xefe9"/>

  <font id="_f.mhud.signal" name="special" nameBorder="NONE" scale="nodpi" size="50" leading="50"/>
  <textStyle id="_t.mhud.signal" color="_c.mhud.red" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.signal"/>
  <static3d id="mhud.e.signal" align="center" valign="center" textstyle="_t.mhud.signal" position="_p.mhud.e.warning" precise="yes" text="\xe88f"/>

  <!-- popup window -->
  <material id="_m.mod.hud.popup" color="40b0b0b0" flags="MfColor MfAoBlend"/>
  <positionFix id="_p.mhud.popup" deltaX1="0" relatX1="0.14" deltaX2="0" relatX2="0.86" deltaY1="=-###60" relatY1="0.5" deltaY2="=###60" relatY2="0.5"/>
  <shape3d id="mhud.popup" position="_p.mhud.popup" material="_m.mod.hud.popup"/>

  <material id="_m.mhud.popup.btnBack" color="e6b0b0b0" flags="MfColor MfAoBlend"/>
  <gradient id="_g.mp.decor.back2" colors="d9292e44 d9000000" positions="00 ff"/>
  <gradient id="_g.mp.decor.back3" colors="d9000000 d9292e44" positions="00 ff"/>
  <shape3d id="mhud.popup.btnBack" gradient="_g.mp.decor.back2"/>
  <shape3d id="mhud.popup.btnBack.flipped" gradient="_g.mp.decor.back3"/>

  <material id="_m.mhud.popup.btnBack_" color="e6000000" flags="MfColor MfAoBlend"/>
  <shape3d id="mhud.popup.btnBack_" material="_m.mhud.popup.btnBack_"/>

  <positionFix id="_p.mhud.popup.left" reference="_p.mhud.popup" deltaX1="=#2" relatX1="0" deltaX2="=-#1" relatX2="0.5" deltaY1="=#2" relatY1="0" deltaY2="=-#2" relatY2="1"/>
  <positionFix id="_p.mhud.popup.right" reference="_p.mhud.popup" deltaX1="=#1" relatX1="0.5" deltaX2="=-#2" relatX2="1" deltaY1="=#2" relatY1="0" deltaY2="=-#2" relatY2="1"/>

  <button3d id="mhud.popup.buttonBack" position="_p.mhud.popup.left" children="mhud.popup.btnBack, mhud.popup.iconBack" children_="mhud.popup.btnBack_, mhud.popup.iconBack"/>
  <button3d id="mhud.popup.buttonFlip" position="_p.mhud.popup.right" children="mhud.popup.btnBack, mhud.popup.iconFlip" children_="mhud.popup.btnBack_, mhud.popup.iconFlip"/>
  <button3d id="mhud.popup.buttonBack.flipped" position="_p.mhud.popup.left" children="mhud.popup.btnBack.flipped, mhud.popup.iconBack" children_="mhud.popup.btnBack_, mhud.popup.iconBack"/>
  <button3d id="mhud.popup.buttonFlip.flipped" position="_p.mhud.popup.right" children="mhud.popup.btnBack.flipped, mhud.popup.iconFlip" children_="mhud.popup.btnBack_, mhud.popup.iconFlip"/>

  <color id="_c.mhud.popup.icon"  color="ffffffff"/>
  <font id="_f.mhud.popup.icon" name="special" nameBorder="NONE" scale="nodpi" size="68" leading="68"/>
  <textStyle id="_t.mhud.popup.icon" color="_c.mhud.popup.icon" vOffset="0.1875" hOffset="0.1875" count="1" font1="_f.mhud.popup.icon"/>

  <static3d id="mhud.popup.iconBack" align="center" valign="center" precise="yes" textstyle="_t.mhud.popup.icon" text="\xE899"/>
  <static3d id="mhud.popup.iconFlip" align="center" valign="center" precise="yes" textstyle="_t.mhud.popup.icon" text="\xEFEE"/>
</map>
                                                                                                                                    