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="localization.lua"/>
4 <Script file="UI_localization.lua"/>
5 <Script file="GatherRegionData.lua"/>
6 <Script file="GatherIcons.lua"/>
7 <Script file="Gatherer.lua"/>
8 <Script file="GatherBase.lua"/>
9 <Script file="GatherBroadcast.lua"/>
10  
11 <Frame name="Gatherer" parent="UIParent">
12 <Size>
13 <AbsDimension x="0" y="0"/>
14 </Size>
15 <Scripts>
16 <OnLoad>
17 Gatherer_OnLoad();
18 </OnLoad>
19 <OnEvent>
20 Gatherer_OnEvent(event);
21 </OnEvent>
22 <OnUpdate>
23 Gatherer_TimeCheck(arg1);
24 </OnUpdate>
25 </Scripts>
26 </Frame>
27 <Button name="GatherNoteTemplate" hidden="true" virtual="true">
28 <Size>
29 <AbsDimension x="12" y="12"/>
30 </Size>
31 <Anchors>
32 <Anchor point="CENTER" relativeTo="MinimapBackdrop" relativePoint="TOPLEFT">
33 <Offset>
34 <AbsDimension x="-51" y="60"/>
35 </Offset>
36 </Anchor>
37 </Anchors>
38 <Scripts>
39 <OnEnter>
40 if ( not (Gatherer_Settings and Gatherer_Settings.HideMiniNotes and Gatherer_Settings.HideMiniNotes == 1) ) then
41 GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
42 local itemIDtable = Gatherer_MakeName(this:GetID())
43 local id;
44 GameTooltip:SetText(itemIDtable[1].name, 1.0, 0.82, 0.0, 1,1);
45 GameTooltip:AddLine("Count: "..itemIDtable[1].count, 0.82, 1.0, 0.0);
46 for id in itemIDtable do
47 if ( id ~= 1 ) then
48 GameTooltip:AddLine(itemIDtable[id].name, 1.0, 0.82, 0.0, 1,1);
49 GameTooltip:AddLine("Count: "..itemIDtable[id].count, 0.82, 1.0, 0.0);
50 end
51 end
52 GameTooltip:AddLine(itemIDtable[1].dist.." units ("..(itemIDtable[1].dist * 4).." secs)", 0.0, 0.82, 1.0);
53 GameTooltip:Show();
54 end
55 </OnEnter>
56 <OnLeave>
57 GameTooltip:Hide();
58 </OnLeave>
59 <OnMouseUp>
60 Gatherer_OnClick();
61 </OnMouseUp>
62 </Scripts>
63 <NormalTexture name="$parentTexture" file="Interface\AddOns\Gatherer\Original\Test"/>
64 </Button>
65  
66 <Button name="GatherNote1" inherits="GatherNoteTemplate" id="1" hidden="false" parent="Minimap">
67 <Scripts>
68 <OnUpdate>
69 Gatherer_OnUpdate(arg1);
70 </OnUpdate>
71 <OnLoad>
72 this:RegisterEvent("MINIMAP_UPDATE_ZOOM");
73 </OnLoad>
74 <OnEvent>
75 GatherMap_InCity = isMinimapInCity();
76 </OnEvent>
77 </Scripts>
78 </Button>
79  
80 <Button name="GatherNote2" inherits="GatherNoteTemplate" id="2" hidden="false" parent="Minimap"/>
81 <Button name="GatherNote3" inherits="GatherNoteTemplate" id="3" hidden="false" parent="Minimap"/>
82 <Button name="GatherNote4" inherits="GatherNoteTemplate" id="4" hidden="false" parent="Minimap"/>
83 <Button name="GatherNote5" inherits="GatherNoteTemplate" id="5" hidden="false" parent="Minimap"/>
84 <Button name="GatherNote6" inherits="GatherNoteTemplate" id="6" hidden="false" parent="Minimap"/>
85 <Button name="GatherNote7" inherits="GatherNoteTemplate" id="7" hidden="false" parent="Minimap"/>
86 <Button name="GatherNote8" inherits="GatherNoteTemplate" id="8" hidden="false" parent="Minimap"/>
87 <Button name="GatherNote9" inherits="GatherNoteTemplate" id="9" hidden="false" parent="Minimap"/>
88 <Button name="GatherNote10" inherits="GatherNoteTemplate" id="10" hidden="false" parent="Minimap"/>
89 <Button name="GatherNote11" inherits="GatherNoteTemplate" id="11" hidden="false" parent="Minimap"/>
90 <Button name="GatherNote12" inherits="GatherNoteTemplate" id="12" hidden="false" parent="Minimap"/>
91 <Button name="GatherNote13" inherits="GatherNoteTemplate" id="13" hidden="false" parent="Minimap"/>
92 <Button name="GatherNote14" inherits="GatherNoteTemplate" id="14" hidden="false" parent="Minimap"/>
93 <Button name="GatherNote15" inherits="GatherNoteTemplate" id="15" hidden="false" parent="Minimap"/>
94 <Button name="GatherNote16" inherits="GatherNoteTemplate" id="16" hidden="false" parent="Minimap"/>
95 <Button name="GatherNote17" inherits="GatherNoteTemplate" id="17" hidden="false" parent="Minimap"/>
96 <Button name="GatherNote18" inherits="GatherNoteTemplate" id="18" hidden="false" parent="Minimap"/>
97 <Button name="GatherNote19" inherits="GatherNoteTemplate" id="19" hidden="false" parent="Minimap"/>
98 <Button name="GatherNote20" inherits="GatherNoteTemplate" id="20" hidden="false" parent="Minimap"/>
99 <Button name="GatherNote21" inherits="GatherNoteTemplate" id="21" hidden="false" parent="Minimap"/>
100 <Button name="GatherNote22" inherits="GatherNoteTemplate" id="22" hidden="false" parent="Minimap"/>
101 <Button name="GatherNote23" inherits="GatherNoteTemplate" id="23" hidden="false" parent="Minimap"/>
102 <Button name="GatherNote24" inherits="GatherNoteTemplate" id="24" hidden="false" parent="Minimap"/>
103 <Button name="GatherNote25" inherits="GatherNoteTemplate" id="25" hidden="false" parent="Minimap"/>
104  
105 <Frame name="GathererMapOverlayTemplate" hidden="false" virtual="true">
106 <Anchors>
107 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
108 <AbsDimension x="0" y="0"/>
109 </Anchor>
110 </Anchors>
111 <Scripts>
112 <OnLoad>
113 this:SetWidth(WorldMapDetailFrame:GetWidth());
114 this:SetHeight(WorldMapDetailFrame:GetHeight());
115 this:SetFrameLevel(WorldMapPlayer:GetFrameLevel() + 1);
116 </OnLoad>
117 </Scripts>
118 </Frame>
119  
120 <Frame name="GathererMapOverlayFrame" inherits="GathererMapOverlayTemplate" parent="WorldMapDetailFrame" hidden="false" movable="false">
121 <Frames>
122 <Frame name="GathererMapOverlayFrame1" inherits="GathererMapOverlayTemplate" hidden="false"/>
123 <Frame name="GathererMapOverlayFrame2" inherits="GathererMapOverlayTemplate" hidden="false"/>
124 <Frame name="GathererMapOverlayFrame3" inherits="GathererMapOverlayTemplate" hidden="false"/>
125 <Frame name="GathererMapOverlayFrame4" inherits="GathererMapOverlayTemplate" hidden="false"/>
126 <Frame name="GathererMapOverlayFrame5" inherits="GathererMapOverlayTemplate" hidden="false"/>
127 <Frame name="GathererMapOverlayFrame6" inherits="GathererMapOverlayTemplate" hidden="false"/>
128 </Frames>
129 </Frame>
130  
131 <Button name="GatherMainTemplate" hidden="true" virtual="true">
132 <Size>
133 <AbsDimension x="12" y="12"/>
134 </Size>
135 <Anchors>
136 <Anchor point="CENTER"/>
137 </Anchors>
138 <Scripts>
139 <OnLoad>
140 this:SetFrameLevel(this:GetParent():GetFrameLevel() + 1);
141 this:RegisterForClicks("RightButtonUp");
142 this.continent = 0;
143 this.zoneIndex = 0;
144 this.localIndex = 0;
145 this.gatherName = "none";
146 </OnLoad>
147 <OnEnter>
148 local x, y = this:GetCenter();
149 local parentX, parentY = this:GetParent():GetCenter();
150 if ( x > parentX ) then
151 WorldMapTooltip:SetOwner(this, "ANCHOR_LEFT");
152 else
153 WorldMapTooltip:SetOwner(this, "ANCHOR_RIGHT");
154 end
155 if ( not IsAltKeyDown() ) then
156 WorldMapTooltip:SetText(this.toolTip);
157 else
158 local toolTipText, bonusInfo = Gatherer_GetMenuName(this.gatherName);
159 if (bonusInfo) then
160 toolTipText = format("%s\n%s", toolTipText, bonusInfo);
161 end
162 toolTipText = format("%s\nc:%d z:%d l:%d", toolTipText, this.continent, this.zoneIndex, this.localIndex);
163 WorldMapTooltip:SetText(toolTipText);
164 end
165 WorldMapTooltip:Show();
166 </OnEnter>
167 <OnLeave>
168 WorldMapTooltip:Hide();
169 </OnLeave>
170 <OnClick>
171 if (arg1 and arg1 == "RightButton" and IsAltKeyDown()) then
172 if (not GatherMainMapItem ) then GatherMainMapItem = {}; end
173 GatherMainMapItem.continent = this.continent;
174 GatherMainMapItem.zoneIndex = this.zoneIndex;
175 GatherMainMapItem.gatherName = this.gatherName;
176 GatherMainMapItem.localIndex = this.localIndex;
177 GatherMainMapItem.gatherType = this.gatherType;
178 GatherMainMapItem.gatherIcon = this.gatherIcon;
179 Gatherer_NodesEditFrame:Show();
180 end
181 </OnClick>
182 </Scripts>
183 <NormalTexture name="$parentTexture" file="Interface\AddOns\Gatherer\Original\Test"/>
184 </Button>
185  
186 <!-- Button to show/hide icons on world map -->
187 <Button name="Gatherer_WorldMapDisplay" inherits="UIPanelButtonTemplate" text="Show items" parent="WorldMapFrame" toplevel="true">
188 <Size>
189 <AbsDimension x="100" y="25"/>
190 </Size>
191 <Anchors>
192 <Anchor point="BOTTOMLEFT" relativeTo="WorldMapPositioningGuide" relativePoint="BOTTOMLEFT">
193 <Offset>
194 <AbsDimension x="10" y="5"/>
195 </Offset>
196 </Anchor>
197 </Anchors>
198 <Scripts>
199 <OnClick>
200 if ( GathererMapOverlayFrame:IsShown() and this:GetText() == "Hide Items" ) then
201 GathererMapOverlayFrame:Hide()
202 this:SetText("Show Items");
203 Gatherer_Settings.useMainmap = false;
204 else
205 this:SetText("Hide Items");
206 Gatherer_Settings.useMainmap = true;
207 GatherMain_Draw();
208 GathererMapOverlayFrame:Show()
209 end
210  
211 if (Gatherer_Settings.showWorldMapFilters and Gatherer_Settings.showWorldMapFilters == 1) then
212 if ( Gatherer_Settings.useMainmap ) then
213 GathererWD_DropDownFilters:Show();
214 else
215 GathererWD_DropDownFilters:Hide();
216 end
217 end
218 </OnClick>
219 <OnShow>
220 if ( this:GetParent().GetEffectiveScale ) then
221 this:SetScale(this:GetParent():GetEffectiveScale() - 0.2);
222 else
223 this:SetScale(this:GetParent():GetScale() - 0.2);
224 end
225 </OnShow>
226 </Scripts>
227 </Button>
228  
229 <Frame name="Gatherer_NodesEditFrame" topLevel="true" hidden="true" parent="WorldMapFrame">
230 <Size>
231 <AbsDimension x="400" y="160"/>
232 </Size>
233 <Anchors>
234 <Anchor point="CENTER">
235 <Offset>
236 <AbsDimension x="0" y="0"/>
237 </Offset>
238 </Anchor>
239 </Anchors>
240 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
241 <BackgroundInsets>
242 <AbsInset left="11" right="12" top="12" bottom="11"/>
243 </BackgroundInsets>
244 <TileSize>
245 <AbsValue val="32"/>
246 </TileSize>
247 <EdgeSize>
248 <AbsValue val="32"/>
249 </EdgeSize>
250 </Backdrop>
251 <Layers>
252 <Layer level="ARTWORK">
253 <Texture name="GathererUI_NodesEditHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
254 <Size>
255 <AbsDimension x="256" y="64"/>
256 </Size>
257 <Anchors>
258 <Anchor point="TOP">
259 <Offset>
260 <AbsDimension x="0" y="12"/>
261 </Offset>
262 </Anchor>
263 </Anchors>
264 </Texture>
265 <FontString inherits="GameFontNormal" text="Edit Node(s)">
266 <Anchors>
267 <Anchor point="TOP" relativeTo="GathererUI_NodesEditHeader">
268 <Offset>
269 <AbsDimension x="0" y="-14"/>
270 </Offset>
271 </Anchor>
272 </Anchors>
273 </FontString>
274 </Layer>
275 </Layers>
276 <Scripts>
277 <OnLoad>
278 this:SetBackdropColor(240,240,240)
279 this:RegisterEvent("WORLD_MAP_UPDATE");
280 this:SetScale(1);
281 </OnLoad>
282 <OnShow>
283 this:SetScale(1);
284 </OnShow>
285 <OnEvent>
286 this:Hide();
287 </OnEvent>
288 </Scripts>
289 <Frames>
290 <!-- Node modification (name, icon) -->
291 <EditBox name="Gatherer_WMNodeNameEditBox" letters="50" numeric="false" autoFocus="false" inherits="InputBoxTemplate">
292 <Size>
293 <AbsDimension x="270" y="16"/>
294 </Size>
295 <Anchors>
296 <Anchor point="TOPLEFT" relativeTo="Gatherer_NodesEditFrame" relativePoint="TOPLEFT">
297 <Offset>
298 <AbsDimension x="25" y="-30"/>
299 </Offset>
300 </Anchor>
301 </Anchors>
302 <Scripts>
303 <OnLoad>
304 </OnLoad>
305 <OnEnterPressed>
306 this:ClearFocus();
307 GatherMainMapItem.newGatherName = this:GetText();
308 if (GatherMainMapItem.newGatherName ~= "") then
309 GatherMainMapItem.oldGatherName = GatherMainMapItem.oldGatherName or GatherMainMapItem.gatherName;
310 GatherMainMapItem.gatherName = GatherMainMapItem.newGatherName;
311 else
312 GatherMainMapItem.newGatherName = nil;
313 GatherMainMapItem.gatherName = GatherMainMapItem.oldGatherName;
314 end
315 </OnEnterPressed>
316 <OnShow>
317 this:SetText(GatherMainMapItem.gatherName or "");
318 </OnShow>
319 </Scripts>
320 </EditBox>
321  
322 <Frame name="Gatherer_WMDropDownGType" inherits="UIDropDownMenuTemplate" id="10">
323 <Anchors>
324 <Anchor point="TOPLEFT" relativeTo="Gatherer_WMNodeNameEditBox" relativePoint="BOTTOMLEFT">
325 <Offset>
326 <AbsDimension x="-20" y="-5"/>
327 </Offset>
328 </Anchor>
329 </Anchors>
330 <Scripts>
331 <OnLoad>
332 UIDropDownMenu_SetWidth(100);
333 </OnLoad>
334 <OnShow>
335 UIDropDownMenu_ClearAll(this);
336 UIDropDownMenu_Initialize(this, Gatherer_WMDropDownGType_Initialize);
337 </OnShow>
338 </Scripts>
339 </Frame>
340  
341 <Frame name="Gatherer_WMDropDownIcons" inherits="UIDropDownMenuTemplate" id="11">
342 <Anchors>
343 <Anchor point="TOPLEFT" relativeTo="Gatherer_WMDropDownGType" relativePoint="TOPRIGHT">
344 <Offset>
345 <AbsDimension x="-5" y="0"/>
346 </Offset>
347 </Anchor>
348 </Anchors>
349 <Scripts>
350 <OnLoad>
351 UIDropDownMenu_SetWidth(100);
352 </OnLoad>
353 <OnShow>
354 UIDropDownMenu_ClearAll(this);
355 UIDropDownMenu_Initialize(this, Gatherer_WMDropDownIcons_Initialize);
356 </OnShow>
357 </Scripts>
358 </Frame>
359  
360 <!-- Scope selector -->
361 <Frame name="Gatherer_WMDropDownScope" inherits="UIDropDownMenuTemplate" id="12">
362 <Anchors>
363 <Anchor point="TOPLEFT" relativeTo="Gatherer_WMDropDownGType" relativePoint="BOTTOMLEFT">
364 <Offset>
365 <AbsDimension x="0" y="0"/>
366 </Offset>
367 </Anchor>
368 </Anchors>
369 <Scripts>
370 <OnLoad>
371 UIDropDownMenu_SetWidth(100);
372 </OnLoad>
373 <OnShow>
374 UIDropDownMenu_ClearAll(this);
375 UIDropDownMenu_Initialize(this, Gatherer_WMDropDownScope_Initialize);
376 </OnShow>
377 </Scripts>
378 </Frame>
379  
380 <!-- Control Buttons -->
381 <Button name="Gatherer_WMItemDialog_Bugged" parent="Gatherer_NodesEditFrame" hidden="false" text="Toggle Bugged" inherits="UIPanelButtonTemplate" toplevel="true">
382 <Size>
383 <AbsDimension x="100" y="25"/>
384 </Size>
385 <Anchors>
386 <Anchor point="BOTTOMLEFT" relativeTo="Gatherer_NodesEditFrame" relativePoint="BOTTOMLEFT">
387 <Offset>
388 <AbsDimension x="20" y="20"/>
389 </Offset>
390 </Anchor>
391 </Anchors>
392 <Scripts>
393 <OnLoad>
394 this:Show();
395 </OnLoad>
396 <OnClick>
397 Gatherer_ToggleBuggedItem();
398 Gatherer_NodesEditFrame:Hide();
399 </OnClick>
400 </Scripts>
401 </Button>
402  
403 <Button name="Gatherer_WMItemDialog_Delete" parent="Gatherer_NodesEditFrame" hidden="false" text="DELETE" inherits="UIPanelButtonTemplate" toplevel="true">
404 <Size>
405 <AbsDimension x="80" y="25"/>
406 </Size>
407 <Anchors>
408 <Anchor point="BOTTOMLEFT" relativeTo="Gatherer_WMItemDialog_Bugged" relativePoint="BOTTOMRIGHT">
409 <Offset>
410 <AbsDimension x="10" y="0"/>
411 </Offset>
412 </Anchor>
413 </Anchors>
414 <Scripts>
415 <OnLoad>
416 this:Show();
417 </OnLoad>
418 <OnClick>
419 Gatherer_DeleteItem();
420 Gatherer_NodesEditFrame:Hide()
421 GatherMainMapItem = {};
422 </OnClick>
423 </Scripts>
424 </Button>
425  
426 <Button name="Gatherer_WMItemDialog_Cancel" parent="Gatherer_NodesEditFrame" hidden="false" text="CANCEL" inherits="UIPanelButtonTemplate" toplevel="true">
427 <Size>
428 <AbsDimension x="80" y="25"/>
429 </Size>
430 <Anchors>
431 <Anchor point="BOTTOMRIGHT" relativeTo="Gatherer_NodesEditFrame" relativePoint="BOTTOMRIGHT">
432 <Offset>
433 <AbsDimension x="-20" y="20"/>
434 </Offset>
435 </Anchor>
436 </Anchors>
437 <Scripts>
438 <OnLoad>
439 this:Show();
440 </OnLoad>
441 <OnClick>
442 GatherMainMapItem.newGatherName = nil;
443 Gatherer_ToggleBuggedItem();
444 Gatherer_NodesEditFrame:Hide()
445 GatherMainMapItem = {};
446 </OnClick>
447 </Scripts>
448 </Button>
449  
450 <Button name="Gatherer_WMItemDialog_Modify" parent="Gatherer_NodesEditFrame" hidden="false" text="ACCEPT" inherits="UIPanelButtonTemplate" toplevel="true">
451 <Size>
452 <AbsDimension x="80" y="25"/>
453 </Size>
454 <Anchors>
455 <Anchor point="BOTTOMRIGHT" relativeTo="Gatherer_WMItemDialog_Cancel" relativePoint="BOTTOMLEFT">
456 <Offset>
457 <AbsDimension x="-10" y="0"/>
458 </Offset>
459 </Anchor>
460 </Anchors>
461 <Scripts>
462 <OnLoad>
463 this:Show();
464 </OnLoad>
465 <OnClick>
466 Gatherer_ModifyItem();
467 Gatherer_NodesEditFrame:Hide()
468 GatherMainMapItem = {};
469 </OnClick>
470 </Scripts>
471 </Button>
472  
473 </Frames>
474 </Frame>
475 </Ui>