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/ C:ProjectsWoWBinInterfaceFrameXMLUI.xsd">
2  
3 <Script file="PetFeeder_ApprovedFoodsFrame.lua"/>
4 <Script file="localization.lua"/>
5  
6 <!--Button Widget Template-->
7 <Button name="PetFeederApprovedItemButtonTemplate" 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_ApprovedFoodsFrameItemButton_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_ApprovedFoodsFrameItemButton_OnClick(arg1,this:GetText());
59 </OnClick>
60 <OnReceiveDrag>
61 PetFeeder_ApprovedFoodsFrame_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_ApprovedFoodsFrame" setAllPoints="true" enableMouse="true" parent="PetFeederFrame" hidden="true" id="2">
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_TAB_APPROVED">
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  
170  
171 <!-- Start of Buttons to use as ListBox -->
172 <Button name="$parentItem1" inherits="PetFeederApprovedItemButtonTemplate" id="1" hidden="true">
173 <Anchors>
174 <Anchor point="TOPLEFT" relativeTo="$parentFoodsText" relativePoint="BOTTOMLEFT">
175 <Offset>
176 <AbsDimension x="25" y="-50"/>
177 </Offset>
178 </Anchor>
179 </Anchors>
180 </Button>
181 <Button name="$parentItem2" inherits="PetFeederApprovedItemButtonTemplate" id="2" hidden="true">
182 <Anchors>
183 <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
184 <Offset>
185 <AbsDimension x="0" y="1"/>
186 </Offset>
187 </Anchor>
188 </Anchors>
189 </Button>
190 <Button name="$parentItem3" inherits="PetFeederApprovedItemButtonTemplate" id="3" hidden="true">
191 <Anchors>
192 <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
193 <Offset>
194 <AbsDimension x="0" y="1"/>
195 </Offset>
196 </Anchor>
197 </Anchors>
198 </Button>
199 <Button name="$parentItem4" inherits="PetFeederApprovedItemButtonTemplate" id="4" hidden="true">
200 <Anchors>
201 <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
202 <Offset>
203 <AbsDimension x="0" y="1"/>
204 </Offset>
205 </Anchor>
206 </Anchors>
207 </Button>
208 <Button name="$parentItem5" inherits="PetFeederApprovedItemButtonTemplate" id="5" hidden="true">
209 <Anchors>
210 <Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT">
211 <Offset>
212 <AbsDimension x="0" y="1"/>
213 </Offset>
214 </Anchor>
215 </Anchors>
216 </Button>
217 <Button name="$parentItem6" inherits="PetFeederApprovedItemButtonTemplate" id="6" hidden="true">
218 <Anchors>
219 <Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT">
220 <Offset>
221 <AbsDimension x="0" y="1"/>
222 </Offset>
223 </Anchor>
224 </Anchors>
225 </Button>
226 <Button name="$parentItem7" inherits="PetFeederApprovedItemButtonTemplate" id="7" hidden="true">
227 <Anchors>
228 <Anchor point="TOPLEFT" relativeTo="$parentItem6" relativePoint="BOTTOMLEFT">
229 <Offset>
230 <AbsDimension x="0" y="1"/>
231 </Offset>
232 </Anchor>
233 </Anchors>
234 </Button>
235 <Button name="$parentItem8" inherits="PetFeederApprovedItemButtonTemplate" id="8" hidden="true">
236 <Anchors>
237 <Anchor point="TOPLEFT" relativeTo="$parentItem7" relativePoint="BOTTOMLEFT">
238 <Offset>
239 <AbsDimension x="0" y="1"/>
240 </Offset>
241 </Anchor>
242 </Anchors>
243 </Button>
244 <Button name="$parentItem9" inherits="PetFeederApprovedItemButtonTemplate" id="9" hidden="true">
245 <Anchors>
246 <Anchor point="TOPLEFT" relativeTo="$parentItem8" relativePoint="BOTTOMLEFT">
247 <Offset>
248 <AbsDimension x="0" y="1"/>
249 </Offset>
250 </Anchor>
251 </Anchors>
252 </Button>
253 <Button name="$parentItem10" inherits="PetFeederApprovedItemButtonTemplate" id="10" hidden="true">
254 <Anchors>
255 <Anchor point="TOPLEFT" relativeTo="$parentItem9" relativePoint="BOTTOMLEFT">
256 <Offset>
257 <AbsDimension x="0" y="1"/>
258 </Offset>
259 </Anchor>
260 </Anchors>
261 </Button>
262 <Button name="$parentItem11" inherits="PetFeederApprovedItemButtonTemplate" id="11" hidden="true">
263 <Anchors>
264 <Anchor point="TOPLEFT" relativeTo="$parentItem10" relativePoint="BOTTOMLEFT">
265 <Offset>
266 <AbsDimension x="0" y="1"/>
267 </Offset>
268 </Anchor>
269 </Anchors>
270 </Button>
271 <Button name="$parentItem12" inherits="PetFeederApprovedItemButtonTemplate" id="12" hidden="true">
272 <Anchors>
273 <Anchor point="TOPLEFT" relativeTo="$parentItem11" relativePoint="BOTTOMLEFT">
274 <Offset>
275 <AbsDimension x="0" y="1"/>
276 </Offset>
277 </Anchor>
278 </Anchors>
279 </Button>
280 <Button name="$parentItem13" inherits="PetFeederApprovedItemButtonTemplate" id="13" hidden="true">
281 <Anchors>
282 <Anchor point="TOPLEFT" relativeTo="$parentItem12" relativePoint="BOTTOMLEFT">
283 <Offset>
284 <AbsDimension x="0" y="1"/>
285 </Offset>
286 </Anchor>
287 </Anchors>
288 </Button>
289 <Button name="$parentItem14" inherits="PetFeederApprovedItemButtonTemplate" id="14" hidden="true">
290 <Anchors>
291 <Anchor point="TOPLEFT" relativeTo="$parentItem13" relativePoint="BOTTOMLEFT">
292 <Offset>
293 <AbsDimension x="0" y="1"/>
294 </Offset>
295 </Anchor>
296 </Anchors>
297 </Button>
298  
299 -- List box scroller pane
300 <ScrollFrame name="$parentListScrollFrame" inherits="ClassTrainerListScrollFrameTemplate">
301 <Size>
302 <AbsDimension x="296" y="215"/>
303 </Size>
304 <Anchors>
305 <Anchor point="TOPRIGHT" relativeTo="$parentFoodsText" relativePoint="BOTTOMRIGHT">
306 <Offset>
307 <AbsDimension x="0" y="-46"/>
308 </Offset>
309 </Anchor>
310 </Anchors>
311 <Scripts>
312 <OnVerticalScroll>
313 FauxScrollFrame_OnVerticalScroll(PETFEEDER_ITEM_HEIGHT, PetFeeder_ApprovedFoodsFrame_Update);
314 </OnVerticalScroll>
315 </Scripts>
316 </ScrollFrame>
317 <Button name="$parentFeedButton">
318 <Size>
319 <AbsDimension x="96" y="18"/>
320 </Size>
321 <Anchors>
322 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
323 <Offset>
324 <AbsDimension x="-140" y="105"/>
325 </Offset>
326 </Anchor>
327 </Anchors>
328 <Scripts>
329 <OnClick>PetFeeder_Feed();
330 this:GetParent():Hide();
331 this:GetParent():Show();
332 </OnClick>
333 </Scripts>
334 <NormalTexture inherits="DialogButtonNormalTexture"/>
335 <PushedTexture inherits="DialogButtonPushedTexture"/>
336 <HighlightTexture inherits="DialogButtonHighlightTexture"/>
337 <NormalText inherits="GameFontNormal" text="PETFEEDER_FEED_PET"/>
338 </Button>
339  
340 <CheckButton name="PetFeeder_PF_FeedOnlyApproved_CheckBt" text="PETFEEDER_FEEDAPPROVED" inherits="PetFeeder_Template_CheckBt" >
341 <Size>
342 <AbsDimension x="32" y="32"/>
343 </Size>
344 <Anchors>
345 <Anchor point="BOTTOMLEFT" relativeTo="PetFeeder_ApprovedFoodsFrame" relativePoint="BOTTOMLEFT">
346 <Offset>
347 <AbsDimension x="25" y="140"/>
348 </Offset>
349 </Anchor>
350 </Anchors>
351 <Scripts>
352 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.FeedOnlyApproved);</OnShow>
353 </Scripts>
354 </CheckButton>
355 <CheckButton name="PetFeeder_PF_RequireApproval_CheckBt" text="PETFEEDER_REQUIREDAPPROVAL" inherits="PetFeeder_Template_CheckBt" >
356 <Size>
357 <AbsDimension x="32" y="32"/>
358 </Size>
359 <Anchors>
360 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="PetFeeder_PF_FeedOnlyApproved_CheckBt">
361 <Offset>
362 <AbsDimension x="0" y="-20"/>
363 </Offset>
364 </Anchor>
365 </Anchors>
366 <Scripts>
367 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.RequireApproval);</OnShow>
368 </Scripts>
369 </CheckButton>
370  
371 </Frames>
372 <Scripts>
373 <OnReceiveDrag>
374 getglobal(this:GetName().."_OnReceiveDrag")();
375 </OnReceiveDrag>
376 <OnShow>
377 getglobal(this:GetName().."_OnShow")();
378 </OnShow>
379 </Scripts>
380 </Frame>
381  
382 </Ui>