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_OptionsFrame.lua"/>
4 <Script file="localization.lua"/>
5  
6 <!--Button Widget Template-->
7 <Button name="PetFeederItemButtonTemplate" enableMouse="true" virtual="true">
8 <Size>
9 <AbsDimension x="295" y="15"/>
10 </Size>
11 <NormalText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
12 <Size>
13 <AbsDimension x="275" y="12"/>
14 </Size>
15 <Anchors>
16 <Anchor point="LEFT">
17 <Offset>
18 <AbsDimension x="20" y="0"/>
19 </Offset>
20 </Anchor>
21 </Anchors>
22 </NormalText>
23 <Scripts>
24 <OnClick>
25 PetFeederItemButton_OnClick(arg1);
26 </OnClick>
27 <OnReceiveDrag>
28 PetFeeder_OnReceiveDrag();
29 </OnReceiveDrag>
30 </Scripts>
31 <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
32 <HighlightText name="$parentHighlightText" inherits="GameFontHighlight" justifyH="LEFT">
33 <Size>
34 <AbsDimension x="275" y="12"/>
35 </Size>
36 <Anchors>
37 <Anchor point="LEFT">
38 <Offset>
39 <AbsDimension x="20" y="0"/>
40 </Offset>
41 </Anchor>
42 </Anchors>
43 </HighlightText>
44 </Button>
45  
46 <CheckButton name="PetFeeder_Template_CheckBt" enableMouse="true" virtual="true">
47 <Size>
48 <AbsDimension x="24" y="24"/>
49 </Size>
50 <Anchors>
51 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"/>
52 </Anchors>
53 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
54 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
55 <DisabledTexture file="Interface\Buttons\UI-CheckBox-Up"/>
56 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Up"/>
57 <NormalText inherits="GameFontNormalSmall" justifyH="LEFT">
58 <Anchors>
59 <Anchor point="LEFT" relativePoint="RIGHT"/>
60 </Anchors>
61 </NormalText>
62 <HighlightText inherits="GameFontHighlightSmall" justifyH="LEFT">
63 <Anchors>
64 <Anchor point="LEFT" relativePoint="RIGHT"/>
65 </Anchors>
66 </HighlightText>
67 <DisabledText inherits="GameFontDisableSmall" justifyH="LEFT">
68 <Anchors>
69 <Anchor point="LEFT" relativePoint="RIGHT"/>
70 </Anchors>
71 </DisabledText>
72 <PushedTextOffset>
73 <AbsDimension x="2" y="-2"/>
74 </PushedTextOffset>
75 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
76 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
77 <Scripts>
78 <OnEnter>
79 if ( this.tooltipText ) then
80 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
81 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
82 end
83 if ( this.tooltipRequirement ) then
84 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
85 GameTooltip:Show();
86 end
87 </OnEnter>
88 <OnLeave>
89 GameTooltip:Hide();
90 </OnLeave>
91 <OnClick>
92 getglobal(this:GetName().."_Update")(this:GetChecked());
93 </OnClick>
94 </Scripts>
95 </CheckButton>
96  
97 -- Interface viewable objects
98  
99 <Frame name="PetFeeder_OptionsFrame" setAllPoints="true" enableMouse="true" parent="PetFeederFrame" hidden="true" id="1">
100 <HitRectInsets>
101 <AbsInset left="0" right="30" top="0" bottom="75"/>
102 </HitRectInsets>
103 <Layers>
104 <Layer level="BACKGROUND">
105 <Texture name="KillLog_ListFrameHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
106 <Size>
107 <AbsDimension x="256" y="16"/>
108 </Size>
109 <Anchors>
110 <Anchor point="TOPLEFT">
111 <Offset>
112 <AbsDimension x="15" y="-312"/>
113 </Offset>
114 </Anchor>
115 </Anchors>
116 <TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
117 </Texture>
118 <Texture name="KillLog_ListFrameHorizontalBarRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
119 <Size>
120 <AbsDimension x="75" y="16"/>
121 </Size>
122 <Anchors>
123 <Anchor point="LEFT" relativeTo="KillLog_ListFrameHorizontalBarLeft" relativePoint="RIGHT">
124 <Offset>
125 <AbsDimension x="0" y="0"/>
126 </Offset>
127 </Anchor>
128 </Anchors>
129 <TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
130 </Texture>
131 </Layer>
132 </Layers>
133 <Frames>
134 <CheckButton name="PetFeeder_PF_Enabled_CheckBt" text="PETFEEDER_ENABLE" inherits="PetFeeder_Template_CheckBt" parent="PetFeeder_OptionsFrame">
135 <Size>
136 <AbsDimension x="32" y="32"/>
137 </Size>
138 <Anchors>
139 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
140 <Offset>
141 <AbsDimension x="60" y="-50"/>
142 </Offset>
143 </Anchor>
144 </Anchors>
145 <Scripts>
146 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.Enabled);</OnShow>
147 </Scripts>
148 </CheckButton>
149 <CheckButton name="PetFeeder_PF_AutoFindFood_CheckBt" text="PETFEEDER_AUTODETECT" inherits="PetFeeder_Template_CheckBt" parent="PetFeeder_OptionsFrame">
150 <Size>
151 <AbsDimension x="32" y="32"/>
152 </Size>
153 <Anchors>
154 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="PetFeeder_PF_Enabled_CheckBt">
155 <Offset>
156 <AbsDimension x="0" y="-20"/>
157 </Offset>
158 </Anchor>
159 </Anchors>
160 <Scripts>
161 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.AutoFindFood);</OnShow>
162 </Scripts>
163 </CheckButton>
164 <CheckButton name="PetFeeder_PF_Alerts_CheckBt" text="PETFEEDER_ENABLE_ALERTS" inherits="PetFeeder_Template_CheckBt" parent="PetFeeder_OptionsFrame">
165 <Size>
166 <AbsDimension x="32" y="32"/>
167 </Size>
168 <Anchors>
169 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="PetFeeder_PF_Enabled_CheckBt">
170 <Offset>
171 <AbsDimension x="135" y="0"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 <Scripts>
176 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.Alert);</OnShow>
177 </Scripts>
178 </CheckButton>
179 <CheckButton name="PetFeeder_PF_SkipBuffFoods_CheckBt" text="PETFEEDER_SKIPBUFF_FOODS" inherits="PetFeeder_Template_CheckBt" parent="PetFeeder_OptionsFrame">
180 <Size>
181 <AbsDimension x="32" y="32"/>
182 </Size>
183 <Anchors>
184 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="PetFeeder_PF_AutoFindFood_CheckBt">
185 <Offset>
186 <AbsDimension x="0" y="-20"/>
187 </Offset>
188 </Anchor>
189 </Anchors>
190 <Scripts>
191 <OnShow>getglobal(this:GetName()):SetChecked(PeetFeederPlayer_Config.skipBuffFoods);</OnShow>
192 </Scripts>
193 </CheckButton>
194 <Frame name="PetFeeder_Threshold_WidgetGroup" hidden="false">
195 <Size>
196 <AbsDimension x="320" y="45"/>
197 </Size>
198 <Anchors>
199 <Anchor point="LEFT" relativeTo="PetFeeder_PF_SkipBuffFoods_CheckBt" relativePoint="LEFT">
200 <Offset>
201 <AbsDimension x="-37" y="-30"/>
202 </Offset>
203 </Anchor>
204 </Anchors>
205 <Layers>
206 <Layer level="OVERLAY">
207 <FontString inherits="GameFontNormalSmall" name="$parentFeedThreshold" text="PETFEEDER_FEEDING_THRESHOLD">
208 <Anchors>
209 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
210 <Offset>
211 <AbsDimension x="24" y="-18"/>
212 </Offset>
213 </Anchor>
214 </Anchors>
215 </FontString>
216 </Layer>
217 </Layers>
218 </Frame>
219  
220 <Button name="PetFeederFrameDropDown" inherits="UIDropDownMenuTemplate">
221 <Anchors>
222 <Anchor point="TOP" relativePoint="TOP" relativeTo="PetFeeder_Threshold_WidgetGroup">
223 <Offset>
224 <AbsDimension x="31" y="-10"/>
225 </Offset>
226 </Anchor>
227 </Anchors>
228 <Scripts>
229 <OnLoad>
230 PetFeederFrameDropDown_OnLoad();
231 </OnLoad>
232 </Scripts>
233 </Button>
234  
235 -- Sorting
236 <Frame name="$parentSortOption_WidgetGroup" hidden="false">
237 <Size>
238 <AbsDimension x="320" y="45"/>
239 </Size>
240 <Anchors>
241 <Anchor point="TOPLEFT" relativeTo="PetFeeder_Threshold_WidgetGroup" relativePoint="TOPLEFT">
242 <Offset>
243 <AbsDimension x="15" y="-60"/>
244 </Offset>
245 </Anchor>
246 </Anchors>
247 <Layers>
248 <Layer level="ARTWORK">
249 <FontString inherits="GameFontNormalSmall" name="$parentFeedSortOption" text="PETFEEDER_FOODS">
250 <Anchors>
251 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
252 <Offset>
253 <AbsDimension x="30" y="16"/>
254 </Offset>
255 </Anchor>
256 </Anchors>
257 </FontString>
258 <FontString inherits="GameFontNormalSmall" name="$parentFeedSortOption" text="PETFEEDER_SORT1">
259 <Anchors>
260 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
261 <Offset>
262 <AbsDimension x="50" y="0"/>
263 </Offset>
264 </Anchor>
265 </Anchors>
266 </FontString>
267 </Layer>
268 </Layers>
269 </Frame>
270  
271 <Button name="$parentSortOptionDropDown" inherits="UIDropDownMenuTemplate">
272 <Size>
273 <AbsDimension x="50" y="45"/>
274 </Size>
275 <Anchors>
276 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parentSortOption_WidgetGroup">
277 <Offset>
278 <AbsDimension x="41" y="9"/>
279 </Offset>
280 </Anchor>
281 </Anchors>
282 <Scripts>
283 <OnLoad>
284 PetFeeder_OptionsFrameSortOptionDropDown_OnLoad();
285 </OnLoad>
286 </Scripts>
287 </Button>
288  
289 <Frame name="$parentSortOption2_WidgetGroup" hidden="false">
290 <Size>
291 <AbsDimension x="320" y="40"/>
292 </Size>
293 <Anchors>
294 <Anchor point="LEFT" relativeTo="$parentSortOption_WidgetGroup" relativePoint="TOPLEFT">
295 <Offset>
296 <AbsDimension x="0" y="-45"/>
297 </Offset>
298 </Anchor>
299 </Anchors>
300 <Layers>
301 <Layer level="ARTWORK">
302 <FontString inherits="GameFontNormalSmall" name="$parentFeedSortOption2" text="PETFEEDER_SORT2">
303 <Anchors>
304 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
305 <Offset>
306 <AbsDimension x="50" y="0"/>
307 </Offset>
308 </Anchor>
309 </Anchors>
310 </FontString>
311 </Layer>
312 </Layers>
313 </Frame>
314  
315 <Button name="$parentSortOption2DropDown" inherits="UIDropDownMenuTemplate">
316 <Size>
317 <AbsDimension x="50" y="45"/>
318 </Size>
319 <Anchors>
320 <Anchor point="TOP" relativePoint="TOP" relativeTo="$parentSortOption2_WidgetGroup">
321 <Offset>
322 <AbsDimension x="41" y="9"/>
323 </Offset>
324 </Anchor>
325 </Anchors>
326 <Scripts>
327 <OnLoad>
328 PetFeeder_OptionsFrameSortOption2DropDown_OnLoad();
329 </OnLoad>
330 </Scripts>
331 </Button>
332  
333 <Button name="$parentFeedButton">
334 <Size>
335 <AbsDimension x="96" y="18"/>
336 </Size>
337 <Anchors>
338 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
339 <Offset>
340 <AbsDimension x="-140" y="105"/>
341 </Offset>
342 </Anchor>
343 </Anchors>
344 <Scripts>
345 <OnClick>PetFeeder_Feed();
346 this:GetParent():Hide();
347 this:GetParent():Show();
348 </OnClick>
349 </Scripts>
350 <NormalTexture inherits="DialogButtonNormalTexture"/>
351 <PushedTexture inherits="DialogButtonPushedTexture"/>
352 <HighlightTexture inherits="DialogButtonHighlightTexture"/>
353 <NormalText inherits="GameFontNormal" text="PETFEEDER_FEED_PET"/>
354 </Button>
355  
356 </Frames>
357 <Scripts>
358 <OnShow>
359 PetFeeder_OptionsFrame_OnShow();
360 </OnShow>
361 </Scripts>
362 </Frame>
363  
364 </Ui>