vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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/ C:ProjectsWoWBinInterfaceFrameXMLUI.xsd"> |
2 | |||
3 | <Script file="PetFeeder_UnlikedFoodsFrame.lua"/> |
||
4 | <Script file="localization.lua"/> |
||
5 | |||
6 | <!--Button Widget Template--> |
||
7 | <Button name="PetFeederUnlikedItemButtonTemplate" enableMouse="true" virtual="true"> |
||
8 | <Size> |
||
9 | <AbsDimension x="295" y="32"/> |
||
10 | </Size> |
||
11 | <Frames> |
||
12 | <Button name="$parentItem"> |
||
13 | <Size> |
||
14 | <AbsDimension x="32" y="32"/> |
||
15 | </Size> |
||
16 | <Anchors> |
||
17 | <Anchor point="TOPLEFT"> |
||
18 | <Offset> |
||
19 | <AbsDimension x="0" y="0"/> |
||
20 | </Offset> |
||
21 | </Anchor> |
||
22 | </Anchors> |
||
23 | <Layers> |
||
24 | <Layer level="BORDER"> |
||
25 | <Texture name="$parentIconTexture"/> |
||
26 | </Layer> |
||
27 | </Layers> |
||
28 | <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/> |
||
29 | <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/> |
||
30 | <Scripts> |
||
31 | <OnEnter> |
||
32 | PetFeederItemButton_OnEnter(this:GetParent():GetText()); |
||
33 | </OnEnter> |
||
34 | <OnClick> |
||
35 | PetFeeder_UnlikedFoodsFrameItemButton_OnClick(arg1,this:GetParent():GetText()); |
||
36 | </OnClick> |
||
37 | <OnLeave> |
||
38 | GameTooltip:Hide(); |
||
39 | --PetFeederItemButton_OnLeave(); |
||
40 | </OnLeave> |
||
41 | </Scripts> |
||
42 | </Button> |
||
43 | </Frames> |
||
44 | <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT"> |
||
45 | <Size> |
||
46 | <AbsDimension x="275" y="12"/> |
||
47 | </Size> |
||
48 | <Anchors> |
||
49 | <Anchor point="LEFT" relativeTo="$parent"> |
||
50 | <Offset> |
||
51 | <AbsDimension x="35" y="0"/> |
||
52 | </Offset> |
||
53 | </Anchor> |
||
54 | </Anchors> |
||
55 | </NormalText> |
||
56 | <Scripts> |
||
57 | <OnClick> |
||
58 | PetFeeder_UnlikedFoodsFrameItemButton_OnClick(arg1,this:GetText()); |
||
59 | </OnClick> |
||
60 | <OnReceiveDrag> |
||
61 | PetFeeder_UnlikedFoodsFrame_OnReceiveDrag(); |
||
62 | </OnReceiveDrag> |
||
63 | </Scripts> |
||
64 | <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/> |
||
65 | <HighlightText name="$parentHighlightText" inherits="GameFontHighlight" justifyH="LEFT"> |
||
66 | <Size> |
||
67 | <AbsDimension x="275" y="12"/> |
||
68 | </Size> |
||
69 | <Anchors> |
||
70 | <Anchor point="LEFT" relativeTo="$parent"> |
||
71 | <Offset> |
||
72 | <AbsDimension x="35" y="0"/> |
||
73 | </Offset> |
||
74 | </Anchor> |
||
75 | </Anchors> |
||
76 | </HighlightText> |
||
77 | </Button> |
||
78 | |||
79 | -- Interface viewable objects |
||
80 | |||
81 | <Frame name="PetFeeder_UnlikedFoodsFrame" setAllPoints="true" enableMouse="true" parent="PetFeederFrame" hidden="true" id="3"> |
||
82 | <HitRectInsets> |
||
83 | <AbsInset left="0" right="30" top="0" bottom="75"/> |
||
84 | </HitRectInsets> |
||
85 | <Layers> |
||
86 | <Layer level="BACKGROUND"> |
||
87 | <Texture name="$parentListFrameHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
88 | <Size> |
||
89 | <AbsDimension x="256" y="16"/> |
||
90 | </Size> |
||
91 | <Anchors> |
||
92 | <Anchor point="TOPLEFT"> |
||
93 | <Offset> |
||
94 | <AbsDimension x="15" y="-312"/> |
||
95 | </Offset> |
||
96 | </Anchor> |
||
97 | </Anchors> |
||
98 | <TexCoords left="0" right="1.0" top="0" bottom="0.25"/> |
||
99 | </Texture> |
||
100 | <Texture name="$parentListFrameHorizontalBarRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar"> |
||
101 | <Size> |
||
102 | <AbsDimension x="75" y="16"/> |
||
103 | </Size> |
||
104 | <Anchors> |
||
105 | <Anchor point="LEFT" relativeTo="$parentListFrameHorizontalBarLeft" relativePoint="RIGHT"> |
||
106 | <Offset> |
||
107 | <AbsDimension x="0" y="0"/> |
||
108 | </Offset> |
||
109 | </Anchor> |
||
110 | </Anchors> |
||
111 | <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/> |
||
112 | </Texture> |
||
113 | </Layer> |
||
114 | </Layers> |
||
115 | <Frames> |
||
116 | <Frame name="$parentFoodsText" hidden="false"> |
||
117 | <Size> |
||
118 | <AbsDimension x="320" y="50"/> |
||
119 | </Size> |
||
120 | <Anchors> |
||
121 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
122 | <Offset> |
||
123 | <AbsDimension x="0" y="0"/> |
||
124 | </Offset> |
||
125 | </Anchor> |
||
126 | </Anchors> |
||
127 | <Layers> |
||
128 | <Layer level="ARTWORK"> |
||
129 | <FontString inherits="GameFontNormal" justifyH="CENTER" text="PETFEEDER_UNLIKED_FOODS"> |
||
130 | <Size> |
||
131 | <AbsDimension x="320" y="0"/> |
||
132 | </Size> |
||
133 | <Anchors> |
||
134 | <Anchor point="TOP" relativePoint="TOP"> |
||
135 | <Offset> |
||
136 | <AbsDimension x="0" y="-58"/> |
||
137 | </Offset> |
||
138 | </Anchor> |
||
139 | </Anchors> |
||
140 | </FontString> |
||
141 | </Layer> |
||
142 | </Layers> |
||
143 | </Frame> |
||
144 | |||
145 | <Button name="$parentClearFoodsButton"> |
||
146 | <Size> |
||
147 | <AbsDimension x="96" y="18"/> |
||
148 | </Size> |
||
149 | <Anchors> |
||
150 | <Anchor point="TOPLEFT" relativeTo="$parentFoodsText" relativePoint="TOPRIGHT"> |
||
151 | <Offset> |
||
152 | <AbsDimension x="-86" y="-50"/> |
||
153 | </Offset> |
||
154 | </Anchor> |
||
155 | </Anchors> |
||
156 | <Scripts> |
||
157 | <OnClick>getglobal(this:GetName().."_Update")(); |
||
158 | this:GetParent():Hide(); |
||
159 | this:GetParent():Show(); |
||
160 | </OnClick> |
||
161 | </Scripts> |
||
162 | <NormalTexture inherits="DialogButtonNormalTexture"/> |
||
163 | <PushedTexture inherits="DialogButtonPushedTexture"/> |
||
164 | <HighlightTexture inherits="DialogButtonHighlightTexture"/> |
||
165 | <NormalText inherits="GameFontNormal" text="PETFEEDER_CLEARFOODS"/> |
||
166 | </Button> |
||
167 | |||
168 | |||
169 | <!-- Start of Buttons to use as ListBox --> |
||
170 | <Button name="$parentItem1" inherits="PetFeederUnlikedItemButtonTemplate" id="1" hidden="true"> |
||
171 | <Anchors> |
||
172 | <Anchor point="TOPLEFT" relativeTo="$parentFoodsText" relativePoint="BOTTOMLEFT"> |
||
173 | <Offset> |
||
174 | <AbsDimension x="25" y="-50"/> |
||
175 | </Offset> |
||
176 | </Anchor> |
||
177 | </Anchors> |
||
178 | </Button> |
||
179 | <Button name="$parentItem2" inherits="PetFeederUnlikedItemButtonTemplate" id="2" hidden="true"> |
||
180 | <Anchors> |
||
181 | <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT"> |
||
182 | <Offset> |
||
183 | <AbsDimension x="0" y="1"/> |
||
184 | </Offset> |
||
185 | </Anchor> |
||
186 | </Anchors> |
||
187 | </Button> |
||
188 | <Button name="$parentItem3" inherits="PetFeederUnlikedItemButtonTemplate" id="3" hidden="true"> |
||
189 | <Anchors> |
||
190 | <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT"> |
||
191 | <Offset> |
||
192 | <AbsDimension x="0" y="1"/> |
||
193 | </Offset> |
||
194 | </Anchor> |
||
195 | </Anchors> |
||
196 | </Button> |
||
197 | <Button name="$parentItem4" inherits="PetFeederUnlikedItemButtonTemplate" id="4" hidden="true"> |
||
198 | <Anchors> |
||
199 | <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT"> |
||
200 | <Offset> |
||
201 | <AbsDimension x="0" y="1"/> |
||
202 | </Offset> |
||
203 | </Anchor> |
||
204 | </Anchors> |
||
205 | </Button> |
||
206 | <Button name="$parentItem5" inherits="PetFeederUnlikedItemButtonTemplate" id="5" hidden="true"> |
||
207 | <Anchors> |
||
208 | <Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT"> |
||
209 | <Offset> |
||
210 | <AbsDimension x="0" y="1"/> |
||
211 | </Offset> |
||
212 | </Anchor> |
||
213 | </Anchors> |
||
214 | </Button> |
||
215 | <Button name="$parentItem6" inherits="PetFeederUnlikedItemButtonTemplate" id="6" hidden="true"> |
||
216 | <Anchors> |
||
217 | <Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT"> |
||
218 | <Offset> |
||
219 | <AbsDimension x="0" y="1"/> |
||
220 | </Offset> |
||
221 | </Anchor> |
||
222 | </Anchors> |
||
223 | </Button> |
||
224 | <Button name="$parentItem7" inherits="PetFeederUnlikedItemButtonTemplate" id="7" hidden="true"> |
||
225 | <Anchors> |
||
226 | <Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT"> |
||
227 | <Offset> |
||
228 | <AbsDimension x="0" y="1"/> |
||
229 | </Offset> |
||
230 | </Anchor> |
||
231 | </Anchors> |
||
232 | </Button> |
||
233 | <Button name="$parentItem8" inherits="PetFeederUnlikedItemButtonTemplate" id="8" hidden="true"> |
||
234 | <Anchors> |
||
235 | <Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT"> |
||
236 | <Offset> |
||
237 | <AbsDimension x="0" y="1"/> |
||
238 | </Offset> |
||
239 | </Anchor> |
||
240 | </Anchors> |
||
241 | </Button> |
||
242 | <Button name="$parentItem9" inherits="PetFeederUnlikedItemButtonTemplate" id="9" hidden="true"> |
||
243 | <Anchors> |
||
244 | <Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT"> |
||
245 | <Offset> |
||
246 | <AbsDimension x="0" y="1"/> |
||
247 | </Offset> |
||
248 | </Anchor> |
||
249 | </Anchors> |
||
250 | </Button> |
||
251 | <Button name="$parentItem10" inherits="PetFeederUnlikedItemButtonTemplate" id="10" hidden="true"> |
||
252 | <Anchors> |
||
253 | <Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT"> |
||
254 | <Offset> |
||
255 | <AbsDimension x="0" y="1"/> |
||
256 | </Offset> |
||
257 | </Anchor> |
||
258 | </Anchors> |
||
259 | </Button> |
||
260 | <Button name="$parentItem11" inherits="PetFeederUnlikedItemButtonTemplate" id="11" hidden="true"> |
||
261 | <Anchors> |
||
262 | <Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT"> |
||
263 | <Offset> |
||
264 | <AbsDimension x="0" y="1"/> |
||
265 | </Offset> |
||
266 | </Anchor> |
||
267 | </Anchors> |
||
268 | </Button> |
||
269 | <Button name="$parentItem12" inherits="PetFeederUnlikedItemButtonTemplate" id="12" hidden="true"> |
||
270 | <Anchors> |
||
271 | <Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT"> |
||
272 | <Offset> |
||
273 | <AbsDimension x="0" y="1"/> |
||
274 | </Offset> |
||
275 | </Anchor> |
||
276 | </Anchors> |
||
277 | </Button> |
||
278 | <Button name="$parentItem13" inherits="PetFeederUnlikedItemButtonTemplate" id="13" hidden="true"> |
||
279 | <Anchors> |
||
280 | <Anchor point="TOPLEFT" relativeTo="$parentItem12" relativePoint="BOTTOMLEFT"> |
||
281 | <Offset> |
||
282 | <AbsDimension x="0" y="1"/> |
||
283 | </Offset> |
||
284 | </Anchor> |
||
285 | </Anchors> |
||
286 | </Button> |
||
287 | <Button name="$parentItem14" inherits="PetFeederUnlikedItemButtonTemplate" id="14" hidden="true"> |
||
288 | <Anchors> |
||
289 | <Anchor point="TOPLEFT" relativeTo="$parentItem13" relativePoint="BOTTOMLEFT"> |
||
290 | <Offset> |
||
291 | <AbsDimension x="0" y="1"/> |
||
292 | </Offset> |
||
293 | </Anchor> |
||
294 | </Anchors> |
||
295 | </Button> |
||
296 | |||
297 | -- List box scroller pane |
||
298 | <ScrollFrame name="$parentListScrollFrame" inherits="ClassTrainerListScrollFrameTemplate"> |
||
299 | <Size> |
||
300 | <AbsDimension x="296" y="215"/> |
||
301 | </Size> |
||
302 | <Anchors> |
||
303 | <Anchor point="TOPRIGHT" relativeTo="$parentFoodsText" relativePoint="BOTTOMRIGHT"> |
||
304 | <Offset> |
||
305 | <AbsDimension x="0" y="-46"/> |
||
306 | </Offset> |
||
307 | </Anchor> |
||
308 | </Anchors> |
||
309 | <Scripts> |
||
310 | <OnVerticalScroll> |
||
311 | FauxScrollFrame_OnVerticalScroll(PETFEEDER_ITEM_HEIGHT, PetFeeder_UnlikedFoodsFrame_Update); |
||
312 | </OnVerticalScroll> |
||
313 | </Scripts> |
||
314 | </ScrollFrame> |
||
315 | <Button name="$parentFeedButton"> |
||
316 | <Size> |
||
317 | <AbsDimension x="96" y="18"/> |
||
318 | </Size> |
||
319 | <Anchors> |
||
320 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> |
||
321 | <Offset> |
||
322 | <AbsDimension x="-140" y="105"/> |
||
323 | </Offset> |
||
324 | </Anchor> |
||
325 | </Anchors> |
||
326 | <Scripts> |
||
327 | <OnClick>PetFeeder_Feed(); |
||
328 | this:GetParent():Hide(); |
||
329 | this:GetParent():Show(); |
||
330 | </OnClick> |
||
331 | </Scripts> |
||
332 | <NormalTexture inherits="DialogButtonNormalTexture"/> |
||
333 | <PushedTexture inherits="DialogButtonPushedTexture"/> |
||
334 | <HighlightTexture inherits="DialogButtonHighlightTexture"/> |
||
335 | <NormalText inherits="GameFontNormal" text="PETFEEDER_FEED_PET"/> |
||
336 | </Button> |
||
337 | |||
338 | <Frame name="$parentSortOption_WidgetGroup" hidden="false"> |
||
339 | <Size> |
||
340 | <AbsDimension x="320" y="45"/> |
||
341 | </Size> |
||
342 | <Anchors> |
||
343 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
||
344 | <Offset> |
||
345 | <AbsDimension x="-15" y="140"/> |
||
346 | </Offset> |
||
347 | </Anchor> |
||
348 | </Anchors> |
||
349 | <Layers> |
||
350 | <Layer level="ARTWORK"> |
||
351 | <FontString inherits="GameFontNormalSmall" name="$parentFeedSortOption" text="PETFEEDER_SORT1"> |
||
352 | <Anchors> |
||
353 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> |
||
354 | <Offset> |
||
355 | <AbsDimension x="50" y="0"/> |
||
356 | </Offset> |
||
357 | </Anchor> |
||
358 | </Anchors> |
||
359 | </FontString> |
||
360 | </Layer> |
||
361 | </Layers> |
||
362 | </Frame> |
||
363 | |||
364 | |||
365 | |||
366 | |||
367 | |||
368 | <Button name="$parentSortOptionDropDown" inherits="UIDropDownMenuTemplate"> |
||
369 | <Size> |
||
370 | <AbsDimension x="50" y="45"/> |
||
371 | </Size> |
||
372 | <Anchors> |
||
373 | <Anchor point="TOP" relativePoint="TOP" relativeTo="$parentSortOption_WidgetGroup"> |
||
374 | <Offset> |
||
375 | <AbsDimension x="41" y="9"/> |
||
376 | </Offset> |
||
377 | </Anchor> |
||
378 | </Anchors> |
||
379 | <Scripts> |
||
380 | <OnLoad> |
||
381 | PetFeeder_UnlikedFoodsFrameSortOptionDropDown_OnLoad(); |
||
382 | </OnLoad> |
||
383 | </Scripts> |
||
384 | </Button> |
||
385 | |||
386 | <Frame name="$parentSortOption2_WidgetGroup" hidden="false"> |
||
387 | <Size> |
||
388 | <AbsDimension x="320" y="40"/> |
||
389 | </Size> |
||
390 | <Anchors> |
||
391 | <Anchor point="LEFT" relativeTo="$parentSortOption_WidgetGroup" relativePoint="TOPLEFT"> |
||
392 | <Offset> |
||
393 | <AbsDimension x="0" y="-45"/> |
||
394 | </Offset> |
||
395 | </Anchor> |
||
396 | </Anchors> |
||
397 | <Layers> |
||
398 | <Layer level="ARTWORK"> |
||
399 | <FontString inherits="GameFontNormalSmall" name="$parentFeedSortOption2" text="PETFEEDER_SORT2"> |
||
400 | <Anchors> |
||
401 | <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> |
||
402 | <Offset> |
||
403 | <AbsDimension x="50" y="0"/> |
||
404 | </Offset> |
||
405 | </Anchor> |
||
406 | </Anchors> |
||
407 | </FontString> |
||
408 | </Layer> |
||
409 | </Layers> |
||
410 | </Frame> |
||
411 | |||
412 | <Button name="$parentSortOption2DropDown" inherits="UIDropDownMenuTemplate"> |
||
413 | <Size> |
||
414 | <AbsDimension x="50" y="45"/> |
||
415 | </Size> |
||
416 | <Anchors> |
||
417 | <Anchor point="TOP" relativePoint="TOP" relativeTo="$parentSortOption2_WidgetGroup"> |
||
418 | <Offset> |
||
419 | <AbsDimension x="41" y="9"/> |
||
420 | </Offset> |
||
421 | </Anchor> |
||
422 | </Anchors> |
||
423 | <Scripts> |
||
424 | <OnLoad> |
||
425 | PetFeeder_UnlikedFoodsFrameSortOption2DropDown_OnLoad(); |
||
426 | </OnLoad> |
||
427 | </Scripts> |
||
428 | </Button> |
||
429 | |||
430 | </Frames> |
||
431 | <Scripts> |
||
432 | <OnReceiveDrag> |
||
433 | getglobal(this:GetName().."_OnReceiveDrag")(); |
||
434 | </OnReceiveDrag> |
||
435 | <OnShow> |
||
436 | getglobal(this:GetName().."_OnShow")(); |
||
437 | </OnShow> |
||
438 | </Scripts> |
||
439 | </Frame> |
||
440 | |||
441 | </Ui> |