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/ ..\FrameXML\UI.xsd">
2 <Script file="Prowler.lua"/>
3 <Frame name = "ProwlerFrame">
4 <Scripts>
5 <OnLoad>
6 Prowler_OnLoad();
7 </OnLoad>
8 <OnEvent>
9 Prowler_OnEvent(arg1);
10 </OnEvent>
11 </Scripts>
12 </Frame>
13  
14 <Frame name="ProwlerFrames" hidden="true" toplevel="true" virtual="true" frameStrata="DIALOG" parent="UIParent">
15 <Size>
16 <AbsDimension x="200" y="380"/>
17 </Size>
18 <Anchors>
19 <Anchor point="CENTER"/>
20 </Anchors>
21 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
22 <TileSize>
23 <AbsValue val="64"/>
24 </TileSize>
25 <EdgeSize>
26 <AbsValue val="32"/>
27 </EdgeSize>
28 <BackgroundInsets>
29 <AbsInset left="11" right="12" top="12" bottom="11"/>
30 </BackgroundInsets>
31 </Backdrop>
32 </Frame>
33  
34 <Frame name="ProwlerTitleFrames" hidden="false" toplevel="true" virtual="true" frameStrata="DIALOG" parent="ProwlerFrames">
35 <Size>
36 <AbsDimension x="130" y="50"/>
37 </Size>
38 <Anchors>
39 <Anchor point="TOP"/>
40 </Anchors>
41 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
42 <TileSize>
43 <AbsValue val="64"/>
44 </TileSize>
45 <EdgeSize>
46 <AbsValue val="32"/>
47 </EdgeSize>
48 <BackgroundInsets>
49 <AbsInset left="11" right="12" top="12" bottom="11"/>
50 </BackgroundInsets>
51 </Backdrop>
52 </Frame>
53  
54 <Frame name="Prowler1" inherits="ProwlerFrames" movable="true" enableMouse="true">
55 <Layers>
56 <Layer level="ARTWORK">
57 <FontString name="$parent_Text1" inherits="GameFontNormal" text="Main Bar">
58 <Anchors>
59 <Anchor point="TOPLEFT">
60 <Offset>
61 <AbsDimension x="65" y="-37"/>
62 </Offset>
63 </Anchor>
64 </Anchors>
65 </FontString>
66 <FontString name="$parent_Text2" inherits="GameFontNormal" text="Prowl Bar">
67 <Anchors>
68 <Anchor point="TOPLEFT">
69 <Offset>
70 <AbsDimension x="65" y="-97"/>
71 </Offset>
72 </Anchor>
73 </Anchors>
74 </FontString>
75 <FontString name="$parent_Text2" inherits="GameFontNormal" text="Cat Mode">
76 <Anchors>
77 <Anchor point="TOPLEFT">
78 <Offset>
79 <AbsDimension x="65" y="-157"/>
80 </Offset>
81 </Anchor>
82 </Anchors>
83 </FontString>
84 <FontString name="$parent_Text2" inherits="GameFontNormal" text="Track Mode">
85 <Anchors>
86 <Anchor point="TOPLEFT">
87 <Offset>
88 <AbsDimension x="65" y="-217"/>
89 </Offset>
90 </Anchor>
91 </Anchors>
92 </FontString>
93 </Layer>
94 </Layers>
95 <Frames>
96 <Frame name="$parent_TitleText" inherits="ProwlerTitleFrames" parent= "Prowler1">
97 <Anchors>
98 <Anchor point="TOP">
99 <Offset>
100 <AbsDimension x="0" y="20"/>
101 </Offset>
102 </Anchor>
103 </Anchors>
104 <Layers>
105 <Layer level="BACKGROUND">
106 <Texture name="$parentTexture">
107 <Size>
108 <AbsDimension x="117" y="37"/>
109 </Size>
110 <Anchors>
111 <Anchor point="CENTER" />
112 </Anchors>
113 <Color r="0" g="0" b="0" a="1" />
114 </Texture>
115 </Layer>
116 <Layer level="ARTWORK">
117 <FontString name="$parent_Text3" inherits="GameFontNormal" text="Prowler 1.8">
118 <Anchors>
119 <Anchor point="CENTER"/>
120 </Anchors>
121 </FontString>
122 </Layer>
123 </Layers>
124 <Script>
125 <OnLoad>
126 Prowler1_TitleText:Show();
127 </OnLoad>
128 </Script>
129 </Frame>
130 <CheckButton name="$parent_CheckButton1" inherits="UICheckButtonTemplate" id="16" text="Hello">
131 <Size>
132 <AbsDimension x="20" y="20"/>
133 </Size>
134 <Anchors>
135 <Anchor point="TOPLEFT">
136 <Offset>
137 <AbsDimension x="13" y="-330"/>
138 </Offset>
139 </Anchor>
140 </Anchors>
141 <Scripts>
142 <OnLoad>
143 getglobal(this:GetName().."Text"):SetText("Enable/Disable");
144 getglobal(this:GetName()):SetChecked(toggle);
145 </OnLoad>
146 <OnClick>
147 Prowler_OnClick1(arg1)
148 </OnClick>
149 </Scripts>
150 </CheckButton>
151 <CheckButton name="$parent_CheckButton2" inherits="UICheckButtonTemplate" id="16" text="Hello">
152 <Size>
153 <AbsDimension x="20" y="20"/>
154 </Size>
155 <Anchors>
156 <Anchor point="TOPLEFT">
157 <Offset>
158 <AbsDimension x="13" y="-350"/>
159 </Offset>
160 </Anchor>
161 </Anchors>
162 <Scripts>
163 <OnLoad>
164 getglobal(this:GetName().."Text"):SetText("Lock Window");
165 getglobal(this:GetName()):SetChecked(locked);
166 </OnLoad>
167 <OnClick>
168 Prowler_OnClick2(arg1)
169 </OnClick>
170 </Scripts>
171 </CheckButton>
172  
173 <CheckButton name="$parent_CheckButton5" inherits="UICheckButtonTemplate" id="16" text="Hello">
174 <Size>
175 <AbsDimension x="20" y="20"/>
176 </Size>
177 <Anchors>
178 <Anchor point="TOPLEFT">
179 <Offset>
180 <AbsDimension x="13" y="-310"/>
181 </Offset>
182 </Anchor>
183 </Anchors>
184 <Scripts>
185 <OnLoad>
186 getglobal(this:GetName().."Text"):SetText("Bear and Charge");
187 getglobal(this:GetName()):SetChecked(charg_toggle);
188 </OnLoad>
189 <OnClick>
190 Prowler_OnClick5(arg1)
191 </OnClick>
192 </Scripts>
193 </CheckButton>
194  
195 <CheckButton name="$parent_CheckButton3" inherits="UICheckButtonTemplate" id="16" text="Hello">
196 <Size>
197 <AbsDimension x="20" y="20"/>
198 </Size>
199 <Anchors>
200 <Anchor point="TOPLEFT">
201 <Offset>
202 <AbsDimension x="13" y="-290"/>
203 </Offset>
204 </Anchor>
205 </Anchors>
206 <Scripts>
207 <OnLoad>
208 getglobal(this:GetName().."Text"):SetText("Last Used Bar");
209 getglobal(this:GetName()):SetChecked(prev);
210 </OnLoad>
211 <OnClick>
212 Prowler_OnClick3(arg1)
213 </OnClick>
214 </Scripts>
215 </CheckButton>
216 <CheckButton name="$parent_CheckButton4" inherits="UICheckButtonTemplate" id="16" text="Hello">
217 <Size>
218 <AbsDimension x="20" y="20"/>
219 </Size>
220 <Anchors>
221 <Anchor point="TOPLEFT">
222 <Offset>
223 <AbsDimension x="13" y="-270"/>
224 </Offset>
225 </Anchor>
226 </Anchors>
227 <Scripts>
228 <OnLoad>
229 getglobal(this:GetName().."Text"):SetText("MoveAnything! Fix");
230 getglobal(this:GetName()):SetChecked(MA_toggle);
231 </OnLoad>
232 <OnClick>
233 Prowler_OnClick4(arg1)
234 </OnClick>
235 </Scripts>
236 </CheckButton>
237 <Button name="$parent_Button1" inherits="UIPanelCloseButton">
238 <Anchors>
239 <Anchor point="TOPRIGHT">
240 <Offset>
241 <AbsDimension x="-4" y="-4"/>
242 </Offset>
243 </Anchor>
244 </Anchors>
245 </Button>
246 <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="7" defaultValue="1" valueStep="1">
247 <Anchors>
248 <Anchor point="TOPLEFT">
249 <Offset>
250 <AbsDimension x="40" y="-60" />
251 </Offset>
252 </Anchor>
253 </Anchors>
254 <Scripts>
255 <OnLoad>
256 Prowler_InitSlider1(this:GetName(),main_ab);
257 </OnLoad>
258 <OnValueChanged> <!-- we need to update the text on value change -->
259 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
260 main_ab = getglobal(this:GetName()):GetValue()
261 </OnValueChanged>
262 </Scripts>
263 </Slider>
264 <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="1" maxValue="7" defaultValue="1" valueStep="1">
265 <Anchors>
266 <Anchor point="TOPLEFT">
267 <Offset>
268 <AbsDimension x="40" y="-120" />
269 </Offset>
270 </Anchor>
271 </Anchors>
272 <Scripts>
273 <OnLoad>
274 Prowler_InitSlider1(this:GetName(),prowl_ab);
275 </OnLoad>
276 <OnValueChanged> <!-- we need to update the text on value change -->
277 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
278 prowl_ab = getglobal(this:GetName()):GetValue()
279 </OnValueChanged>
280 </Scripts>
281 </Slider>
282 <Slider name="$parent_Slider3" inherits="OptionsSliderTemplate" minValue="1" maxValue="3" defaultValue="1" valueStep="1">
283 <Anchors>
284 <Anchor point="TOPLEFT">
285 <Offset>
286 <AbsDimension x="40" y="-180" />
287 </Offset>
288 </Anchor>
289 </Anchors>
290 <Scripts>
291 <OnLoad>
292 Prowler_InitSlider2(this:GetName(),cat_mode);
293 </OnLoad>
294 <OnValueChanged> <!-- we need to update the text on value change -->
295 cat_mode = getglobal(this:GetName()):GetValue()
296 if (cat_mode == 1) then
297 getglobal(this:GetName().."Text"):SetText("Cat Only");
298 elseif (cat_mode == 2) then
299 getglobal(this:GetName().."Text"):SetText("Prowl Only");
300 elseif (cat_mode == 3) then
301 getglobal(this:GetName().."Text"):SetText("Prowl and Unprowl");
302 end
303 </OnValueChanged>
304 </Scripts>
305 </Slider>
306 <Slider name="$parent_Slider4" inherits="OptionsSliderTemplate" minValue="1" maxValue="3" defaultValue="1" valueStep="1">
307 <Anchors>
308 <Anchor point="TOPLEFT">
309 <Offset>
310 <AbsDimension x="40" y="-240" />
311 </Offset>
312 </Anchor>
313 </Anchors>
314 <Scripts>
315 <OnLoad>
316 Prowler_InitSlider3(this:GetName(),track_mode);
317 </OnLoad>
318 <OnValueChanged> <!-- we need to update the text on value change -->
319 track_mode = getglobal(this:GetName()):GetValue()
320 if (track_mode == 1) then
321 getglobal(this:GetName().."Text"):SetText("Never Track");
322 elseif (track_mode == 2) then
323 getglobal(this:GetName().."Text"):SetText("Out of Combat");
324 elseif (track_mode == 3) then
325 getglobal(this:GetName().."Text"):SetText("Anytime");
326 end
327 </OnValueChanged>
328 </Scripts>
329 </Slider>
330 </Frames>
331 <Scripts>
332 <OnMouseUp>
333 if ( this.isMoving ) then
334 this:StopMovingOrSizing();
335 this.isMoving = false;
336 end
337 </OnMouseUp>
338 <OnMouseDown>
339 if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
340 this:StartMoving();
341 this.isMoving = true;
342 end
343 </OnMouseDown>
344 <OnHide>
345 if ( this.isMoving ) then
346 this:StopMovingOrSizing();
347 this.isMoving = false;
348 end
349 </OnHide>
350 </Scripts>
351 </Frame>
352  
353 <GameTooltip name="ProwlerTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate"/>
354 </Ui>