Blizzard_WorldMap/Blizzard_WorldMapTemplates.xml

Blizzard_WorldMap/Blizzard_WorldMapTemplates.xml (9.0.2.36710; unchanged since 9.0.1.36230)
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\FrameXML\UI.xsd">
  3.   <Script file="Blizzard_WorldMapTemplates.lua"/>
  4.  
  5.   <Frame name="WorldMapFloorNavigationFrameTemplate" frameStrata="HIGH" inherits="UIDropDownMenuTemplate" mixin="WorldMapFloorNavigationFrameMixin" virtual="true">
  6.     <Scripts>
  7.       <OnLoad method="OnLoad"/>
  8.     </Scripts>
  9.   </Frame>
  10.  
  11.   <DropDownToggleButton name="WorldMapTrackingOptionsButtonTemplate" frameStrata="HIGH" mixin="WorldMapTrackingOptionsButtonMixin" virtual="true">
  12.     <Size x="32" y="32"/>
  13.     <Layers>
  14.       <Layer level="BACKGROUND" textureSubLevel="-1">
  15.         <Texture atlas="MapCornerShadow-Right" useAtlasSize="true">
  16.           <Anchors>
  17.             <Anchor point="TOPRIGHT" x="4" y="1"/>
  18.           </Anchors>
  19.           <TexCoords left="0" right="1" top="1" bottom="0"/>
  20.         </Texture>
  21.       </Layer>
  22.       <Layer level="BACKGROUND">
  23.         <Texture parentKey="Background" file="Interface\Minimap\UI-Minimap-Background">
  24.           <Size x="25" y="25"/>
  25.           <Anchors>
  26.             <Anchor point="TOPLEFT" x="2" y="-4"/>
  27.           </Anchors>
  28.           <Color r="1" g="1" b="1" a="1"/>
  29.         </Texture>
  30.       </Layer>
  31.       <Layer level="ARTWORK">
  32.         <Texture parentKey="Icon" file="Interface\Minimap\Tracking\None">
  33.           <Size x="20" y="20"/>
  34.           <Anchors>
  35.             <Anchor point="TOPLEFT" x="6" y="-6"/>
  36.           </Anchors>
  37.         </Texture>
  38.       </Layer>
  39.       <Layer level="OVERLAY">
  40.         <Texture parentKey="IconOverlay" hidden="true">
  41.           <Anchors>
  42.             <Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
  43.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
  44.           </Anchors>
  45.           <Color r="0.0" g="0.0" b="0.0" a="0.5"/>
  46.         </Texture>
  47.       </Layer>
  48.       <Layer level="OVERLAY" textureSubLevel="1">
  49.         <Texture parentKey="Border" file="Interface\Minimap\MiniMap-TrackingBorder">
  50.           <Size x="54" y="54"/>
  51.           <Anchors>
  52.             <Anchor point="TOPLEFT"/>
  53.           </Anchors>
  54.         </Texture>
  55.       </Layer>
  56.     </Layers>
  57.     <Frames>
  58.       <Frame parentKey="DropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" hidden="true"/>
  59.     </Frames>
  60.     <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
  61.     <Scripts>
  62.       <OnLoad method="OnLoad"/>
  63.       <OnMouseDown method="OnMouseDown"/>
  64.       <OnMouseUp method="OnMouseUp"/>
  65.     </Scripts>
  66.   </DropDownToggleButton>
  67.  
  68.   <Button name="WorldMapTrackingPinButtonTemplate" frameStrata="HIGH" mixin="WorldMapTrackingPinButtonMixin" motionScriptsWhileDisabled="true" virtual="true">
  69.     <Size x="32" y="32"/>
  70.     <Layers>
  71.       <Layer level="BACKGROUND" textureSubLevel="-1">
  72.         <Texture atlas="MapCornerShadow-Right" useAtlasSize="true" hidden="true">
  73.           <Anchors>
  74.             <Anchor point="TOPRIGHT" x="4" y="1"/>
  75.           </Anchors>
  76.           <TexCoords left="0" right="1" top="1" bottom="0"/>
  77.         </Texture>
  78.       </Layer>
  79.       <Layer level="BACKGROUND">
  80.         <Texture parentKey="Background" file="Interface\Minimap\UI-Minimap-Background">
  81.           <Size x="25" y="25"/>
  82.           <Anchors>
  83.             <Anchor point="TOPLEFT" x="2" y="-4"/>
  84.           </Anchors>
  85.         </Texture>
  86.       </Layer>
  87.       <Layer level="ARTWORK">
  88.         <Texture parentKey="Icon" atlas="Waypoint-MapPin-Untracked">
  89.           <Size x="20" y="20"/>
  90.           <Anchors>
  91.             <Anchor point="TOPLEFT" x="6" y="-6"/>
  92.           </Anchors>
  93.         </Texture>
  94.       </Layer>
  95.       <Layer level="OVERLAY">
  96.         <Texture parentKey="IconOverlay" hidden="true">
  97.           <Anchors>
  98.             <Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
  99.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
  100.           </Anchors>
  101.           <Color r="0.0" g="0.0" b="0.0" a="0.5"/>
  102.         </Texture>
  103.       </Layer>
  104.       <Layer level="OVERLAY" textureSubLevel="1">
  105.         <Texture parentKey="Border" file="Interface\Minimap\MiniMap-TrackingBorder">
  106.           <Size x="54" y="54"/>
  107.           <Anchors>
  108.             <Anchor point="TOPLEFT"/>
  109.           </Anchors>
  110.         </Texture>
  111.       </Layer>
  112.       <Layer level="OVERLAY" textureSubLevel="2">
  113.         <Texture parentKey="ActiveTexture" file="Interface\Minimap\UI-Minimap-ZoomButton-Toggle" alphaMode="ADD" hidden="true" setAllPoints="true"/>
  114.       </Layer>     
  115.     </Layers>
  116.     <Frames>
  117.       <Frame parentKey="DropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" hidden="true"/>
  118.     </Frames>
  119.     <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
  120.     <Scripts>
  121.       <OnLoad method="OnLoad"/>
  122.       <OnEvent method="OnEvent"/>
  123.       <OnMouseDown method="OnMouseDown"/>
  124.       <OnMouseUp method="OnMouseUp"/>
  125.       <OnClick method="OnClick"/>
  126.       <OnEnter method="OnEnter"/>
  127.       <OnLeave function="GameTooltip_Hide"/>
  128.       <OnHide method="OnHide"/>
  129.     </Scripts>
  130.   </Button>
  131.  
  132.   <Frame name="WorldMapNavBarTemplate" inherits="NavBarTemplate" mixin="WorldMapNavBarMixin" virtual="true">
  133.     <Anchors>
  134.       <Anchor point="TOPLEFT" relativeKey="$parent.BorderFrame" x="10" y="-23"/>
  135.     </Anchors>
  136.     <Layers>
  137.       <Layer level="BORDER" textureSubLevel="-5">
  138.         <Texture inherits="UI-Frame-InnerBotLeftCorner" parentKey="InsetBorderBottomLeft">
  139.           <Anchors>
  140.             <Anchor point="BOTTOMLEFT"  x="-3" y="-3"/>
  141.           </Anchors>
  142.         </Texture>
  143.         <Texture inherits="UI-Frame-InnerBotRight" parentKey="InsetBorderBottomRight">
  144.           <Anchors>
  145.             <Anchor point="BOTTOMRIGHT"  x="3" y="-3"/>
  146.           </Anchors>
  147.         </Texture>
  148.         <Texture inherits="_UI-Frame-InnerBotTile" parentKey="InsetBorderBottom">
  149.           <Anchors>
  150.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.InsetBorderBottomLeft" relativePoint="BOTTOMRIGHT"/>
  151.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.InsetBorderBottomRight" relativePoint="BOTTOMLEFT"/>
  152.           </Anchors>
  153.         </Texture>
  154.         <Texture inherits="!UI-Frame-InnerLeftTile" parentKey="InsetBorderLeft">
  155.           <Anchors>
  156.             <Anchor point="TOPLEFT" x="-3" y="0"/>
  157.             <Anchor point="BOTTOMLEFT" relativeKey="$parent.InsetBorderBottomRight" relativePoint="TOPLEFT"/>
  158.           </Anchors>
  159.         </Texture>
  160.         <Texture inherits="!UI-Frame-InnerRightTile" parentKey="InsetBorderRight">
  161.           <Anchors>
  162.             <Anchor point="TOPRIGHT"  x="3" y="0"/>
  163.             <Anchor point="BOTTOMRIGHT" relativeKey="$parent.InsetBorderBottomRight" relativePoint="TOPRIGHT"/>
  164.           </Anchors>
  165.         </Texture>
  166.       </Layer>
  167.     </Layers>
  168.     <Scripts>
  169.       <OnLoad method="OnLoad"/>
  170.     </Scripts>
  171.   </Frame>
  172.  
  173.   <Frame name="WorldMapSidePanelToggleTemplate" mixin="WorldMapSidePanelToggleMixin" virtual="true">
  174.     <Size x="32" y="32"/>
  175.     <Frames>
  176.       <Button parentKey="OpenButton" hidden="true">
  177.         <Size x="32" y="32"/>
  178.         <Anchors>
  179.           <Anchor point="CENTER"/>
  180.         </Anchors>
  181.         <Layers>
  182.           <Layer level="BACKGROUND">
  183.             <Texture atlas="MapCornerShadow-Right" useAtlasSize="true">
  184.               <Anchors>
  185.                 <Anchor point="BOTTOMRIGHT" x="2" y="-1"/>
  186.               </Anchors>
  187.             </Texture>
  188.           </Layer>
  189.         </Layers>
  190.         <NormalTexture atlas="QuestCollapse-Show-Up"/>
  191.         <PushedTexture atlas="QuestCollapse-Show-Down"/>
  192.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" setAllPoints="true">
  193.           <Size x="48" y="48"/>
  194.           <Anchors>
  195.             <Anchor point="CENTER"/>
  196.           </Anchors>
  197.         </HighlightTexture>
  198.         <Scripts>
  199.           <OnClick>
  200.             PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  201.             self:GetParent():OnClick();
  202.           </OnClick>
  203.         </Scripts>
  204.       </Button>
  205.       <Button parentKey="CloseButton" hidden="true">
  206.         <Size x="32" y="32"/>
  207.         <Anchors>
  208.           <Anchor point="CENTER"/>
  209.         </Anchors>
  210.         <Layers>
  211.           <Layer level="BACKGROUND">
  212.             <Texture atlas="MapCornerShadow-Right" useAtlasSize="true">
  213.               <Anchors>
  214.                 <Anchor point="BOTTOMRIGHT" x="2" y="-1"/>
  215.               </Anchors>
  216.             </Texture>
  217.           </Layer>
  218.         </Layers>
  219.         <NormalTexture atlas="QuestCollapse-Hide-Up"/>
  220.         <PushedTexture atlas="QuestCollapse-Hide-Down"/>
  221.         <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" setAllPoints="true">
  222.           <Size x="48" y="48"/>
  223.           <Anchors>
  224.             <Anchor point="CENTER"/>
  225.           </Anchors>
  226.         </HighlightTexture>
  227.         <Scripts>
  228.           <OnClick>
  229.             PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
  230.             self:GetParent():OnClick();
  231.           </OnClick>
  232.         </Scripts>
  233.       </Button>
  234.     </Frames>
  235.   </Frame>
  236.  
  237.   <Frame name="WorldMapZoneTimerTemplate" frameStrata="HIGH" mixin="WorldMapZoneTimerMixin" virtual="true">
  238.     <Size x="101" y="86" />
  239.     <Layers>
  240.       <Layer level="ARTWORK">
  241.         <FontString parentKey="TimeLabel" inherits="SystemFont_OutlineThick_Huge2" justifyH="CENTER" hidden="true">
  242.           <Anchors>
  243.             <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="20"/>
  244.           </Anchors>
  245.         </FontString>
  246.       </Layer>
  247.     </Layers>
  248.     <Scripts>
  249.       <OnUpdate method="OnUpdate" />
  250.     </Scripts>
  251.   </Frame>
  252.  
  253.   <Frame name="WorldMapThreatFrameTemplate" frameStrata="HIGH" frameLevel="5" mixin="WorldMapThreatFrameMixin" virtual="true">
  254.     <Size x="300" y="300" />
  255.     <Layers>
  256.       <Layer level="BACKGROUND">
  257.         <Texture parentKey="Background" atlas="bfa-threats-cornereye-background">
  258.           <Size x="121" y="110"/>
  259.           <Anchors>
  260.             <Anchor point="BOTTOMLEFT"/>
  261.           </Anchors>
  262.         </Texture>
  263.       </Layer>
  264.     </Layers>
  265.     <Frames>
  266.       <Frame parentKey="Eye" mixin="WorldMapThreatEyeMixin" enableMouse="true" frameLevel="10">
  267.         <Size x="46" y="47"/>
  268.         <Anchors>
  269.           <Anchor point="BOTTOMLEFT" x="11" y="7"/>
  270.         </Anchors>
  271.         <Layers>
  272.           <Layer level="ARTWORK">
  273.             <Texture parentKey="Eye" atlas="bfa-threats-cornereye">
  274.               <Size x="121" y="110"/>
  275.               <Anchors>
  276.                 <Anchor point="BOTTOMLEFT" x="-11" y="-7"/>
  277.               </Anchors>
  278.             </Texture>
  279.           </Layer>
  280.           <Layer level="HIGHLIGHT">
  281.             <Texture parentKey="Highlight" atlas="bfa-threats-cornereye" alphaMode="ADD" alpha="0.4">
  282.               <Anchors>
  283.                 <Anchor point="TOPLEFT" relativeKey="$parent.Eye"/>
  284.                 <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Eye"/>
  285.               </Anchors>
  286.             </Texture>
  287.           </Layer>
  288.         </Layers>
  289.         <Scripts>
  290.           <OnShow method="OnShow"/>
  291.           <OnEnter method="OnEnter"/>
  292.           <OnLeave function="GameTooltip_Hide"/>
  293.           <OnMouseDown method="OnMouseDown"/>
  294.         </Scripts>
  295.       </Frame>
  296.       <ModelScene parentKey="ModelSceneBottom" inherits="NonInteractableModelSceneMixinTemplate" frameLevel="9">
  297.         <Size x="300" y="300"/>
  298.         <Anchors>
  299.           <Anchor point="CENTER" relativeKey="$parent.Eye"/>
  300.         </Anchors>
  301.       </ModelScene>
  302.       <ModelScene parentKey="ModelSceneTop" inherits="NonInteractableModelSceneMixinTemplate" frameLevel="11">
  303.         <Size x="300" y="300"/>
  304.         <Anchors>
  305.           <Anchor point="CENTER" relativeKey="$parent.Eye"/>
  306.         </Anchors>
  307.       </ModelScene>
  308.     </Frames>
  309.     <Scripts>
  310.       <OnLoad method="OnLoad"/>
  311.       <OnShow method="OnShow"/>
  312.       <OnHide method="OnHide"/>
  313.       <OnEvent method="OnEvent"/>
  314.     </Scripts>
  315.   </Frame> 
  316. </Ui>