vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 function AtlasLoot_SetMenu(setname)
2 if(setname=="AQ40SET") then
3 getglobal("AtlasLootItemsFrame_Druid"):Show();
4 getglobal("AtlasLootItemsFrame_Druid").lootpage="AQ40Druid";
5 getglobal("AtlasLootItemsFrame_Hunter"):Show();
6 getglobal("AtlasLootItemsFrame_Hunter").lootpage="AQ40Hunter";
7 getglobal("AtlasLootItemsFrame_Mage"):Show();
8 getglobal("AtlasLootItemsFrame_Mage").lootpage="AQ40Mage";
9 getglobal("AtlasLootItemsFrame_Paladin"):Show();
10 getglobal("AtlasLootItemsFrame_Paladin").lootpage="AQ40Paladin";
11 getglobal("AtlasLootItemsFrame_Priest"):Show();
12 getglobal("AtlasLootItemsFrame_Priest").lootpage="AQ40Priest";
13 getglobal("AtlasLootItemsFrame_Rogue"):Show();
14 getglobal("AtlasLootItemsFrame_Rogue").lootpage="AQ40Rogue";
15 getglobal("AtlasLootItemsFrame_Shaman"):Show();
16 getglobal("AtlasLootItemsFrame_Shaman").lootpage="AQ40Shaman";
17 getglobal("AtlasLootItemsFrame_Warlock"):Show();
18 getglobal("AtlasLootItemsFrame_Warlock").lootpage="AQ40Warlock";
19 getglobal("AtlasLootItemsFrame_Warrior"):Show();
20 getglobal("AtlasLootItemsFrame_Warrior").lootpage="AQ40Warrior";
21 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
22 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
23 getglobal("AtlasLootItemsFrame_PREV"):Hide();
24 getglobal("AtlasLootItemsFrame_BACK"):Hide();
25 getglobal("AtlasLootItemsFrame_BACK").setname="AQ40SET";
26 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_AQ40_SETS);
27 AtlasLootItemsFrame:Show();
28 elseif(setname=="AQ20SET") then
29 getglobal("AtlasLootItemsFrame_Druid"):Show();
30 getglobal("AtlasLootItemsFrame_Druid").lootpage="AQ20Druid";
31 getglobal("AtlasLootItemsFrame_Hunter"):Show();
32 getglobal("AtlasLootItemsFrame_Hunter").lootpage="AQ20Hunter";
33 getglobal("AtlasLootItemsFrame_Mage"):Show();
34 getglobal("AtlasLootItemsFrame_Mage").lootpage="AQ20Mage";
35 getglobal("AtlasLootItemsFrame_Paladin"):Show();
36 getglobal("AtlasLootItemsFrame_Paladin").lootpage="AQ20Paladin";
37 getglobal("AtlasLootItemsFrame_Priest"):Show();
38 getglobal("AtlasLootItemsFrame_Priest").lootpage="AQ20Priest";
39 getglobal("AtlasLootItemsFrame_Rogue"):Show();
40 getglobal("AtlasLootItemsFrame_Rogue").lootpage="AQ20Rogue";
41 getglobal("AtlasLootItemsFrame_Shaman"):Show();
42 getglobal("AtlasLootItemsFrame_Shaman").lootpage="AQ20Shaman";
43 getglobal("AtlasLootItemsFrame_Warlock"):Show();
44 getglobal("AtlasLootItemsFrame_Warlock").lootpage="AQ20Warlock";
45 getglobal("AtlasLootItemsFrame_Warrior"):Show();
46 getglobal("AtlasLootItemsFrame_Warrior").lootpage="AQ20Warrior";
47 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
48 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
49 getglobal("AtlasLootItemsFrame_PREV"):Hide();
50 getglobal("AtlasLootItemsFrame_BACK"):Hide();
51 getglobal("AtlasLootItemsFrame_BACK").setname="AQ20SET";
52 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_AQ20_SETS);
53 AtlasLootItemsFrame:Show();
54 elseif(setname=="ZGSET") then
55 getglobal("AtlasLootItemsFrame_Druid"):Show();
56 getglobal("AtlasLootItemsFrame_Druid").lootpage="ZGDruid";
57 getglobal("AtlasLootItemsFrame_Hunter"):Show();
58 getglobal("AtlasLootItemsFrame_Hunter").lootpage="ZGHunter";
59 getglobal("AtlasLootItemsFrame_Mage"):Show();
60 getglobal("AtlasLootItemsFrame_Mage").lootpage="ZGMage";
61 getglobal("AtlasLootItemsFrame_Paladin"):Show();
62 getglobal("AtlasLootItemsFrame_Paladin").lootpage="ZGPaladin";
63 getglobal("AtlasLootItemsFrame_Priest"):Show();
64 getglobal("AtlasLootItemsFrame_Priest").lootpage="ZGPriest";
65 getglobal("AtlasLootItemsFrame_Rogue"):Show();
66 getglobal("AtlasLootItemsFrame_Rogue").lootpage="ZGRogue";
67 getglobal("AtlasLootItemsFrame_Shaman"):Show();
68 getglobal("AtlasLootItemsFrame_Shaman").lootpage="ZGShaman";
69 getglobal("AtlasLootItemsFrame_Warlock"):Show();
70 getglobal("AtlasLootItemsFrame_Warlock").lootpage="ZGWarlock";
71 getglobal("AtlasLootItemsFrame_Warrior"):Show();
72 getglobal("AtlasLootItemsFrame_Warrior").lootpage="ZGWarrior";
73 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
74 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
75 getglobal("AtlasLootItemsFrame_PREV"):Hide();
76 getglobal("AtlasLootItemsFrame_BACK"):Hide();
77 getglobal("AtlasLootItemsFrame_BACK").setname="ZGSET";
78 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_ZG_SETS);
79 AtlasLootItemsFrame:Show();
80 elseif(setname=="T3SET") then
81 getglobal("AtlasLootItemsFrame_Druid"):Show();
82 getglobal("AtlasLootItemsFrame_Druid").lootpage="T3Druid";
83 getglobal("AtlasLootItemsFrame_Hunter"):Show();
84 getglobal("AtlasLootItemsFrame_Hunter").lootpage="T3Hunter";
85 getglobal("AtlasLootItemsFrame_Mage"):Show();
86 getglobal("AtlasLootItemsFrame_Mage").lootpage="T3Mage";
87 getglobal("AtlasLootItemsFrame_Paladin"):Show();
88 getglobal("AtlasLootItemsFrame_Paladin").lootpage="T3Paladin";
89 getglobal("AtlasLootItemsFrame_Priest"):Show();
90 getglobal("AtlasLootItemsFrame_Priest").lootpage="T3Priest";
91 getglobal("AtlasLootItemsFrame_Rogue"):Show();
92 getglobal("AtlasLootItemsFrame_Rogue").lootpage="T3Rogue";
93 getglobal("AtlasLootItemsFrame_Shaman"):Show();
94 getglobal("AtlasLootItemsFrame_Shaman").lootpage="T3Shaman";
95 getglobal("AtlasLootItemsFrame_Warlock"):Show();
96 getglobal("AtlasLootItemsFrame_Warlock").lootpage="T3Warlock";
97 getglobal("AtlasLootItemsFrame_Warrior"):Show();
98 getglobal("AtlasLootItemsFrame_Warrior").lootpage="T3Warrior";
99 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
100 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
101 getglobal("AtlasLootItemsFrame_PREV"):Hide();
102 getglobal("AtlasLootItemsFrame_BACK"):Hide();
103 getglobal("AtlasLootItemsFrame_BACK").setname="T3SET";
104 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_TIER3_SETS);
105 AtlasLootItemsFrame:Show();
106 elseif(setname=="T2SET") then
107 getglobal("AtlasLootItemsFrame_Druid"):Show();
108 getglobal("AtlasLootItemsFrame_Druid").lootpage="T2Druid";
109 getglobal("AtlasLootItemsFrame_Hunter"):Show();
110 getglobal("AtlasLootItemsFrame_Hunter").lootpage="T2Hunter";
111 getglobal("AtlasLootItemsFrame_Mage"):Show();
112 getglobal("AtlasLootItemsFrame_Mage").lootpage="T2Mage";
113 getglobal("AtlasLootItemsFrame_Paladin"):Show();
114 getglobal("AtlasLootItemsFrame_Paladin").lootpage="T2Paladin";
115 getglobal("AtlasLootItemsFrame_Priest"):Show();
116 getglobal("AtlasLootItemsFrame_Priest").lootpage="T2Priest";
117 getglobal("AtlasLootItemsFrame_Rogue"):Show();
118 getglobal("AtlasLootItemsFrame_Rogue").lootpage="T2Rogue";
119 getglobal("AtlasLootItemsFrame_Shaman"):Show();
120 getglobal("AtlasLootItemsFrame_Shaman").lootpage="T2Shaman";
121 getglobal("AtlasLootItemsFrame_Warlock"):Show();
122 getglobal("AtlasLootItemsFrame_Warlock").lootpage="T2Warlock";
123 getglobal("AtlasLootItemsFrame_Warrior"):Show();
124 getglobal("AtlasLootItemsFrame_Warrior").lootpage="T2Warrior";
125 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
126 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
127 getglobal("AtlasLootItemsFrame_PREV"):Hide();
128 getglobal("AtlasLootItemsFrame_BACK"):Hide();
129 getglobal("AtlasLootItemsFrame_BACK").setname="T2SET";
130 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_TIER2_SETS);
131 AtlasLootItemsFrame:Show();
132 elseif(setname=="T1SET") then
133 getglobal("AtlasLootItemsFrame_Druid"):Show();
134 getglobal("AtlasLootItemsFrame_Druid").lootpage="T1Druid";
135 getglobal("AtlasLootItemsFrame_Hunter"):Show();
136 getglobal("AtlasLootItemsFrame_Hunter").lootpage="T1Hunter";
137 getglobal("AtlasLootItemsFrame_Mage"):Show();
138 getglobal("AtlasLootItemsFrame_Mage").lootpage="T1Mage";
139 getglobal("AtlasLootItemsFrame_Paladin"):Show();
140 getglobal("AtlasLootItemsFrame_Paladin").lootpage="T1Paladin";
141 getglobal("AtlasLootItemsFrame_Priest"):Show();
142 getglobal("AtlasLootItemsFrame_Priest").lootpage="T1Priest";
143 getglobal("AtlasLootItemsFrame_Rogue"):Show();
144 getglobal("AtlasLootItemsFrame_Rogue").lootpage="T1Rogue";
145 getglobal("AtlasLootItemsFrame_Shaman"):Show();
146 getglobal("AtlasLootItemsFrame_Shaman").lootpage="T1Shaman";
147 getglobal("AtlasLootItemsFrame_Warlock"):Show();
148 getglobal("AtlasLootItemsFrame_Warlock").lootpage="T1Warlock";
149 getglobal("AtlasLootItemsFrame_Warrior"):Show();
150 getglobal("AtlasLootItemsFrame_Warrior").lootpage="T1Warrior";
151 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
152 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
153 getglobal("AtlasLootItemsFrame_PREV"):Hide();
154 getglobal("AtlasLootItemsFrame_BACK"):Hide();
155 getglobal("AtlasLootItemsFrame_BACK").setname="T1SET";
156 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_TIER1_SETS);
157 AtlasLootItemsFrame:Show();
158 elseif(setname=="T0SET") then
159 getglobal("AtlasLootItemsFrame_Druid"):Show();
160 getglobal("AtlasLootItemsFrame_Druid").lootpage="T0Druid";
161 getglobal("AtlasLootItemsFrame_Hunter"):Show();
162 getglobal("AtlasLootItemsFrame_Hunter").lootpage="T0Hunter";
163 getglobal("AtlasLootItemsFrame_Mage"):Show();
164 getglobal("AtlasLootItemsFrame_Mage").lootpage="T0Mage";
165 getglobal("AtlasLootItemsFrame_Paladin"):Show();
166 getglobal("AtlasLootItemsFrame_Paladin").lootpage="T0Paladin";
167 getglobal("AtlasLootItemsFrame_Priest"):Show();
168 getglobal("AtlasLootItemsFrame_Priest").lootpage="T0Priest";
169 getglobal("AtlasLootItemsFrame_Rogue"):Show();
170 getglobal("AtlasLootItemsFrame_Rogue").lootpage="T0Rogue";
171 getglobal("AtlasLootItemsFrame_Shaman"):Show();
172 getglobal("AtlasLootItemsFrame_Shaman").lootpage="T0Shaman";
173 getglobal("AtlasLootItemsFrame_Warlock"):Show();
174 getglobal("AtlasLootItemsFrame_Warlock").lootpage="T0Warlock";
175 getglobal("AtlasLootItemsFrame_Warrior"):Show();
176 getglobal("AtlasLootItemsFrame_Warrior").lootpage="T0Warrior";
177 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
178 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
179 getglobal("AtlasLootItemsFrame_PREV"):Hide();
180 getglobal("AtlasLootItemsFrame_BACK"):Hide();
181 getglobal("AtlasLootItemsFrame_BACK").setname="T0SET";
182 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_TIER0_SETS);
183 AtlasLootItemsFrame:Show();
184 elseif(setname=="PVPSET") then
185 getglobal("AtlasLootItemsFrame_Druid"):Show();
186 getglobal("AtlasLootItemsFrame_Druid").lootpage="PVPDruid";
187 getglobal("AtlasLootItemsFrame_Hunter"):Show();
188 getglobal("AtlasLootItemsFrame_Hunter").lootpage="PVPHunter";
189 getglobal("AtlasLootItemsFrame_Mage"):Show();
190 getglobal("AtlasLootItemsFrame_Mage").lootpage="PVPMage";
191 getglobal("AtlasLootItemsFrame_Paladin"):Show();
192 getglobal("AtlasLootItemsFrame_Paladin").lootpage="PVPPaladin";
193 getglobal("AtlasLootItemsFrame_Priest"):Show();
194 getglobal("AtlasLootItemsFrame_Priest").lootpage="PVPPriest";
195 getglobal("AtlasLootItemsFrame_Rogue"):Show();
196 getglobal("AtlasLootItemsFrame_Rogue").lootpage="PVPRogue";
197 getglobal("AtlasLootItemsFrame_Shaman"):Show();
198 getglobal("AtlasLootItemsFrame_Shaman").lootpage="PVPShaman";
199 getglobal("AtlasLootItemsFrame_Warlock"):Show();
200 getglobal("AtlasLootItemsFrame_Warlock").lootpage="PVPWarlock";
201 getglobal("AtlasLootItemsFrame_Warrior"):Show();
202 getglobal("AtlasLootItemsFrame_Warrior").lootpage="PVPWarrior";
203 getglobal("AtlasLootItemsFrame_Weapons"):Show();
204 getglobal("AtlasLootItemsFrame_Weapons").lootpage="PVPWeapons1";
205 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
206 getglobal("AtlasLootItemsFrame_PREV"):Hide();
207 getglobal("AtlasLootItemsFrame_BACK"):Hide();
208 getglobal("AtlasLootItemsFrame_BACK").setname="PVPSET";
209 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_PVP_SET_PIECES_HEADER);
210 AtlasLootItemsFrame:Show();
211 end
212 for i=1, 30, 1 do
213 getglobal("AtlasLootItem_"..i):Hide();
214 end
215 end
216  
217 --------------------------------------------------------------------------------
218 -- Deal with items sets
219 --------------------------------------------------------------------------------
220 function AtlasLoot_Set(setname)
221 if(setname~=nil) then
222 AtlasLoot_SetMenu(setname);
223 elseif(this:GetName()=="AtlasLootItemsFrame_BACK") then
224 AtlasLoot_SetMenu(this.setname);
225 elseif((this:GetName()=="AtlasLootItemsFrame_Weapons" and AtlasLoot_BossName:GetText()=="|cffFFFFFF"..ATLASLOOT_PVP_SET_PIECES_HEADER) or (this:GetName()=="AtlasLootItemsFrame_PREV" and AtlasLoot_BossName:GetText()==getglobal("AtlasLootItemsFrame_Weapons"):GetText())) then
226 getglobal("AtlasLootItemsFrame_Druid"):Hide();
227 getglobal("AtlasLootItemsFrame_Hunter"):Hide();
228 getglobal("AtlasLootItemsFrame_Mage"):Hide();
229 getglobal("AtlasLootItemsFrame_Paladin"):Hide();
230 getglobal("AtlasLootItemsFrame_Priest"):Hide();
231 getglobal("AtlasLootItemsFrame_Rogue"):Hide();
232 getglobal("AtlasLootItemsFrame_Shaman"):Hide();
233 getglobal("AtlasLootItemsFrame_Warlock"):Hide();
234 getglobal("AtlasLootItemsFrame_Warrior"):Hide();
235 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
236 getglobal("AtlasLootItemsFrame_PREV"):Hide();
237 AtlasLoot_ShowItemsFrame(this.lootpage, AtlasLootSetItems, getglobal("AtlasLootItemsFrame_Weapons"):GetText(), AtlasLoot_AnchorFrame);
238 getglobal("AtlasLootItemsFrame_BACK"):Show();
239 getglobal("AtlasLootItemsFrame_NEXT"):Show();
240 getglobal("AtlasLootItemsFrame_NEXT").lootpage="PVPWeapons2";
241 elseif(this:GetName()=="AtlasLootItemsFrame_NEXT" and AtlasLoot_BossName:GetText()==getglobal("AtlasLootItemsFrame_Weapons"):GetText()) then
242 getglobal("AtlasLootItemsFrame_Druid"):Hide();
243 getglobal("AtlasLootItemsFrame_Hunter"):Hide();
244 getglobal("AtlasLootItemsFrame_Mage"):Hide();
245 getglobal("AtlasLootItemsFrame_Paladin"):Hide();
246 getglobal("AtlasLootItemsFrame_Priest"):Hide();
247 getglobal("AtlasLootItemsFrame_Rogue"):Hide();
248 getglobal("AtlasLootItemsFrame_Shaman"):Hide();
249 getglobal("AtlasLootItemsFrame_Warlock"):Hide();
250 getglobal("AtlasLootItemsFrame_Warrior"):Hide();
251 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
252 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
253 AtlasLoot_ShowItemsFrame(this.lootpage, AtlasLootSetItems, getglobal("AtlasLootItemsFrame_Weapons"):GetText(), AtlasLoot_AnchorFrame);
254 getglobal("AtlasLootItemsFrame_BACK"):Show();
255 getglobal("AtlasLootItemsFrame_PREV"):Show();
256 getglobal("AtlasLootItemsFrame_PREV").lootpage="PVPWeapons1";
257 else
258 getglobal("AtlasLootItemsFrame_Druid"):Hide();
259 getglobal("AtlasLootItemsFrame_Hunter"):Hide();
260 getglobal("AtlasLootItemsFrame_Mage"):Hide();
261 getglobal("AtlasLootItemsFrame_Paladin"):Hide();
262 getglobal("AtlasLootItemsFrame_Priest"):Hide();
263 getglobal("AtlasLootItemsFrame_Rogue"):Hide();
264 getglobal("AtlasLootItemsFrame_Shaman"):Hide();
265 getglobal("AtlasLootItemsFrame_Warlock"):Hide();
266 getglobal("AtlasLootItemsFrame_Warrior"):Hide();
267 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
268 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
269 getglobal("AtlasLootItemsFrame_PREV"):Hide();
270 AtlasLoot_ShowItemsFrame(this.lootpage, AtlasLootSetItems, this:GetText(), AtlasLoot_AnchorFrame);
271 getglobal("AtlasLootItemsFrame_BACK"):Show();
272 end
273 end
274  
275 function AtlasLootSetButton_OnClick(setid)
276 getglobal("AtlasLoot_Tier0Button"):Hide();
277 getglobal("AtlasLoot_Tier1Button"):Hide();
278 getglobal("AtlasLoot_Tier2Button"):Hide();
279 getglobal("AtlasLoot_Tier3Button"):Hide();
280 getglobal("AtlasLoot_ZGButton"):Hide();
281 getglobal("AtlasLoot_AQ20Button"):Hide();
282 getglobal("AtlasLoot_AQ40Button"):Hide();
283 getglobal("AtlasLoot_PVPButton"):Hide();
284 AtlasLoot_ShowItemsFrame(setid, AtlasLootItems, "Sets");
285 end
286  
287 function AtlasLootSetMenu()
288 for i = 1, 30, 1 do
289 getglobal("AtlasLootItem_"..i):Hide();
290 end
291 getglobal("AtlasLootItemsFrame_BACK"):Hide();
292 getglobal("AtlasLootItemsFrame_Druid"):Hide();
293 getglobal("AtlasLootItemsFrame_Hunter"):Hide();
294 getglobal("AtlasLootItemsFrame_Mage"):Hide();
295 getglobal("AtlasLootItemsFrame_Paladin"):Hide();
296 getglobal("AtlasLootItemsFrame_Priest"):Hide();
297 getglobal("AtlasLootItemsFrame_Rogue"):Hide();
298 getglobal("AtlasLootItemsFrame_Shaman"):Hide();
299 getglobal("AtlasLootItemsFrame_Warlock"):Hide();
300 getglobal("AtlasLootItemsFrame_Warrior"):Hide();
301 getglobal("AtlasLootItemsFrame_Weapons"):Hide();
302 getglobal("AtlasLootItemsFrame_NEXT"):Hide();
303 getglobal("AtlasLootItemsFrame_PREV"):Hide();
304 getglobal("AtlasLoot_Tier0Button"):Show();
305 getglobal("AtlasLoot_Tier1Button"):Show();
306 getglobal("AtlasLoot_Tier2Button"):Show();
307 getglobal("AtlasLoot_Tier3Button"):Show();
308 getglobal("AtlasLoot_ZGButton"):Show();
309 getglobal("AtlasLoot_AQ20Button"):Show();
310 getglobal("AtlasLoot_AQ40Button"):Show();
311 getglobal("AtlasLoot_PVPButton"):Show();
312 AtlasLoot_BossName:SetText("|cffFFFFFF"..ATLASLOOT_PANEL_BUTTON_SETS);
313 AtlasLootItemsFrame:Show();
314 end