comparison RatPage.xml @ 0:bf9220814fb5

The first version of the Cyborg MMO7 addon for warcraft
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Tue, 24 Jan 2012 17:14:21 +0000
parents
children d186f8cd5000
comparison
equal deleted inserted replaced
-1:000000000000 0:bf9220814fb5
1 <Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2 <!--
3 Warcraft Plugin for Cyborg MMO7
4 Filename: RatPage.xml
5 Description: Layout and description of the command slots for the mouse.
6 Copyright (C) 2012 Mad Catz Inc.
7 Author: Christopher Hooks
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 -->
23 <!-- IconTemplate-->
24 <Button name="IconTemplate" virtual="true" inherits="SecureActionButtonTemplate">
25 <Size>
26 <AbsDimension x="32" y="32"/>
27 </Size>
28 <Layers>
29 <Layer level="OVERLAY">
30 <Texture name="$parentIcon"/>
31 </Layer>
32 <Layer level="ARTWORK">
33 <FontString name="$parentHotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
34 <Size>
35 <AbsDimension x="32" y="10"/>
36 </Size>
37 <Anchors>
38 <Anchor point="TOPLEFT">
39 <Offset>
40 <AbsDimension x="-2" y="-2"/>
41 </Offset>
42 </Anchor>
43 </Anchors>
44 </FontString>
45 </Layer>
46 </Layers>
47 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
48 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
49 </Button>
50
51 <Button name="SlotTemplate" inherits="IconTemplate" virtual="true">
52 <Scripts>
53 <OnLoad>
54 self = SlotView.new(self);
55 </OnLoad>
56 <OnMouseDown>
57 if(button == "LeftButton") then
58 self.Clicked();
59 end
60 </OnMouseDown>
61
62 </Scripts>
63 </Button>
64
65
66
67 <Button name="ModeTemplate" virtual="true">
68 <Size>
69 <AbsDimension x="127" y="63" />
70 </Size>
71
72 <ButtonText name="$parentText">
73 <FontHeight>
74 <AbsValue val="10" />
75 </FontHeight>
76 </ButtonText>
77 <NormalFont style="GameFontNormal" />
78 <HighlightFont style="GameFontHighlight" />
79 <DisabledFont style="GameFontDisable" />
80 <Scripts>
81 <OnLoad>
82 self = ModeView.new(self);
83 </OnLoad>
84 <OnClick>
85 self.Clicked();
86 </OnClick>
87 </Scripts>
88 </Button>
89
90 <!-- The Rat Page Frame -->
91 <Frame name="RatPageTemplate" virtual="true">
92 <Size>
93 <AbsDimension x="512" y="512"/>
94 </Size>
95 <Anchors>
96 <Anchor point="TOPLEFT">
97 <Offset>
98 <AbsDimension x="0" y="-0"/>
99 </Offset>
100 </Anchor>
101 </Anchors>
102 <!-- Our Slot Locations -->
103 <Frames>
104 <CheckButton name="$parentSlot1" inherits="SlotTemplate" id="1">
105 <Anchors>
106 <Anchor point="TOPLEFT">
107 <Offset>
108 <AbsDimension x="68" y="-116" />
109 </Offset>
110 </Anchor>
111 </Anchors>
112 <Layers>
113 <Layer level="ARTWORK">
114 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
115 <Size>
116 <AbsDimension x="33" y="33"/>
117 </Size>
118 <Anchors>
119 <Anchor point="CENTER">
120 <Offset>
121 <AbsDimension x="0" y="0"/>
122 </Offset>
123 </Anchor>
124 </Anchors>
125 </Texture>
126 </Layer>
127 </Layers>
128 </CheckButton>
129 <CheckButton name="$parentSlot2" inherits="SlotTemplate" id="2">
130 <Anchors>
131 <Anchor point="TOPLEFT">
132 <Offset>
133 <AbsDimension x="68" y="-153"/>
134 </Offset>
135 </Anchor>
136 </Anchors>
137 <Layers>
138 <Layer level="ARTWORK">
139 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
140 <Size>
141 <AbsDimension x="33" y="33"/>
142 </Size>
143 <Anchors>
144 <Anchor point="CENTER">
145 <Offset>
146 <AbsDimension x="0" y="0"/>
147 </Offset>
148 </Anchor>
149 </Anchors>
150 </Texture>
151 </Layer>
152 </Layers>
153 </CheckButton>
154 <CheckButton name="$parentSlot3" inherits="SlotTemplate" id="3">
155 <Anchors>
156 <Anchor point="TOPLEFT">
157 <Offset>
158 <AbsDimension x="68" y="-189" />
159 </Offset>
160 </Anchor>
161 </Anchors>
162 <Layers>
163 <Layer level="ARTWORK">
164 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
165 <Size>
166 <AbsDimension x="33" y="33"/>
167 </Size>
168 <Anchors>
169 <Anchor point="CENTER">
170 <Offset>
171 <AbsDimension x="0" y="0"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 </Texture>
176 </Layer>
177 </Layers>
178 </CheckButton>
179 <CheckButton name="$parentSlot4" inherits="SlotTemplate" id="4">
180 <Anchors>
181 <Anchor point="TOPLEFT">
182 <Offset>
183 <AbsDimension x="68" y="-238" />
184 </Offset>
185 </Anchor>
186 </Anchors>
187 <Layers>
188 <Layer level="ARTWORK">
189 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotUp.tga">
190 <Size>
191 <AbsDimension x="33" y="33"/>
192 </Size>
193 <Anchors>
194 <Anchor point="CENTER">
195 <Offset>
196 <AbsDimension x="0" y="0"/>
197 </Offset>
198 </Anchor>
199 </Anchors>
200 </Texture>
201 </Layer>
202 </Layers>
203 </CheckButton>
204 <CheckButton name="$parentSlot5" inherits="SlotTemplate" id="5">
205 <Anchors>
206 <Anchor point="TOPLEFT">
207 <Offset>
208 <AbsDimension x="68" y="-273" />
209 </Offset>
210 </Anchor>
211 </Anchors>
212 <Layers>
213 <Layer level="ARTWORK">
214 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotMiddle.tga">
215 <Size>
216 <AbsDimension x="33" y="33"/>
217 </Size>
218 <Anchors>
219 <Anchor point="CENTER">
220 <Offset>
221 <AbsDimension x="0" y="0"/>
222 </Offset>
223 </Anchor>
224 </Anchors>
225 </Texture>
226 </Layer>
227 </Layers>
228 </CheckButton>
229 <CheckButton name="$parentSlot6" inherits="SlotTemplate" id="6">
230 <Anchors>
231 <Anchor point="TOPLEFT">
232 <Offset>
233 <AbsDimension x="68" y="-308" />
234 </Offset>
235 </Anchor>
236 </Anchors>
237 <Layers>
238 <Layer level="ARTWORK">
239 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotDown.tga">
240 <Size>
241 <AbsDimension x="33" y="33"/>
242 </Size>
243 <Anchors>
244 <Anchor point="CENTER">
245 <Offset>
246 <AbsDimension x="0" y="0"/>
247 </Offset>
248 </Anchor>
249 </Anchors>
250 </Texture>
251 </Layer>
252 </Layers>
253 </CheckButton>
254 <CheckButton name="$parentSlot7" inherits="SlotTemplate" id="7">
255 <Anchors>
256 <Anchor point="TOPLEFT">
257 <Offset>
258 <AbsDimension x="33" y="-273"/>
259 </Offset>
260 </Anchor>
261 </Anchors>
262 <Layers>
263 <Layer level="ARTWORK">
264 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotLeft.tga">
265 <Size>
266 <AbsDimension x="33" y="33"/>
267 </Size>
268 <Anchors>
269 <Anchor point="CENTER">
270 <Offset>
271 <AbsDimension x="0" y="0"/>
272 </Offset>
273 </Anchor>
274 </Anchors>
275 </Texture>
276 </Layer>
277 </Layers>
278 </CheckButton>
279 <CheckButton name="$parentSlot8" inherits="SlotTemplate" id="8">
280 <Anchors>
281 <Anchor point="TOPLEFT">
282 <Offset>
283 <AbsDimension x="103" y="-273"/>
284 </Offset>
285 </Anchor>
286 </Anchors>
287 <Layers>
288 <Layer level="ARTWORK">
289 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotRight.tga">
290 <Size>
291 <AbsDimension x="33" y="33"/>
292 </Size>
293 <Anchors>
294 <Anchor point="CENTER">
295 <Offset>
296 <AbsDimension x="0" y="0"/>
297 </Offset>
298 </Anchor>
299 </Anchors>
300 </Texture>
301 </Layer>
302 </Layers>
303 </CheckButton>
304 <CheckButton name="$parentSlot9" inherits="SlotTemplate" id="9">
305 <Anchors>
306 <Anchor point="TOPLEFT">
307 <Offset>
308 <AbsDimension x="68" y="-356"/>
309 </Offset>
310 </Anchor>
311 </Anchors>
312 <Layers>
313 <Layer level="ARTWORK">
314 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
315 <Size>
316 <AbsDimension x="33" y="33"/>
317 </Size>
318 <Anchors>
319 <Anchor point="CENTER">
320 <Offset>
321 <AbsDimension x="0" y="0"/>
322 </Offset>
323 </Anchor>
324 </Anchors>
325 </Texture>
326 </Layer>
327 </Layers>
328 </CheckButton>
329 <CheckButton name="$parentSlot10" inherits="SlotTemplate" id="10">
330 <Anchors>
331 <Anchor point="TOPLEFT">
332 <Offset>
333 <AbsDimension x="68" y="-393"/>
334 </Offset>
335 </Anchor>
336 </Anchors>
337 <Layers>
338 <Layer level="ARTWORK">
339 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
340 <Size>
341 <AbsDimension x="33" y="33"/>
342 </Size>
343 <Anchors>
344 <Anchor point="CENTER">
345 <Offset>
346 <AbsDimension x="0" y="0"/>
347 </Offset>
348 </Anchor>
349 </Anchors>
350 </Texture>
351 </Layer>
352 </Layers>
353 </CheckButton>
354 <CheckButton name="$parentSlot11" inherits="SlotTemplate" id="11">
355 <Anchors>
356 <Anchor point="TOPLEFT">
357 <Offset>
358 <AbsDimension x="68" y="-429"/>
359 </Offset>
360 </Anchor>
361 </Anchors>
362 <Layers>
363 <Layer level="ARTWORK">
364 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\Slot.tga">
365 <Size>
366 <AbsDimension x="33" y="33"/>
367 </Size>
368 <Anchors>
369 <Anchor point="CENTER">
370 <Offset>
371 <AbsDimension x="0" y="0"/>
372 </Offset>
373 </Anchor>
374 </Anchors>
375 </Texture>
376 </Layer>
377 </Layers>
378 </CheckButton>
379 <CheckButton name="$parentSlot12" inherits="SlotTemplate" id="12">
380 <Anchors>
381 <Anchor point="TOPLEFT">
382 <Offset>
383 <AbsDimension x="50" y="-68"/>
384 </Offset>
385 </Anchor>
386 </Anchors>
387 <Layers>
388 <Layer level="ARTWORK">
389 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotLeft.tga">
390 <Size>
391 <AbsDimension x="33" y="33"/>
392 </Size>
393 <Anchors>
394 <Anchor point="CENTER">
395 <Offset>
396 <AbsDimension x="0" y="0"/>
397 </Offset>
398 </Anchor>
399 </Anchors>
400 </Texture>
401 </Layer>
402 </Layers>
403 </CheckButton>
404 <CheckButton name="$parentSlot13" inherits="SlotTemplate" id="13">
405 <Anchors>
406 <Anchor point="TOPLEFT">
407 <Offset>
408 <AbsDimension x="86" y="-68" />
409 </Offset>
410 </Anchor>
411 </Anchors>
412 <Layers>
413 <Layer level="ARTWORK">
414 <Texture name="$parentText" file="Interface\AddOns\CyborgMMO7\Graphics\SlotRight.tga">
415 <Size>
416 <AbsDimension x="33" y="33"/>
417 </Size>
418 <Anchors>
419 <Anchor point="CENTER">
420 <Offset>
421 <AbsDimension x="0" y="0"/>
422 </Offset>
423 </Anchor>
424 </Anchors>
425 </Texture>
426 </Layer>
427 </Layers>
428 </CheckButton>
429 <Button name="Mode1" inherits="ModeTemplate" id="1">
430 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Down.tga" >
431 </NormalTexture>
432 <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Selected.tga">
433 </PushedTexture>
434 <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode1Over.tga">
435 </HighlightTexture>
436 <Anchors>
437 <Anchor point="TOPLEFT">
438 <Offset>
439 <AbsDimension x="384" y="-33" />
440 </Offset>
441 </Anchor>
442 </Anchors>
443 </Button>
444 <Button name="Mode2" inherits="ModeTemplate" id="2">
445 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Down.tga" >
446 </NormalTexture>
447 <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Selected.tga">
448 </PushedTexture>
449 <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode2Over.tga">
450 </HighlightTexture>
451 <Anchors>
452 <Anchor point="TOPLEFT">
453 <Offset>
454 <AbsDimension x="384" y="-33" />
455 </Offset>
456 </Anchor>
457 </Anchors>
458 </Button>
459 <Button name="Mode3" inherits="ModeTemplate" id="3">
460 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Down.tga" >
461 </NormalTexture>
462 <PushedTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Selected.tga">
463 </PushedTexture>
464 <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\Mode3Over.tga">
465 </HighlightTexture>
466 <Anchors>
467 <Anchor point="TOPLEFT">
468 <Offset>
469 <AbsDimension x="384" y="-33" />
470 </Offset>
471 </Anchor>
472 </Anchors>
473 </Button>
474 </Frames>
475 <Scripts>
476 <OnLoad>
477 self = RatPageView.new(self);
478 </OnLoad>
479 </Scripts>
480 </Frame>
481 </Ui>