<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/
..\FrameXML\UI.xsd">
<Script file="Minimap.lua"/>
<!-- Patchwerk
<Texture name="GuildDungeonDifficultyBanner.png" >
<Size x="41" y="53"/>
<TexCoords left="0.00781250" right="0.32812500" top="0.01562500" bottom="0.84375000"/>
</Texture>
<Texture name="GuildDungeonDifficultyBorder.png" >
<Size x="41" y="53"/>
<TexCoords left="0.34375000" right="0.66406250" top="0.01562500" bottom="0.84375000"/>
</Texture>
<Texture name="GuildDungeonDifficultyDarkBG.png" >
<Size x="30" y="21"/>
<TexCoords left="0.67968750" right="0.91406250" top="0.01562500" bottom="0.34375000"/>
</Texture>
<Texture name="GuildDungeonDifficultyHanger.png" >
<Size x="39" y="16"/>
<TexCoords left="0.67968750" right="0.98437500" top="0.37500000" bottom="0.62500000"/>
</Texture>
<Texture name="GuildDungeonDifficultyHeroicIcon.png" >
<Size x="12" y="13"/>
<TexCoords left="0.67968750" right="0.77343750" top="0.65625000" bottom="0.85937500"/>
</Texture>
-->
<Frame name="EyeTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="45" y="45"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" setAllPoints="true" file="Interface\LFGFrame\LFG-Eye" parentKey="texture"/>
</Layer>
</Layers>
</Frame>
<Button name="MiniMapButtonTemplate" virtual="true">
<Scripts>
<OnHide>
if (self.isDown) then
MinimapButton_OnMouseUp(self);
end
</OnHide>
<OnMouseDown>
MinimapButton_OnMouseDown(self, button);
</OnMouseDown>
<OnMouseUp>
MinimapButton_OnMouseUp(self, button);
</OnMouseUp>
</Scripts>
</Button>
<Frame name="MinimapCluster" frameStrata="BACKGROUND" toplevel="true" enableMouse="true" parent="UIParent">
<Size>
<AbsDimension x="192" y="192"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT"/>
</Anchors>
<HitRectInsets>
<AbsInset left="30" right="10" top="0" bottom="30"/>
</HitRectInsets>
<Layers>
<Layer level="ARTWORK">
<Texture name="MinimapBorderTop" file="Interface\Minimap\UI-Minimap-Border">
<Size>
<AbsDimension x="192" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT"/>
</Anchors>
<TexCoords left="0.25" right="1.0" top="0.0" bottom="0.125"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="MinimapZoneTextButton">
<Size>
<AbsDimension x="150" y="12"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="7" y="83"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="MinimapZoneText" inherits="GameFontNormal" nonspacewrap="true">
<Size>
<AbsDimension x="140" y="12"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="TOP">
<Offset>
<AbsDimension x="-5" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
local pvpType, isSubZonePvP, factionName = GetZonePVPInfo();
Minimap_SetTooltip( pvpType, factionName );
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Button>
<Minimap name="Minimap" enableMouse="true" minimapPlayerModel="Interface\Minimap\MinimapArrow.mdx" minimapArrowModel="Interface\Minimap\Rotating-MinimapArrow.mdl">
<Size>
<AbsDimension x="140" y="140"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="TOP">
<Offset>
<AbsDimension x="9" y="-92"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Frame name="MiniMapMailFrame" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="33" y="33"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="24" y="-37"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="MiniMapMailIcon" file="Interface\Icons\INV_Letter_15">
<Size>
<AbsDimension x="18" y="18"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="7" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="MiniMapMailBorder" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size>
<AbsDimension x="52" y="52"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterEvent("UPDATE_PENDING_MAIL");
self:SetFrameLevel(self:GetFrameLevel()+1)
</OnLoad>
<OnEvent>
if ( event == "UPDATE_PENDING_MAIL" ) then
if ( HasNewMail() ) then
self:Show();
if( GameTooltip:IsOwned(self) ) then
MinimapMailFrameUpdate();
end
else
self:Hide();
end
end
</OnEvent>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT");
if( GameTooltip:IsOwned(self) ) then
MinimapMailFrameUpdate();
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Frame>
<Frame name="MinimapBackdrop">
<Size>
<AbsDimension x="192" y="192"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="MinimapCluster">
<Offset>
<AbsDimension x="0" y="-20"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="MinimapBorder" file="Interface\Minimap\UI-Minimap-Border">
<TexCoords left="0.25" right="1.0" top="0.125" bottom="0.875"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="MinimapNorthTag" file="Interface\Minimap\CompassNorthTag">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="Minimap">
<Offset>
<AbsDimension x="0" y="67"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="MinimapCompassTexture" file="Interface\Minimap\CompassRing">
<Size>
<AbsDimension x="365" y="365"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="Minimap">
<Offset x="-2" y="0"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="MiniMapWorldMapButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-2" y="23"/>
</Anchors>
<Scripts>
<OnLoad>
self.tooltipText = MicroButtonTooltipText(WORLDMAP_BUTTON, "TOGGLEWORLDMAP");
self.newbieText = NEWBIE_TOOLTIP_WORLDMAP;
self:RegisterEvent("UPDATE_BINDINGS");
</OnLoad>
<OnEnter>
GameTooltip_AddNewbieTip(self, self.tooltipText, 1.0, 1.0, 1.0, self.newbieText);
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
<OnEvent>
self.tooltipText = MicroButtonTooltipText(WORLDMAP_BUTTON, "TOGGLEWORLDMAP");
self.newbieText = NEWBIE_TOOLTIP_WORLDMAP;
</OnEvent>
<OnClick>
ToggleFrame(WorldMapFrame);
</OnClick>
</Scripts>
<NormalTexture file="Interface\minimap\UI-Minimap-WorldMapSquare">
<Size x="32" y="32"/>
<TexCoords left="0.0" right="1" top="0" bottom="0.5"/>
</NormalTexture>
<PushedTexture file="Interface\minimap\UI-Minimap-WorldMapSquare">
<Size x="32" y="32"/>
<TexCoords left="0.0" right="1" top="0.5" bottom="1"/>
</PushedTexture>
<HighlightTexture file="Interface\BUTTONS\UI-Common-MouseHilight.png" alphaMode="ADD">
<Size x="28" y="28"/>
<Anchors>
<Anchor point="TOPRIGHT" x="2" y="-2"/>
</Anchors>
</HighlightTexture>
</Button>
<Frame name="MiniMapTracking">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="9" y="-45"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\Minimap\UI-Minimap-Background">
<Size x="25" y="25"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-4"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="0.6"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentIcon" file="Interface\Minimap\Tracking\None">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="6" y="-6"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentIconOverlay" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentIcon"/>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIcon"/>
</Anchors>
<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true">
<Scripts>
<OnLoad function="MiniMapTrackingDropDown_OnLoad"/>
</Scripts>
</Frame>
<Button name="$parentButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture name="$parentBorder" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size x="54" y="54"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentShine" file="Interface\ComboFrame\ComboPoint" alphaMode="ADD" hidden="true">
<Size x="27" y="27"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-2"/>
</Anchor>
</Anchors>
<TexCoords left="0.5625" right="1" top="0" bottom="1"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterEvent("MINIMAP_UPDATE_TRACKING");
MiniMapTracking_Update();
</OnLoad>
<OnEvent function="MiniMapTracking_Update"/>
<OnClick>
ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, "MiniMapTracking", 0, -5);
PlaySound("igMainMenuOptionCheckBoxOn");
</OnClick>
<OnMouseDown>
MiniMapTrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 8, -8);
MiniMapTrackingIconOverlay:Show();
</OnMouseDown>
<OnMouseUp>
MiniMapTrackingIcon:SetPoint("TOPLEFT", MiniMapTracking, "TOPLEFT", 6, -6);
MiniMapTrackingIconOverlay:Hide();
</OnMouseUp>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(TRACKING, 1, 1, 1);
GameTooltip:AddLine(MINIMAP_TRACKING_TOOLTIP_NONE, nil, nil, nil, 1);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
</Frames>
</Frame>
<Button name="MinimapZoomIn">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="72" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="4" right="4" top="2" bottom="6"/>
</HitRectInsets>
<Scripts>
<OnClick function="Minimap_ZoomInClick"/>
<OnEnter>
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
GameTooltip:SetText(ZOOM_IN);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Up"/>
<PushedTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Down"/>
<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Disabled"/>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
<Button name="MinimapZoomOut">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="50" y="-43"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="4" right="4" top="2" bottom="6"/>
</HitRectInsets>
<Scripts>
<OnClick function="Minimap_ZoomOutClick"/>
<OnEnter>
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
GameTooltip:SetText(ZOOM_OUT);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Up"/>
<PushedTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Down"/>
<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
<Button name="MiniMapRecordingButton" hidden="true">
<Size>
<AbsDimension x="27" y="27"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture name="MiniMapWorldIcon" file="Interface\Minimap\MovieRecordingIcon">
<Size>
<AbsDimension x="15" y="15"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-1" y="1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="MiniMapRecordingBorder" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size>
<AbsDimension x="41" y="41"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnter>
if ( GetCVar("UberTooltips") == "1" ) then
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
MINIMAP_RECORDING_INDICATOR_ON = true;
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
MINIMAP_RECORDING_INDICATOR_ON = false;
</OnLeave>
<OnLoad>
self:RegisterEvent("MOVIE_RECORDING_PROGRESS");
</OnLoad>
<OnEvent>
if ( event == "MOVIE_RECORDING_PROGRESS" ) then
if( MovieRecording_IsRecording() and GetCVar("MovieRecordingIcon") == "1") then
self:Show();
else
self:Hide();
end
end
</OnEvent>
<OnUpdate>
if ( MINIMAP_RECORDING_INDICATOR_ON ) then
GameTooltip:SetText(MOVIE_RECORDING_RECORDING..MovieRecording_GetTime());
end
</OnUpdate>
</Scripts>
</Button>
</Frames>
</Frame>
</Frames>
<Scripts>
<OnMouseUp function="Minimap_OnClick"/>
<OnLoad function="Minimap_OnLoad"/>
<OnEvent function="Minimap_OnEvent"/>
</Scripts>
</Minimap>
<Frame name="MiniMapInstanceDifficulty" hidden="true">
<Size>
<AbsDimension x="38" y="46"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="22" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\Minimap\UI-DungeonDifficulty-Button">
<Size>
<AbsDimension x="64" y="46"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.0" right="0.25" top="0.0703125" bottom="0.4140625"/>
</Texture>
<FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="CENTER">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-1" y="-7"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterEvent("PLAYER_DIFFICULTY_CHANGED");
self:RegisterEvent("UPDATE_INSTANCE_INFO");
self:RegisterEvent("GROUP_ROSTER_UPDATE");
self:RegisterEvent("PLAYER_GUILD_UPDATE");
self:RegisterEvent("PARTY_MEMBER_ENABLE");
self:RegisterEvent("PARTY_MEMBER_DISABLE");
self:RegisterEvent("GUILD_PARTY_STATE_UPDATED");
</OnLoad>
<OnEvent function="MiniMapInstanceDifficulty_OnEvent" />
</Scripts>
</Frame>
<Frame name="GuildInstanceDifficulty" hidden="true" enableMouse="true">
<Size>
<AbsDimension x="38" y="46"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="22" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\GuildFrame\GuildDifficulty" parentKey="background">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Size x="41" y="53"/>
<TexCoords left="0.00781250" right="0.32812500" top="0.01562500" bottom="0.84375000"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentDarkBackground" file="Interface\GuildFrame\GuildDifficulty" alpha="0.7">
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parentBackground" x="0" y="7"/>
</Anchors>
<Size x="30" y="21"/>
<TexCoords left="0.67968750" right="0.91406250" top="0.01562500" bottom="0.34375000"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentEmblem" parentKey="emblem" file="Interface\GuildFrame\GuildEmblems_01">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="TOPLEFT" x="12" y="-10"/>
</Anchors>
</Texture>
<Texture name="$parentBorder" file="Interface\GuildFrame\GuildDifficulty" parentKey="border">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Size x="41" y="53"/>
<TexCoords left="0.34375000" right="0.66406250" top="0.01562500" bottom="0.84375000"/>
</Texture>
<Texture name="$parentHeroicTexture" file="Interface\GuildFrame\GuildDifficulty">
<Anchors>
<Anchor point="BOTTOMLEFT" x="8" y="7"/>
</Anchors>
<Size x="12" y="13"/>
<TexCoords left="0.67968750" right="0.77343750" top="0.65625000" bottom="0.85937500"/>
</Texture>
<Texture name="$parentChallengeModeTexture" file="Interface\Common\mini-hourglass">
<Anchors>
<Anchor point="BOTTOMLEFT" x="8" y="7"/>
</Anchors>
<Size x="12" y="12"/>
</Texture>
<FontString name="$parentText" inherits="GameFontNormalSmall" text="25">
<Anchors>
<Anchor point="BOTTOMLEFT" x="20" y="8"/>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentHanger" file="Interface\GuildFrame\GuildDifficulty">
<Size x="39" y="16"/>
<Anchors>
<Anchor point="TOPLEFT" x="1" y="-2"/>
</Anchors>
<TexCoords left="0.67968750" right="0.98437500" top="0.37500000" bottom="0.62500000"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnter function="GuildInstanceDifficulty_OnEnter"/>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Frame>
<Frame name="MiniMapChallengeMode" hidden="true" enableMouse="true">
<Size x="27" y="36"/>
<Anchors>
<Anchor point="TOPLEFT" x="28" y="-23"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\Challenges\challenges-minimap-banner">
<Size x="64" y="64"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnLoad>
Minimap.timer = 0;
Minimap_Update();
self:RegisterEvent("ZONE_CHANGED");
self:RegisterEvent("ZONE_CHANGED_INDOORS");
self:RegisterEvent("ZONE_CHANGED_NEW_AREA");
Minimap_UpdateRotationSetting();
local raisedFrameLevel = self:GetFrameLevel() + 10;
MiniMapInstanceDifficulty:SetFrameLevel(raisedFrameLevel);
GuildInstanceDifficulty:SetFrameLevel(raisedFrameLevel);
MiniMapChallengeMode:SetFrameLevel(raisedFrameLevel);
</OnLoad>
<OnEvent function="Minimap_Update"/>
</Scripts>
</Frame>
</Ui>