vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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="ZoomMap.lua"/>
4 <Frame name="ZoomMapCluster" frameStrata="BACKGROUND" enableMouse="true" parent="UIParent">
5 <Size>
6 <AbsDimension x="192" y="192"/>
7 </Size>
8 <Anchors>
9 <Anchor point="CENTER"/>
10 </Anchors>
11 <HitRectInsets>
12 <AbsInset left="30" right="10" top="0" bottom="30"/>
13 </HitRectInsets>
14 <Frames>
15 <Minimap name="ZoomMap" enableMouse="true" minimapPlayerModel="Interface\Minimap\MinimapArrow.mdx" minimapArrowModel="Interface\Minimap\Rotating-MinimapArrow.mdl">
16 <Size>
17 <AbsDimension x="540" y="540"/>
18 </Size>
19 <Anchors>
20 <Anchor point="CENTER" relativePoint="TOP">
21 <Offset>
22 <AbsDimension x="9" y="-92"/>
23 </Offset>
24 </Anchor>
25 </Anchors>
26 <Frames>
27 <Frame name="ZoomMapTrackingFrame" enableMouse="true" hidden="false">
28 <Size>
29 <AbsDimension x="33" y="33"/>
30 </Size>
31 <Anchors>
32 <Anchor point="TOPLEFT">
33 <Offset>
34 <AbsDimension x="50" y="-70"/>
35 </Offset>
36 </Anchor>
37 </Anchors>
38 <Layers>
39 <Layer level="BACKGROUND">
40 <Texture name="ZoomMapTrackingIcon">
41 <Size>
42 <AbsDimension x="26" y="26"/>
43 </Size>
44 <Anchors>
45 <Anchor point="TOPLEFT">
46 <Offset>
47 <AbsDimension x="7" y="-6"/>
48 </Offset>
49 </Anchor>
50 </Anchors>z
51 </Texture>
52 </Layer>
53 <Layer level="OVERLAY">
54 <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
55 <Size>
56 <AbsDimension x="64" y="64"/>
57 </Size>
58 <Anchors>
59 <Anchor point="TOPLEFT"/>
60 </Anchors>
61 </Texture>
62 </Layer>
63 </Layers>
64 <Scripts>
65 <OnLoad>
66 this:RegisterEvent("PLAYER_AURAS_CHANGED");
67 </OnLoad>
68 <OnEvent>
69 if ( event == "PLAYER_AURAS_CHANGED" ) then
70 local icon = GetTrackingTexture();
71 if ( icon ) then
72 ZoomMapTrackingIcon:SetTexture(icon);
73 ZoomMapTrackingFrame:Show();
74 else
75 ZoomMapTrackingFrame:Hide();
76 end
77 end
78 </OnEvent>
79 <OnMouseUp>
80 if ( arg1 == "RightButton" ) then
81 CancelTrackingBuff();
82 end
83 </OnMouseUp>
84 <OnEnter>
85 GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
86 GameTooltip:SetTrackingSpell();
87 </OnEnter>
88 <OnLeave>
89 GameTooltip:Hide();
90 </OnLeave>
91 </Scripts>
92 </Frame>
93  
94 <Model name="ZoomMapPing" file="Interface\MiniMap\Ping\MinimapPing.mdx" scale="0.4" hidden="true">
95 <Size>
96 <AbsDimension x="50" y="50"/>
97 </Size>
98 <Anchors>
99 <Anchor point="CENTER" relativeTo="ZoomMap"/>
100 </Anchors>
101 <Scripts>
102 <OnLoad>
103 ZoomMap_OnLoad();
104 </OnLoad>
105 <OnEvent>
106 ZoomMap_OnEvent();
107 </OnEvent>
108 <OnUpdate>
109 ZoomMap_OnUpdate(arg1);
110 </OnUpdate>
111 </Scripts>
112 </Model>
113 <Frame name="ZoomMapBackdrop">
114 <Size>
115 <AbsDimension x="592" y="592"/>
116 </Size>
117 <Anchors>
118 <Anchor point="CENTER" relativeTo="ZoomMapCluster">
119 <Offset>
120 <AbsDimension x="0" y="0"/>
121 </Offset>
122 </Anchor>
123 </Anchors>
124  
125 <Frames>
126 <Button name="ZoomMapZoomIn">
127 <Size>
128 <AbsDimension x="32" y="32"/>
129 </Size>
130 <Anchors>
131 <Anchor point="CENTER">
132 <Offset>
133 <AbsDimension x="245" y="-140"/>
134 </Offset>
135 </Anchor>
136 </Anchors>
137 <Scripts>
138 <OnClick>
139 ZoomMap_ZoomInClick();
140 </OnClick>
141 <OnEnter>
142 if ( GetCVar("UberTooltips") == "1" ) then
143 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
144 GameTooltip:SetText(ZOOM_IN);
145 end
146 </OnEnter>
147 <OnLeave>
148 GameTooltip:Hide();
149 </OnLeave>
150 </Scripts>
151 <NormalTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Up"/>
152 <PushedTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Down"/>
153 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomInButton-Disabled"/>
154 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
155 </Button>
156 <Button name="ZoomMapZoomOut">
157 <Size>
158 <AbsDimension x="32" y="32"/>
159 </Size>
160 <Anchors>
161 <Anchor point="CENTER">
162 <Offset>
163 <AbsDimension x="210" y="-180"/>
164 </Offset>
165 </Anchor>
166 </Anchors>
167 <Scripts>
168 <OnClick>
169 ZoomMap_ZoomOutClick();
170 </OnClick>
171 <OnEnter>
172 if ( GetCVar("UberTooltips") == "1" ) then
173 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
174 GameTooltip:SetText(ZOOM_OUT);
175 end
176 </OnEnter>
177 <OnLeave>
178 GameTooltip:Hide();
179 </OnLeave>
180 </Scripts>
181 <NormalTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Up"/>
182 <PushedTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Down"/>
183 <DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
184 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
185 </Button>
186 </Frames>
187 </Frame>
188 </Frames>
189 <Scripts>
190 <OnMouseUp>
191 ZoomMap_OnClick();
192 </OnMouseUp>
193 </Scripts>
194 </Minimap>
195 </Frames>
196 <Scripts>
197 <OnLoad>
198 ZoomMap.timer = 0;
199 ZoomMap_Update();
200 this:RegisterEvent("MINIMAP_ZONE_CHANGED");
201 </OnLoad>
202 <OnEvent>
203 ZoomMap_Update();
204 </OnEvent>
205 </Scripts>
206 </Frame>
207 </Ui>