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="ISync_Filters.lua"/>
4  
5 <Frame name="ISync_FiltersFrame" inherits="ISyncFrame_MainTemplate" hidden="true" parent="ISync_MainFrame">
6 <Size>
7 <AbsDimension x="360" y="495"/>
8 </Size>
9 <Anchors>
10 <Anchor point="TOPLEFT" relativeTo="ISync_MainFrame" relativePoint="TOPRIGHT">
11 <Offset>
12 <AbsDimension x="32" y="0"/>
13 </Offset>
14 </Anchor>
15 </Anchors>
16 <Frames>
17 <Frame name="ISync_Filters_FilterRarityColor" inherits="OptionFrameBoxTemplate">
18 <Size>
19 <AbsDimension x="335" y="135"/>
20 </Size>
21 <Anchors>
22 <Anchor point="TOPLEFT" relativeTo="ISync_FiltersFrame" relativePoint="BOTTOMLEFT">
23 <Offset>
24 <AbsDimension x="13" y="465"/>
25 </Offset>
26 </Anchor>
27 </Anchors>
28 <Layers>
29 <Layer level="BACKGROUND">
30 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT1">
31 <Anchors>
32 <Anchor point="TOPLEFT">
33 <Offset>
34 <AbsDimension x="30" y="-10"/>
35 </Offset>
36 </Anchor>
37 </Anchors>
38 </FontString>
39 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT2">
40 <Anchors>
41 <Anchor point="TOPLEFT">
42 <Offset>
43 <AbsDimension x="30" y="-30"/>
44 </Offset>
45 </Anchor>
46 </Anchors>
47 </FontString>
48 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT3">
49 <Anchors>
50 <Anchor point="TOPLEFT">
51 <Offset>
52 <AbsDimension x="30" y="-50"/>
53 </Offset>
54 </Anchor>
55 </Anchors>
56 </FontString>
57 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT4">
58 <Anchors>
59 <Anchor point="TOPLEFT">
60 <Offset>
61 <AbsDimension x="30" y="-70"/>
62 </Offset>
63 </Anchor>
64 </Anchors>
65 </FontString>
66  
67 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT5">
68 <Anchors>
69 <Anchor point="TOPLEFT">
70 <Offset>
71 <AbsDimension x="30" y="-90"/>
72 </Offset>
73 </Anchor>
74 </Anchors>
75 </FontString>
76 <FontString inherits="GameFontNormal" text="ISYNC_FILTER_SELECT6">
77 <Anchors>
78 <Anchor point="TOPLEFT">
79 <Offset>
80 <AbsDimension x="30" y="-110"/>
81 </Offset>
82 </Anchor>
83 </Anchors>
84 </FontString>
85 </Layer>
86 </Layers>
87  
88 <Frames>
89 <CheckButton name="ISync_Filters_RarityLayoutCheckButton1" inherits="OptionsCheckButtonTemplate">
90 <Size>
91 <AbsDimension x="26" y="26"/>
92 </Size>
93 <Anchors>
94 <Anchor point="TOPLEFT">
95 <Offset>
96 <AbsDimension x="5" y="-5"/>
97 </Offset>
98 </Anchor>
99 </Anchors>
100 <Scripts>
101 <OnClick>
102 if (this:GetChecked()) then
103 PlaySound("igMainMenuOptionCheckBoxOn");
104 ISync:SetVar({"FILTERS",0}, 1, "TRUE");
105 else
106 PlaySound("igMainMenuOptionCheckBoxOff");
107 ISync:SetVar({"FILTERS",0}, 0, "TRUE");
108 end
109 </OnClick>
110 </Scripts>
111 </CheckButton>
112 <CheckButton name="ISync_Filters_RarityLayoutCheckButton2" inherits="OptionsCheckButtonTemplate">
113 <Size>
114 <AbsDimension x="26" y="26"/>
115 </Size>
116 <Anchors>
117 <Anchor point="TOP" relativeTo="ISync_Filters_RarityLayoutCheckButton1" relativePoint="BOTTOM">
118 <Offset>
119 <AbsDimension x="0" y="6"/>
120 </Offset>
121 </Anchor>
122 </Anchors>
123 <Scripts>
124 <OnClick>
125 if (this:GetChecked()) then
126 PlaySound("igMainMenuOptionCheckBoxOn");
127 ISync:SetVar({"FILTERS",1}, 1, "TRUE");
128 else
129 PlaySound("igMainMenuOptionCheckBoxOff");
130 ISync:SetVar({"FILTERS",1}, 0, "TRUE");
131 end
132 </OnClick>
133 </Scripts>
134 </CheckButton>
135  
136 <CheckButton name="ISync_Filters_RarityLayoutCheckButton3" inherits="OptionsCheckButtonTemplate">
137 <Size>
138 <AbsDimension x="26" y="26"/>
139 </Size>
140 <Anchors>
141 <Anchor point="TOP" relativeTo="ISync_Filters_RarityLayoutCheckButton2" relativePoint="BOTTOM">
142 <Offset>
143 <AbsDimension x="0" y="6"/>
144 </Offset>
145 </Anchor>
146 </Anchors>
147 <Scripts>
148 <OnClick>
149 if (this:GetChecked()) then
150 PlaySound("igMainMenuOptionCheckBoxOn");
151 ISync:SetVar({"FILTERS",2}, 1, "TRUE");
152 else
153 PlaySound("igMainMenuOptionCheckBoxOff");
154 ISync:SetVar({"FILTERS",2}, 0, "TRUE");
155 end
156 </OnClick>
157 </Scripts>
158 </CheckButton>
159 <CheckButton name="ISync_Filters_RarityLayoutCheckButton4" inherits="OptionsCheckButtonTemplate">
160 <Size>
161 <AbsDimension x="26" y="26"/>
162 </Size>
163 <Anchors>
164 <Anchor point="TOP" relativeTo="ISync_Filters_RarityLayoutCheckButton3" relativePoint="BOTTOM">
165 <Offset>
166 <AbsDimension x="0" y="6"/>
167 </Offset>
168 </Anchor>
169 </Anchors>
170 <Scripts>
171 <OnClick>
172 if (this:GetChecked()) then
173 PlaySound("igMainMenuOptionCheckBoxOn");
174 ISync:SetVar({"FILTERS",3}, 1, "TRUE");
175 else
176 PlaySound("igMainMenuOptionCheckBoxOff");
177 ISync:SetVar({"FILTERS",3}, 0, "TRUE");
178 end
179 </OnClick>
180 </Scripts>
181 </CheckButton>
182 <CheckButton name="ISync_Filters_RarityLayoutCheckButton5" inherits="OptionsCheckButtonTemplate">
183 <Size>
184 <AbsDimension x="26" y="26"/>
185 </Size>
186 <Anchors>
187 <Anchor point="TOP" relativeTo="ISync_Filters_RarityLayoutCheckButton4" relativePoint="BOTTOM">
188 <Offset>
189 <AbsDimension x="0" y="6"/>
190 </Offset>
191 </Anchor>
192 </Anchors>
193 <Scripts>
194 <OnClick>
195 if (this:GetChecked()) then
196 PlaySound("igMainMenuOptionCheckBoxOn");
197 ISync:SetVar({"FILTERS",4}, 1, "TRUE");
198 else
199 PlaySound("igMainMenuOptionCheckBoxOff");
200 ISync:SetVar({"FILTERS",4}, 0, "TRUE");
201 end
202 </OnClick>
203 </Scripts>
204 </CheckButton>
205 <CheckButton name="ISync_Filters_RarityLayoutCheckButton6" inherits="OptionsCheckButtonTemplate">
206 <Size>
207 <AbsDimension x="26" y="26"/>
208 </Size>
209 <Anchors>
210 <Anchor point="TOP" relativeTo="ISync_Filters_RarityLayoutCheckButton5" relativePoint="BOTTOM">
211 <Offset>
212 <AbsDimension x="0" y="6"/>
213 </Offset>
214 </Anchor>
215 </Anchors>
216 <Scripts>
217 <OnClick>
218 if (this:GetChecked()) then
219 PlaySound("igMainMenuOptionCheckBoxOn");
220 ISync:SetVar({"FILTERS",5}, 1, "TRUE");
221 else
222 PlaySound("igMainMenuOptionCheckBoxOff");
223 ISync:SetVar({"FILTERS",5}, 0, "TRUE");
224 end
225 </OnClick>
226 </Scripts>
227 </CheckButton>
228  
229 <Button name="ISync_Filters_Filter_Help1" virtual="true" hidden="false">
230 <Size>
231 <AbsDimension x="18" y="16"/>
232 </Size>
233 <Anchors>
234 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
235 <Offset>
236 <AbsDimension x="-8" y="-8"/>
237 </Offset>
238 </Anchor>
239 </Anchors>
240 <Layers>
241 <Layer level="OVERLAY">
242 <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
243 <Anchors>
244 <Anchor point="RIGHT">
245 <Offset>
246 <AbsDimension x="0" y="0"/>
247 </Offset>
248 </Anchor>
249 </Anchors>
250 </FontString>
251 </Layer>
252 </Layers>
253 <Scripts>
254 <OnEnter>
255 getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
256 GameTooltip:SetOwner(this, "ANCHOR_LEFT");
257 GameTooltip:SetText(ISYNC_HELP_SUB1, 1, 0.72, 0, nil, 1);
258 GameTooltip:Show();
259 </OnEnter>
260 <OnLeave>
261 getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
262 GameTooltip:Hide();
263 </OnLeave>
264 </Scripts>
265 </Button>
266  
267  
268 </Frames>
269  
270 <Scripts>
271 <OnLoad>
272 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
273 this:SetBackdropColor(0.15, 0.15, 0.15);
274 getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER1);
275 </OnLoad>
276 </Scripts>
277 </Frame>
278  
279  
280  
281 <Frame name="ISync_FiltersFrame_Opt_PurgeInvalid" inherits="OptionFrameBoxTemplate">
282 <Size>
283 <AbsDimension x="335" y="40"/>
284 </Size>
285 <Anchors>
286 <Anchor point="TOPLEFT" relativeTo="ISync_FiltersFrame" relativePoint="BOTTOMLEFT">
287 <Offset>
288 <AbsDimension x="13" y="150"/>
289 </Offset>
290 </Anchor>
291 </Anchors>
292 <Layers>
293 </Layers>
294  
295 <Frames>
296  
297 <Button name="ISync_FiltersFramePurgeInvalidButton" inherits="UIPanelButtonTemplate" text="OK">
298 <Size>
299 <AbsDimension x="90" y="21"/>
300 </Size>
301 <Anchors>
302 <Anchor point="CENTER">
303 <Offset>
304 <AbsDimension x="0" y="0"/>
305 </Offset>
306 </Anchor>
307 </Anchors>
308 <Scripts>
309 <OnClick>
310 StaticPopup_Show("ISYNC_PURGEINVALID_CONFIRM");
311 </OnClick>
312 </Scripts>
313 </Button>
314  
315 <Button name="ISync_Filters_Filter_Help3" virtual="true" hidden="false">
316 <Size>
317 <AbsDimension x="18" y="16"/>
318 </Size>
319 <Anchors>
320 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
321 <Offset>
322 <AbsDimension x="-8" y="-8"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <Layers>
327 <Layer level="OVERLAY">
328 <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
329 <Anchors>
330 <Anchor point="RIGHT">
331 <Offset>
332 <AbsDimension x="0" y="0"/>
333 </Offset>
334 </Anchor>
335 </Anchors>
336 </FontString>
337 </Layer>
338 </Layers>
339 <Scripts>
340 <OnEnter>
341 getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
342 GameTooltip:SetOwner(this, "ANCHOR_LEFT");
343 GameTooltip:SetText(ISYNC_HELP_SUB3, 1, 0.72, 0, nil, 1);
344 GameTooltip:Show();
345 </OnEnter>
346 <OnLeave>
347 getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
348 GameTooltip:Hide();
349 </OnLeave>
350 </Scripts>
351 </Button>
352  
353 </Frames>
354  
355 <Scripts>
356 <OnLoad>
357 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
358 this:SetBackdropColor(0.15, 0.15, 0.15);
359 getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER3);
360 </OnLoad>
361 </Scripts>
362 </Frame>
363  
364  
365  
366 <Frame name="ISync_FiltersFrame_Opt_Purge" inherits="OptionFrameBoxTemplate">
367 <Size>
368 <AbsDimension x="335" y="40"/>
369 </Size>
370 <Anchors>
371 <Anchor point="TOPLEFT" relativeTo="ISync_FiltersFrame" relativePoint="BOTTOMLEFT">
372 <Offset>
373 <AbsDimension x="13" y="85"/>
374 </Offset>
375 </Anchor>
376 </Anchors>
377 <Layers>
378 </Layers>
379  
380 <Frames>
381  
382 <Button name="ISync_FilterPurgeRare_DropDown" inherits="UIDropDownMenuTemplate">
383 <Anchors>
384 <Anchor point="TOPLEFT">
385 <Offset>
386 <AbsDimension x="5" y="-5"/>
387 </Offset>
388 </Anchor>
389 </Anchors>
390 <Scripts>
391 <OnLoad>
392 if(ISync) then ISync:Filter_DD_Load(); end
393 </OnLoad>
394 </Scripts>
395 </Button>
396  
397 <Button name="ISync_FiltersFramePurgeButton" inherits="UIPanelButtonTemplate" text="OK">
398 <Size>
399 <AbsDimension x="90" y="21"/>
400 </Size>
401 <Anchors>
402 <Anchor point="TOPLEFT">
403 <Offset>
404 <AbsDimension x="200" y="-10"/>
405 </Offset>
406 </Anchor>
407 </Anchors>
408 <Scripts>
409 <OnClick>
410 StaticPopup_Show("ISYNC_PURGEDATA_CONFIRM");
411 </OnClick>
412 </Scripts>
413 </Button>
414  
415 <Button name="ISync_Filters_Filter_Help4" virtual="true" hidden="false">
416 <Size>
417 <AbsDimension x="18" y="16"/>
418 </Size>
419 <Anchors>
420 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
421 <Offset>
422 <AbsDimension x="-8" y="-8"/>
423 </Offset>
424 </Anchor>
425 </Anchors>
426 <Layers>
427 <Layer level="OVERLAY">
428 <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
429 <Anchors>
430 <Anchor point="RIGHT">
431 <Offset>
432 <AbsDimension x="0" y="0"/>
433 </Offset>
434 </Anchor>
435 </Anchors>
436 </FontString>
437 </Layer>
438 </Layers>
439 <Scripts>
440 <OnEnter>
441 getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
442 GameTooltip:SetOwner(this, "ANCHOR_LEFT");
443 GameTooltip:SetText(ISYNC_HELP_SUB4, 1, 0.72, 0, nil, 1);
444 GameTooltip:Show();
445 </OnEnter>
446 <OnLeave>
447 getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
448 GameTooltip:Hide();
449 </OnLeave>
450 </Scripts>
451 </Button>
452  
453 </Frames>
454  
455 <Scripts>
456 <OnLoad>
457 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
458 this:SetBackdropColor(0.15, 0.15, 0.15);
459 getglobal(this:GetName().."Title"):SetText(ISYNC_FILTER_HEADER2);
460 </OnLoad>
461 </Scripts>
462 </Frame>
463  
464  
465  
466 </Frames>
467  
468 <Scripts>
469 <OnLoad>
470 ISync_FiltersFrameHeader_Box:SetBackdropBorderColor(0.4, 0.4, 0.4);
471 ISync_FiltersFrameHeader_Box:SetBackdropColor(1.0, 0.0, 0.0, 0.7);
472 </OnLoad>
473 <OnShow>
474 PlaySound("igMainMenuOptionCheckBoxOn");
475 ISync_FiltersFrameHeader_BoxText:SetText(ISYNC_BT_FILTERS);
476  
477  
478 ISync_Filters_RarityLayoutCheckButton1:SetChecked(ISync:SetVar({"FILTERS", 0}, 1));
479 ISync_Filters_RarityLayoutCheckButton2:SetChecked(ISync:SetVar({"FILTERS", 1}, 1));
480 ISync_Filters_RarityLayoutCheckButton3:SetChecked(ISync:SetVar({"FILTERS", 2}, 1));
481 ISync_Filters_RarityLayoutCheckButton4:SetChecked(ISync:SetVar({"FILTERS", 3}, 1));
482 ISync_Filters_RarityLayoutCheckButton5:SetChecked(ISync:SetVar({"FILTERS", 4}, 1));
483 ISync_Filters_RarityLayoutCheckButton6:SetChecked(ISync:SetVar({"FILTERS", 5}, 1));
484  
485 </OnShow>
486  
487 <OnHide> if(GameTooltip:IsVisible()) then
488 GameTooltip:Hide();
489 end
490  
491 PlaySound("igMainMenuOptionCheckBoxOff");
492 </OnHide>
493 </Scripts>
494  
495 </Frame>
496  
497  
498 </Ui>