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  
3 <Script file="smartassistlist.lua"/>
4  
5 <!-- this frame was based on ct raidassist, now there is nothing from there anymore :) -->
6 <Button name="SAListTemplate" frameStrata="LOW" toplevel="true" movable="false" virtual="true">
7 <Size>
8 <AbsDimension x="150" y="55"/>
9 </Size>
10 <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
11 <EdgeSize>
12 <AbsValue val="16"/>
13 </EdgeSize>
14 <TileSize>
15 <AbsValue val="16"/>
16 </TileSize>
17 <BackgroundInsets>
18 <AbsInset left="5" right="5" top="5" bottom="5"/>
19 </BackgroundInsets>
20 </Backdrop>
21 <Frames>
22 <Frame setAllPoints="true">
23 <Layers>
24 <Layer level="OVERLAY">
25 <FontString name="$parentMobText" inherits="TextStatusBarText" text="?" nonspacewrap="false"/>
26 <FontString name="$parentTargetText" inherits="TextStatusBarText" text="?" nonspacewrap="false"/>
27 </Layer>
28  
29 <!-- moved to get them higher level -->
30 <Layer level="OVERLAY">
31 <Texture name="$parentTargetIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" hidden="false">
32 <TexCoords left="0.00" right="0.25" top="0.00" bottom="0.25"/> <!-- just default to something (star) -->
33 <Size>
34 <AbsDimension x="25" y="25"/>
35 </Size>
36 <Anchors>
37 <Anchor point="TOPLEFT">
38 <Offset>
39 <AbsDimension x="-26" y="-28"/>
40 </Offset>
41 </Anchor>
42 </Anchors>
43 </Texture>
44 <Texture name="$parentClassIcon" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes" hidden="true">
45 <TexCoords left="0.00" right="0.25" top="0.25" bottom="0.50"/> <!-- just default to something (hunter), without any setup looks awful -->
46 <Size>
47 <AbsDimension x="25" y="25"/>
48 </Size>
49 <Anchors>
50 <Anchor point="TOPLEFT">
51 <Offset>
52 <AbsDimension x="-26" y="-3"/>
53 </Offset>
54 </Anchor>
55 </Anchors>
56 </Texture>
57  
58 <Texture name="$parentHuntersMarkIcon" file="Interface\Icons\Ability_Hunter_SniperShot" hidden="true">
59 <!-- <TexCoords left="0.00" right="0.25" top="0.00" bottom="0.25"/> -->
60 <Size>
61 <AbsDimension x="25" y="25"/>
62 </Size>
63 <Anchors>
64 <Anchor point="TOPLEFT">
65 <Offset>
66 <AbsDimension x="-26" y="-28"/>
67 </Offset>
68 </Anchor>
69 </Anchors>
70 </Texture>
71  
72 </Layer>
73  
74 </Layers>
75 </Frame>
76 <StatusBar name="$parentMobBar" inherits="TextStatusBar">
77 <Size>
78 <AbsDimension x="130" y="12"/>
79 </Size>
80 <Anchors>
81 <Anchor point="TOPLEFT">
82 <Offset>
83 <AbsDimension x="10" y="-8"/>
84 </Offset>
85 </Anchor>
86 </Anchors>
87 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
88 <BarColor r="0" g="1" b="0"/>
89 <Scripts>
90 <OnMouseUp>
91 SA_List_Target_OnClick(this:GetParent());
92 </OnMouseUp>
93 <OnEnter>
94 SA_List_Target_OnEnter(this:GetParent());
95 </OnEnter>
96 <OnLeave>
97 SA_List_Target_OnLeave(this:GetParent());
98 </OnLeave>
99 </Scripts>
100 </StatusBar>
101 <StatusBar name="$parentTargetBar" inherits="TextStatusBar">
102 <Size>
103 <AbsDimension x="130" y="12"/>
104 </Size>
105 <Anchors>
106 <Anchor point="TOPLEFT">
107 <Offset>
108 <AbsDimension x="10" y="-22"/>
109 </Offset>
110 </Anchor>
111 </Anchors>
112 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
113 <BarColor r="0" g="1" b="0"/>
114 <Scripts>
115 <OnMouseUp>
116 SA_List_Target_OnClick(this:GetParent());
117 </OnMouseUp>
118 <OnEnter>
119 SA_List_Target_OnEnter(this:GetParent());
120 </OnEnter>
121 <OnLeave>
122 SA_List_Target_OnLeave(this:GetParent());
123 </OnLeave>
124 </Scripts>
125 </StatusBar>
126 </Frames>
127 <Layers>
128 <Layer level="OVERLAY">
129 <FontString name="$parentTargetOf" justifyH="LEFT" justifyV="TOP" hidden="false" inherits="CombatLogFont" text="?" nonspacewrap="true">
130 <Color r="1.0" g="0.82" b="0"/>
131 <Size>
132 <AbsDimension x="140" y="26"/>
133 </Size>
134 <Anchors>
135 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
136 <Offset>
137 <AbsDimension x="10" y="-8"/>
138 </Offset>
139 </Anchor>
140 </Anchors>
141 </FontString>
142 </Layer>
143 </Layers>
144 <Scripts>
145 <OnLoad>
146 this:SetBackdropColor(0, 0, 0, 0.5);
147 SA_InitBar(getglobal(this:GetName() .. "MobBar"), getglobal(this:GetName() .. "MobText"));
148 SA_InitBar(getglobal(this:GetName() .. "TargetBar"), getglobal(this:GetName() .. "TargetText"));
149 this.obj = false;
150 </OnLoad>
151 <OnClick>
152 SA_List_Target_OnClick(this);
153 </OnClick>
154 <OnEnter>
155 SA_List_Target_OnEnter(this);
156 </OnEnter>
157 <OnLeave>
158 SA_List_Target_OnLeave(this);
159 </OnLeave>
160 </Scripts>
161 </Button>
162  
163 <Frame name="SAListFrame" hidden="true" frameStrata="MEDIUM" toplevel="true" enableMouse="true" movable="true" parent="UIParent">
164 <Size>
165 <AbsDimension x="150" y="22"/>
166 </Size>
167 <Anchors>
168 <Anchor point="TOP">
169 <Offset>
170 <AbsDimension x="0" y="-200"/>
171 </Offset>
172 </Anchor>
173 </Anchors>
174 <Frames>
175 <!-- wrapper for scaling setting, so that the window position stays same -->
176 <Frame name="SAListFrameScaler">
177 <Size>
178 <AbsDimension x="12" y="12"/>
179 </Size>
180 <Anchors>
181 <Anchor point="TOPLEFT"/>
182 <Anchor point="TOPRIGHT"/>
183 </Anchors>
184 <Frames>
185  
186 <Button name="SAListTitleButton" >
187 <Size>
188 <AbsDimension x="150" y="22"/>
189 </Size>
190 <Anchors>
191 <Anchor point="TOPLEFT" relativeTo="SAListFrameScaler">
192 <Offset>
193 <AbsDimension x="0" y="2"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197  
198 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
199 <BackgroundInsets>
200 <AbsInset left="3" right="4" top="5" bottom="5"/>
201 </BackgroundInsets>
202 <TileSize>
203 <AbsValue val="16"/>
204 </TileSize>
205 <EdgeSize>
206 <AbsValue val="16"/>
207 </EdgeSize>
208 </Backdrop>
209  
210 <Layers>
211 <Layer level="BACKGROUND">
212 <FontString name="SAListTitle" inherits="GameTooltipTextSmall">
213 <Anchors>
214 <Anchor point="CENTER" relativeTo="SAListTitleButton" relativePoint="CENTER">
215 <Offset>
216 <AbsDimension x="0" y="0"/>
217 </Offset>
218 </Anchor>
219 </Anchors>
220 </FontString>
221 </Layer>
222 </Layers>
223 <Scripts>
224 <OnLoad>
225 this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
226 </OnLoad>
227 <OnClick>
228 SA_List_TitleButton_OnClick();
229 </OnClick>
230 <OnEnter>
231 SA_List_TitleButton_OnEnter();
232 </OnEnter>
233 <OnLeave>
234 SA_List_TitleButton_OnLeave();
235 </OnLeave>
236 </Scripts>
237 </Button>
238  
239 <Button name="Target1" id="1" inherits="SAListTemplate" hidden="true">
240 <Anchors>
241 <Anchor point="TOPLEFT" relativeTo="SAListFrameScaler">
242 <Offset>
243 <AbsDimension x="0" y="-17"/>
244 </Offset>
245 </Anchor>
246 </Anchors>
247 </Button>
248 <Button name="Target2" id="2" inherits="SAListTemplate" hidden="true">
249 <Anchors>
250 <Anchor point="TOPLEFT" relativeTo="Target1">
251 <Offset>
252 <AbsDimension x="0" y="-52"/>
253 </Offset>
254 </Anchor>
255 </Anchors>
256 </Button>
257 <Button name="Target3" id="3" inherits="SAListTemplate" hidden="true">
258 <Anchors>
259 <Anchor point="TOPLEFT" relativeTo="Target2">
260 <Offset>
261 <AbsDimension x="0" y="-52"/>
262 </Offset>
263 </Anchor>
264 </Anchors>
265 </Button>
266 <Button name="Target4" id="4" inherits="SAListTemplate" hidden="true">
267 <Anchors>
268 <Anchor point="TOPLEFT" relativeTo="Target3">
269 <Offset>
270 <AbsDimension x="0" y="-52"/>
271 </Offset>
272 </Anchor>
273 </Anchors>
274 </Button>
275 <Button name="Target5" id="5" inherits="SAListTemplate" hidden="true">
276 <Anchors>
277 <Anchor point="TOPLEFT" relativeTo="Target4">
278 <Offset>
279 <AbsDimension x="0" y="-52"/>
280 </Offset>
281 </Anchor>
282 </Anchors>
283 </Button>
284 <Button name="Target6" id="6" inherits="SAListTemplate" hidden="true">
285 <Anchors>
286 <Anchor point="TOPLEFT" relativeTo="Target5">
287 <Offset>
288 <AbsDimension x="0" y="-52"/>
289 </Offset>
290 </Anchor>
291 </Anchors>
292 </Button>
293 <Button name="Target7" id="6" inherits="SAListTemplate" hidden="true">
294 <Anchors>
295 <Anchor point="TOPLEFT" relativeTo="Target6">
296 <Offset>
297 <AbsDimension x="0" y="-52"/>
298 </Offset>
299 </Anchor>
300 </Anchors>
301 </Button>
302 <Button name="Target8" id="6" inherits="SAListTemplate" hidden="true">
303 <Anchors>
304 <Anchor point="TOPLEFT" relativeTo="Target7">
305 <Offset>
306 <AbsDimension x="0" y="-52"/>
307 </Offset>
308 </Anchor>
309 </Anchors>
310 </Button>
311 <Button name="Target9" id="6" inherits="SAListTemplate" hidden="true">
312 <Anchors>
313 <Anchor point="TOPLEFT" relativeTo="Target8">
314 <Offset>
315 <AbsDimension x="0" y="-52"/>
316 </Offset>
317 </Anchor>
318 </Anchors>
319 </Button>
320 <Button name="Target10" id="10" inherits="SAListTemplate" hidden="true">
321 <Anchors>
322 <Anchor point="TOPLEFT" relativeTo="Target9">
323 <Offset>
324 <AbsDimension x="0" y="-52"/>
325 </Offset>
326 </Anchor>
327 </Anchors>
328 </Button>
329  
330 </Frames>
331 </Frame>
332  
333 <!-- dropdown menu -->
334 <Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" id="50" hidden="true">
335 <Size>
336 <AbsDimension x="10" y="10"/>
337 </Size>
338 <Anchors>
339 <Anchor point="TOP">
340 <Offset>
341 <AbsDimension x="-20" y="-10"/>
342 </Offset>
343 </Anchor>
344 </Anchors>
345 <Scripts>
346 <OnLoad>
347 SA_List_FrameDropDown_OnLoad();
348 </OnLoad>
349 </Scripts>
350 </Frame>
351 <!-- end of dropdown menu -->
352  
353 </Frames>
354 <Scripts>
355 <OnLoad>
356 SA_List_OnLoad();
357 </OnLoad>
358 <OnShow>
359 SA_List_OnShow();
360 </OnShow>
361 <OnUpdate>
362 SA_List_OnUpdate(arg1);
363 </OnUpdate>
364 </Scripts>
365  
366 </Frame>
367  
368 <!-- FILTER FRAME BELOW, credits to link snag -->
369  
370 <Frame name="SAFilterFrame" toplevel="true" movable="true" parent="UIParent" hidden="true">
371 <Size>
372 <AbsDimension x="400" y="120"/>
373 </Size>
374 <Anchors>
375 <Anchor point="CENTER"/>
376 </Anchors>
377  
378 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
379 <BackgroundInsets>
380 <AbsInset left="11" right="12" top="12" bottom="11"/>
381 </BackgroundInsets>
382 <TileSize>
383 <AbsValue val="32"/>
384 </TileSize>
385 <EdgeSize>
386 <AbsValue val="32"/>
387 </EdgeSize>
388 </Backdrop>
389  
390 <Layers>
391 <Layer level="ARTWORK">
392 <Texture name="SAFilterFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
393 <Size>
394 <AbsDimension x="400" y="64"/>
395 </Size>
396 <Anchors>
397 <Anchor point="TOP">
398 <Offset>
399 <AbsDimension x="0" y="12"/>
400 </Offset>
401 </Anchor>
402 </Anchors>
403 </Texture>
404 <FontString inherits="GameFontNormal" text="Filter targetting">
405 <Anchors>
406 <Anchor point="TOP" relativeTo="SAFilterFrame">
407 <Offset>
408 <AbsDimension x="0" y="-2"/>
409 </Offset>
410 </Anchor>
411 </Anchors>
412 </FontString>
413 </Layer>
414 </Layers>
415  
416 <Frames>
417 <EditBox name="SAFilterEditBox" letters="40" historyLines="0" autoFocus="true">
418 <Size>
419 <AbsDimension x="350" y="20"/>
420 </Size>
421 <Anchors>
422 <Anchor point="TOPLEFT">
423 <Offset>
424 <AbsDimension x="42" y="-35"/>
425 </Offset>
426 </Anchor>
427 </Anchors>
428 <Layers>
429 <Layer level="BACKGROUND">
430 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
431 <Size>
432 <AbsDimension x="8" y="20"/>
433 </Size>
434 <Anchors>
435 <Anchor point="TOPLEFT">
436 <Offset>
437 <AbsDimension x="-8" y="0"/>
438 </Offset>
439 </Anchor>
440 </Anchors>
441 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
442 </Texture>
443 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
444 <Size>
445 <AbsDimension x="318" y="20"/>
446 </Size>
447 <Anchors>
448 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
449 </Anchors>
450 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
451 </Texture>
452 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
453 <Size>
454 <AbsDimension x="8" y="20"/>
455 </Size>
456 <Anchors>
457 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
458 </Anchors>
459 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
460 </Texture>
461 </Layer>
462 </Layers>
463 <FontString inherits="ChatFontNormal"/>
464 </EditBox>
465  
466 <Button name="SAFilterFrameButtonTarget" inherits="UIPanelButtonTemplate" text="Use target">
467 <Size>
468 <AbsDimension x="120" y="21"/>
469 </Size>
470 <Anchors>
471 <Anchor point="BOTTOMLEFT">
472 <Offset>
473 <AbsDimension x="30" y="25"/>
474 </Offset>
475 </Anchor>
476 </Anchors>
477 <Scripts>
478 <OnClick>
479 if (UnitExists("target")) then
480 SAFilterEditBox:SetText(UnitName("target"));
481 end
482 </OnClick>
483 </Scripts>
484 </Button>
485  
486 <Button name="SAFilterFrameButtonOK" inherits="UIPanelButtonTemplate" text="OK">
487 <Size>
488 <AbsDimension x="120" y="21"/>
489 </Size>
490 <Anchors>
491 <Anchor point="BOTTOMRIGHT">
492 <Offset>
493 <AbsDimension x="-30" y="25"/>
494 </Offset>
495 </Anchor>
496 </Anchors>
497 <Scripts>
498 <OnClick>
499 SA_List_FilterButtonOK_OnClick();
500 </OnClick>
501 </Scripts>
502 </Button>
503  
504 </Frames>
505 </Frame>
506  
507 </Ui>