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="320"/>
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 </Layer>
85 </Layers>
86 <Frames>
87 <Frame name="$parent_TitleText" inherits="ProwlerTitleFrames" parent= "Prowler1">
88 <Anchors>
89 <Anchor point="TOP">
90 <Offset>
91 <AbsDimension x="0" y="20"/>
92 </Offset>
93 </Anchor>
94 </Anchors>
95 <Layers>
96 <Layer level="BACKGROUND">
97 <Texture name="$parentTexture">
98 <Size>
99 <AbsDimension x="117" y="37"/>
100 </Size>
101 <Anchors>
102 <Anchor point="CENTER" />
103 </Anchors>
104 <Color r="0" g="0" b="0" a="1" />
105 </Texture>
106 </Layer>
107 <Layer level="ARTWORK">
108 <FontString name="$parent_Text3" inherits="GameFontNormal" text="Prowler 1.7">
109 <Anchors>
110 <Anchor point="CENTER"/>
111 </Anchors>
112 </FontString>
113 </Layer>
114 </Layers>
115 <Script>
116 <OnLoad>
117 Prowler1_TitleText:Show();
118 </OnLoad>
119 </Script>
120 </Frame>
121 <CheckButton name="$parent_CheckButton1" inherits="UICheckButtonTemplate" id="16" text="Hello">
122 <Size>
123 <AbsDimension x="20" y="20"/>
124 </Size>
125 <Anchors>
126 <Anchor point="TOPLEFT">
127 <Offset>
128 <AbsDimension x="13" y="-270"/>
129 </Offset>
130 </Anchor>
131 </Anchors>
132 <Scripts>
133 <OnLoad>
134 getglobal(this:GetName().."Text"):SetText("Enable/Disable");
135 getglobal(this:GetName()):SetChecked(toggle);
136 </OnLoad>
137 <OnClick>
138 Prowler_OnClick1(arg1)
139 </OnClick>
140 </Scripts>
141 </CheckButton>
142 <CheckButton name="$parent_CheckButton2" inherits="UICheckButtonTemplate" id="16" text="Hello">
143 <Size>
144 <AbsDimension x="20" y="20"/>
145 </Size>
146 <Anchors>
147 <Anchor point="TOPLEFT">
148 <Offset>
149 <AbsDimension x="13" y="-290"/>
150 </Offset>
151 </Anchor>
152 </Anchors>
153 <Scripts>
154 <OnLoad>
155 getglobal(this:GetName().."Text"):SetText("Lock Window");
156 getglobal(this:GetName()):SetChecked(locked);
157 </OnLoad>
158 <OnClick>
159 Prowler_OnClick2(arg1)
160 </OnClick>
161 </Scripts>
162 </CheckButton>
163  
164 <CheckButton name="$parent_CheckButton5" inherits="UICheckButtonTemplate" id="16" text="Hello">
165 <Size>
166 <AbsDimension x="20" y="20"/>
167 </Size>
168 <Anchors>
169 <Anchor point="TOPLEFT">
170 <Offset>
171 <AbsDimension x="13" y="-250"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 <Scripts>
176 <OnLoad>
177 getglobal(this:GetName().."Text"):SetText("Bear and Charge");
178 getglobal(this:GetName()):SetChecked(charg_toggle);
179 </OnLoad>
180 <OnClick>
181 Prowler_OnClick5(arg1)
182 </OnClick>
183 </Scripts>
184 </CheckButton>
185  
186 <CheckButton name="$parent_CheckButton3" inherits="UICheckButtonTemplate" id="16" text="Hello">
187 <Size>
188 <AbsDimension x="20" y="20"/>
189 </Size>
190 <Anchors>
191 <Anchor point="TOPLEFT">
192 <Offset>
193 <AbsDimension x="13" y="-230"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 <Scripts>
198 <OnLoad>
199 getglobal(this:GetName().."Text"):SetText("Last Used Bar");
200 getglobal(this:GetName()):SetChecked(prev);
201 </OnLoad>
202 <OnClick>
203 Prowler_OnClick3(arg1)
204 </OnClick>
205 </Scripts>
206 </CheckButton>
207 <CheckButton name="$parent_CheckButton4" inherits="UICheckButtonTemplate" id="16" text="Hello">
208 <Size>
209 <AbsDimension x="20" y="20"/>
210 </Size>
211 <Anchors>
212 <Anchor point="TOPLEFT">
213 <Offset>
214 <AbsDimension x="13" y="-210"/>
215 </Offset>
216 </Anchor>
217 </Anchors>
218 <Scripts>
219 <OnLoad>
220 getglobal(this:GetName().."Text"):SetText("MoveAnything! Fix");
221 getglobal(this:GetName()):SetChecked(MA_toggle);
222 </OnLoad>
223 <OnClick>
224 Prowler_OnClick4(arg1)
225 </OnClick>
226 </Scripts>
227 </CheckButton>
228 <Button name="$parent_Button1" inherits="UIPanelCloseButton">
229 <Anchors>
230 <Anchor point="TOPRIGHT">
231 <Offset>
232 <AbsDimension x="-4" y="-4"/>
233 </Offset>
234 </Anchor>
235 </Anchors>
236 </Button>
237 <Slider name="$parent_Slider1" inherits="OptionsSliderTemplate" minValue="1" maxValue="7" defaultValue="1" valueStep="1">
238 <Anchors>
239 <Anchor point="TOPLEFT">
240 <Offset>
241 <AbsDimension x="40" y="-60" />
242 </Offset>
243 </Anchor>
244 </Anchors>
245 <Scripts>
246 <OnLoad>
247 Prowler_InitSlider1(this:GetName(),main_ab);
248 </OnLoad>
249 <OnValueChanged> <!-- we need to update the text on value change -->
250 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
251 main_ab = getglobal(this:GetName()):GetValue()
252 </OnValueChanged>
253 </Scripts>
254 </Slider>
255 <Slider name="$parent_Slider2" inherits="OptionsSliderTemplate" minValue="1" maxValue="7" defaultValue="1" valueStep="1">
256 <Anchors>
257 <Anchor point="TOPLEFT">
258 <Offset>
259 <AbsDimension x="40" y="-120" />
260 </Offset>
261 </Anchor>
262 </Anchors>
263 <Scripts>
264 <OnLoad>
265 Prowler_InitSlider1(this:GetName(),prowl_ab);
266 </OnLoad>
267 <OnValueChanged> <!-- we need to update the text on value change -->
268 getglobal(this:GetName().."Text"):SetText(getglobal(this:GetName()):GetValue());
269 prowl_ab = getglobal(this:GetName()):GetValue()
270 </OnValueChanged>
271 </Scripts>
272 </Slider>
273 <Slider name="$parent_Slider3" inherits="OptionsSliderTemplate" minValue="1" maxValue="3" defaultValue="1" valueStep="1">
274 <Anchors>
275 <Anchor point="TOPLEFT">
276 <Offset>
277 <AbsDimension x="40" y="-180" />
278 </Offset>
279 </Anchor>
280 </Anchors>
281 <Scripts>
282 <OnLoad>
283 Prowler_InitSlider2(this:GetName(),cat_mode);
284 </OnLoad>
285 <OnValueChanged> <!-- we need to update the text on value change -->
286 cat_mode = getglobal(this:GetName()):GetValue()
287 if (cat_mode == 1) then
288 getglobal(this:GetName().."Text"):SetText("Cat Only");
289 elseif (cat_mode == 2) then
290 getglobal(this:GetName().."Text"):SetText("Prowl Only");
291 elseif (cat_mode == 3) then
292 getglobal(this:GetName().."Text"):SetText("Prowl and Unprowl");
293 end
294 </OnValueChanged>
295 </Scripts>
296 </Slider>
297 </Frames>
298 <Scripts>
299 <OnMouseUp>
300 if ( this.isMoving ) then
301 this:StopMovingOrSizing();
302 this.isMoving = false;
303 end
304 </OnMouseUp>
305 <OnMouseDown>
306 if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
307 this:StartMoving();
308 this.isMoving = true;
309 end
310 </OnMouseDown>
311 <OnHide>
312 if ( this.isMoving ) then
313 this:StopMovingOrSizing();
314 this.isMoving = false;
315 end
316 </OnHide>
317 </Scripts>
318 </Frame>
319  
320 <GameTooltip name="ProwlerTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate"/>
321 </Ui>