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  
4 <Button name="ISyncItemButtonTemplate" virtual="true">
5 <Size>
6 <AbsDimension x="300" y="16"/>
7 </Size>
8 <Scripts>
9 <OnLoad>
10 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
11 </OnLoad>
12 <OnClick>
13 if(ISync) then ISync:ButtonClick(arg1); end
14 </OnClick>
15 <OnEnter>
16 if(ISync) then ISync:ButtonEnter(); end
17 ISync_QuickSearch:ClearFocus();
18 </OnEnter>
19 <OnLeave>
20 if(GameTooltip:IsVisible()) then GameTooltip:Hide(); end
21 </OnLeave>
22 </Scripts>
23  
24 <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
25 <Size>
26 <AbsDimension x="275" y="12"/>
27 </Size>
28 <Anchors>
29 <Anchor point="LEFT">
30 <Offset>
31 <AbsDimension x="20" y="0"/>
32 </Offset>
33 </Anchor>
34 </Anchors>
35 </NormalText>
36 <Layers>
37 <Layer level="ARTWORK">
38  
39 <Texture name="$parentSubItem" file="Interface\MoneyFrame\Arrow-Right-Down">
40 <Size>
41 <AbsDimension x="12" y="12"/>
42 </Size>
43 <Anchors>
44 <Anchor point="LEFT">
45 <Offset>
46 <AbsDimension x="20" y="0"/>
47 </Offset>
48 </Anchor>
49 </Anchors>
50 </Texture>
51 </Layer>
52 </Layers>
53 </Button>
54  
55  
56 <Button name="ISync_FavItemButtonTemplate" virtual="true">
57 <Size>
58 <AbsDimension x="300" y="16"/>
59 </Size>
60 <Scripts>
61 <OnLoad>
62 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
63 </OnLoad>
64 <OnClick>
65 ISync:Fav_ButtonClick(arg1);
66 </OnClick>
67 <OnEnter>
68 ISync:Fav_ButtonEnter()
69 </OnEnter>
70 <OnLeave>
71 if(GameTooltip:IsVisible()) then GameTooltip:Hide(); end
72 </OnLeave>
73 </Scripts>
74  
75 <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
76 <Size>
77 <AbsDimension x="275" y="12"/>
78 </Size>
79 <Anchors>
80 <Anchor point="LEFT">
81 <Offset>
82 <AbsDimension x="20" y="0"/>
83 </Offset>
84 </Anchor>
85 </Anchors>
86 </NormalText>
87 </Button>
88  
89  
90 <Frame name="ISync_FavRemItem_ButtonTemplate" virtual="true">
91 <Size>
92 <AbsDimension x="90" y="16"/>
93 </Size>
94 <Frames>
95 <Button name="$parent_Blip">
96 <Size>
97 <AbsDimension x="26" y="19"/>
98 </Size>
99 <Anchors>
100 <Anchor point="LEFT">
101 <Offset>
102 <AbsDimension x="-13" y="0"/>
103 </Offset>
104 </Anchor>
105 </Anchors>
106 <NormalTexture name="$parentTexture" file="Interface\Buttons\UI-MinusButton-Up.blp">
107 <Size>
108 <AbsDimension x="17" y="17"/>
109 </Size>
110 <Anchors>
111 <Anchor point="LEFT"/>
112 </Anchors>
113 </NormalTexture>
114 <PushedTextOffset>
115 <AbsDimension x="0" y="0"/>
116 </PushedTextOffset>
117 <Scripts>
118 <OnLoad>
119 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
120 </OnLoad>
121 <OnEnter>
122 if(this:GetParent().name and this:GetParent().quality) then
123 GameTooltip:SetOwner(this, "ANCHOR_LEFT");
124 GameTooltip:SetText(ISYNC_FAV_CLICKREMOVE_TOOLTIP.."\n".."|c"..ISync:ReturnHexColor(this:GetParent().quality)..this:GetParent().name.."|r", 1, 0.72, 0, nil, 1);
125 GameTooltip:Show();
126 end
127 </OnEnter>
128 <OnLeave>
129 GameTooltip:Hide();
130 </OnLeave>
131 <OnClick>
132 if(this:GetParent().name and this:GetParent().quality) then
133 ISync:FavRem_Click(this:GetParent());
134 end
135 </OnClick>
136 </Scripts>
137  
138 </Button>
139 </Frames>
140 </Frame>
141  
142  
143 <CheckButton name="ISync_TabTemplate" virtual="true" hidden="true">
144 <Size>
145 <AbsDimension x="32" y="32"/>
146 </Size>
147 <Layers>
148 <Layer level="BACKGROUND">
149 <Texture file="Interface\SpellBook\SpellBook-SkillLineTab">
150 <Size>
151 <AbsDimension x="64" y="64"/>
152 </Size>
153 <Anchors>
154 <Anchor point="TOPLEFT">
155 <Offset>
156 <AbsDimension x="-3" y="11"/>
157 </Offset>
158 </Anchor>
159 </Anchors>
160 </Texture>
161 </Layer>
162 </Layers>
163 <Scripts>
164 <OnClick>
165 if(ISync) then ISync:TabClick(); end
166 </OnClick>
167 <OnEnter>
168 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
169 GameTooltip:SetText(this.tipinfo);
170 </OnEnter>
171 <OnLeave>
172 GameTooltip:Hide();
173 </OnLeave>
174 </Scripts>
175 <NormalTexture/>
176 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
177 <CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
178 </CheckButton>
179  
180  
181 <EditBox name="ISync_SearchBoxTemplate" letters="256" historyLines="0" virtual="true" autoFocus="false">
182 <Size>
183 <AbsDimension x="200" y="20"/>
184 </Size>
185 <Layers>
186 <Layer level="BACKGROUND">
187 <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
188 <Size>
189 <AbsDimension x="12" y="29"/>
190 </Size>
191 <Anchors>
192 <Anchor point="TOPLEFT">
193 <Offset>
194 <AbsDimension x="-11" y="2"/>
195 </Offset>
196 </Anchor>
197 </Anchors>
198 <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
199 </Texture>
200 <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
201 <Size>
202 <AbsDimension x="195" y="29"/>
203 </Size>
204 <Anchors>
205 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
206 </Anchors>
207 <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
208 </Texture>
209 <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
210 <Size>
211 <AbsDimension x="12" y="29"/>
212 </Size>
213 <Anchors>
214 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
215 </Anchors>
216 <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
217 </Texture>
218 </Layer>
219 </Layers>
220 <Scripts>
221 <OnEscapePressed>
222 this:ClearFocus()
223 </OnEscapePressed>
224 <OnEnterPressed>
225  
226 ISync:SF_Reset();
227 ISYNC_SHOWSEARCH_CHK = 1;
228 ISync:Main_Refresh();
229  
230 </OnEnterPressed>
231 <OnClick>
232 this:SetFocus();
233 </OnClick>
234 <OnLeave>this:SetFocus();</OnLeave>
235 <OnEnter>this:SetFocus();</OnEnter>
236 </Scripts>
237 <FontString inherits="ChatFontNormal"/>
238 </EditBox>
239  
240  
241 <Frame name="ISync_GB_Template" virtual="true">
242 <Size>
243 <AbsDimension x="90" y="16"/>
244 </Size>
245 <Frames>
246 <Button name="$parent_Blip">
247 <Size>
248 <AbsDimension x="26" y="19"/>
249 </Size>
250 <Anchors>
251 <Anchor point="LEFT">
252 <Offset>
253 <AbsDimension x="-13" y="0"/>
254 </Offset>
255 </Anchor>
256 </Anchors>
257 <NormalTexture name="$parentTexture" file="Interface\AddOns\ItemSync\images\ISync_ItemID_ItemPic">
258 <Size>
259 <AbsDimension x="17" y="17"/>
260 </Size>
261 <Anchors>
262 <Anchor point="LEFT"/>
263 </Anchors>
264 </NormalTexture>
265 <PushedTextOffset>
266 <AbsDimension x="0" y="0"/>
267 </PushedTextOffset>
268  
269 <Scripts>
270 <OnLoad>
271 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
272 </OnLoad>
273 <OnEnter>
274 GameTooltip:SetOwner(this, "ANCHOR_LEFT");
275 GameTooltip:SetText(ISYNC_ITEMID_GREENBUTTON_WARNING2, 1, 0.72, 0, nil, 1);
276 GameTooltip:Show();
277 </OnEnter>
278 <OnLeave>
279 GameTooltip:Hide();
280 </OnLeave>
281 <OnClick>
282 if(ISync) then ISync:BlipClick(arg1); end
283 </OnClick>
284 </Scripts>
285  
286 </Button>
287 </Frames>
288 </Frame>
289  
290 <Frame name="ISyncFrame_MainTemplate" virtual="true" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true">
291 <Size>
292 <AbsDimension x="360" y="495"/>
293 </Size>
294 <Anchors>
295 <Anchor point="TOPLEFT">
296 <Offset>
297 <AbsDimension x="0" y="-104"/>
298 </Offset>
299 </Anchor>
300 </Anchors>
301 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
302 <BackgroundInsets>
303 <AbsInset left="11" right="12" top="12" bottom="11"/>
304 </BackgroundInsets>
305 <TileSize>
306 <AbsValue val="32"/>
307 </TileSize>
308 <EdgeSize>
309 <AbsValue val="32"/>
310 </EdgeSize>
311 </Backdrop>
312 <Layers>
313 <Layer level="ARTWORK">
314 <FontString name="$parentInfo" inherits="GameFontNormalSmall" justifyH="LEFT">
315 <Anchors>
316 <Anchor point="TOP">
317 <Offset>
318 <AbsDimension x="80" y="-26"/>
319 </Offset>
320 </Anchor>
321 </Anchors>
322 </FontString>
323  
324 </Layer>
325 </Layers>
326 <Frames>
327  
328 <Frame name="$parentHeader_Box" inherits="OptionFrameBoxTemplate" enableMouse="true" >
329 <Size>
330 <AbsDimension x="335" y="30"/>
331 </Size>
332 <Anchors>
333 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER">
334 <Offset>
335 <AbsDimension x="0" y="255"/>
336 </Offset>
337 </Anchor>
338 </Anchors>
339 <Layers>
340 <Layer level="BACKGROUND">
341 <FontString name="$parentText" inherits="GameFontNormal" text="">
342 <Anchors>
343 <Anchor point="CENTER">
344 <Offset>
345 <AbsDimension x="0" y="0"/>
346 </Offset>
347 </Anchor>
348 </Anchors>
349 </FontString>
350 </Layer>
351 </Layers>
352 <Scripts>
353 <OnLoad>
354  
355 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
356 this:SetBackdropColor(162/255, 217/255, 111/255, 0.7);
357 </OnLoad>
358 <OnMouseDown>
359 if( arg1 == "LeftButton" ) then
360 GameTooltip:Hide();
361 getglobal(this:GetParent():GetName()):StartMoving();
362 end
363 </OnMouseDown>
364 <OnMouseUp>
365 getglobal(this:GetParent():GetName()):StopMovingOrSizing();
366 </OnMouseUp>
367 </Scripts>
368 </Frame>
369  
370 <Button name="$parent_CloseButton" inherits="UIPanelCloseButton" toplevel="true">
371 <Anchors>
372 <Anchor point="CENTER" relativeTo="$parentHeader_Box" relativePoint="RIGHT">
373 <Offset>
374 <AbsDimension x="-17" y="0"/>
375 </Offset>
376 </Anchor>
377 </Anchors>
378 </Button>
379 </Frames>
380  
381  
382 <Scripts>
383 <OnMouseDown> this:StartMoving(); </OnMouseDown>
384 <OnMouseUp> this:StopMovingOrSizing(); </OnMouseUp>
385 <OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
386 </Scripts>
387  
388 </Frame>
389  
390  
391  
392  
393 <Frame name="ISync_DBPopUp" toplevel="true" frameStrata="DIALOG" movable="false" enableMouse="true" hidden="true" parent="UIParent">
394 <Size>
395 <AbsDimension x="325" y="125"/>
396 </Size>
397 <Anchors>
398 <Anchor point="CENTER" relativeTo="UIParent"/>
399 </Anchors>
400 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
401 <BackgroundInsets>
402 <AbsInset left="11" right="12" top="12" bottom="11"/>
403 </BackgroundInsets>
404 <TileSize>
405 <AbsValue val="32"/>
406 </TileSize>
407 <EdgeSize>
408 <AbsValue val="32"/>
409 </EdgeSize>
410 </Backdrop>
411 <Layers>
412 <Layer level="ARTWORK">
413 <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
414 <Size>
415 <AbsDimension x="256" y="64"/>
416 </Size>
417 <Anchors>
418 <Anchor point="TOP">
419 <Offset>
420 <AbsDimension x="0" y="12"/>
421 </Offset>
422 </Anchor>
423 </Anchors>
424 </Texture>
425 <FontString name="$parentHeaderText" inherits="GameFontNormal" text="ISYNC_DBUPDATE">
426 <Anchors>
427 <Anchor point="TOP" relativeTo="$parentHeaderTexture">
428 <Offset>
429 <AbsDimension x="0" y="-14"/>
430 </Offset>
431 </Anchor>
432 </Anchors>
433 </FontString>
434 <FontString name="$parentInfo" justifyV="top" inherits="GameFontNormal">
435 <Size>
436 <AbsDimension x="350" y="32"/>
437 </Size>
438 <Anchors>
439 <Anchor point="TOP">
440 <Offset>
441 <AbsDimension x="0" y="-30"/>
442 </Offset>
443 </Anchor>
444 </Anchors>
445 </FontString>
446 </Layer>
447 </Layers>
448 <Frames>
449 <Button name="$parentReadyButton" hidden="false" inherits="GameMenuButtonTemplate" text="Yes">
450 <Size>
451 <AbsDimension x="125" y="32"/>
452 </Size>
453 <Anchors>
454 <Anchor point="RIGHT" relativePoint="CENTER">
455 <Offset>
456 <AbsDimension x="-10" y="-20"/>
457 </Offset>
458 </Anchor>
459 </Anchors>
460 <Scripts>
461 <OnClick>
462 if(ISync) then
463 ISync:CleanupDB(1, nil);
464 ISYNC_LOADYES = 1;
465 ISync:SetVar({"ISYNC_VER","OLDVERSION"}, ISYNC_VERSION,"TRUE");
466 DEFAULT_CHAT_FRAME:AddMessage("|c00A2D96FItemSync:|r |cffffffff"..ISYNC_OLDDBDELETED..".|r");
467 end
468  
469 this:GetParent():Hide();
470 </OnClick>
471 </Scripts>
472 </Button>
473 <Button name="$parentNotReadyButton" hidden="false" inherits="GameMenuButtonTemplate" text="No">
474 <Size>
475 <AbsDimension x="125" y="32"/>
476 </Size>
477 <Anchors>
478 <Anchor point="LEFT" relativePoint="CENTER">
479 <Offset>
480 <AbsDimension x="10" y="-20"/>
481 </Offset>
482 </Anchor>
483 </Anchors>
484 <Scripts>
485 <OnClick>
486 ISYNC_LOADYES = 0;
487 this:GetParent():Hide();
488 </OnClick>
489 </Scripts>
490 </Button>
491 </Frames>
492 <Scripts>
493 <OnShow>
494 PlaySound("UChatScrollButton");
495 getglobal(this:GetName() .. "Info"):SetText(ISYNC_DBUPDATE_INFO);
496 </OnShow>
497 <OnHide>
498 PlaySound("UChatScrollButton");
499 </OnHide>
500 </Scripts>
501 </Frame>
502  
503  
504 </Ui>