Mercurial > wow > cyborg-mmo7
comparison OpenButtonPage.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: OpenButtonPage.xml | |
5 Description: The Cyborg Head logo button which opens and closes the UI | |
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 <Frame name="OpenButtonPage" movable="true" clampedtoscreen="true" enableMouse="true" hidden="true"> | |
24 <TitleRegion> | |
25 <Size x="75" y="75"/> | |
26 <Anchors> | |
27 <Anchor point="TOPLEFT"> | |
28 <Offset> | |
29 <AbsDimension x="0" y="0" /> | |
30 </Offset> | |
31 </Anchor> | |
32 </Anchors> | |
33 </TitleRegion> | |
34 <Size> | |
35 <AbsDimension x="50" y="50" /> | |
36 </Size> | |
37 <Anchors> | |
38 <Anchor point="LEFT" relativeTo="UIParent"> | |
39 <Offset> | |
40 <AbsDimension x="0" y="0" /> | |
41 </Offset> | |
42 </Anchor> | |
43 </Anchors> | |
44 <Frames> | |
45 <Button name="$parentOpenMainForm" clampedtoscreen="true" enableMouse="true" movable="true"> | |
46 <Size> | |
47 <AbsDimension x="75" y="75" /> | |
48 </Size> | |
49 <Anchors> | |
50 <Anchor point="TOPLEFT"> | |
51 <Offset> | |
52 <AbsDimension x="16" y="-14" /> | |
53 </Offset> | |
54 </Anchor> | |
55 </Anchors> | |
56 <Scripts> | |
57 <OnLoad> | |
58 self:RegisterForDrag("LeftButton","RightButton") | |
59 </OnLoad> | |
60 <OnClick> | |
61 Toggle(); | |
62 | |
63 </OnClick> | |
64 <OnDragStart> | |
65 self:StartMoving(); | |
66 self.isMoving = true; | |
67 </OnDragStart> | |
68 <OnDragStop> | |
69 self:StopMovingOrSizing(); | |
70 self.isMoving = false; | |
71 </OnDragStop> | |
72 </Scripts> | |
73 | |
74 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> | |
75 <Color r="0.0" g="0.0" b="0.0" a="1" /> | |
76 </NormalTexture> | |
77 | |
78 <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> | |
79 <Color r=".38" g=".85" b="1.0" a="0.90" /> | |
80 </HighlightTexture> | |
81 <ButtonText name="$parentText"> | |
82 <FontHeight> | |
83 <AbsValue val="10" /> | |
84 </FontHeight> | |
85 </ButtonText> | |
86 <NormalFont style="GameFontNormal" /> | |
87 <HighlightFont style="GameFontHighlight" /> | |
88 <DisabledFont style="GameFontDisable" /> | |
89 <PushedTextOffset x="0" y="0" /> | |
90 </Button> | |
91 </Frames> | |
92 </Frame> | |
93 | |
94 <Frame name="CyborgMiniMapFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW"> | |
95 <Size> | |
96 <AbsDimension x="32" y="32"/> | |
97 </Size> | |
98 <Anchors> | |
99 <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> | |
100 <Offset> | |
101 <AbsDimension x="2" y="0"/> | |
102 </Offset> | |
103 </Anchor> | |
104 </Anchors> | |
105 <Frames> | |
106 <Button name="CyborgMiniMapButton"> | |
107 <Size> | |
108 <AbsDimension x="33" y="33"/> | |
109 </Size> | |
110 <Anchors> | |
111 <Anchor point="TOPLEFT"> | |
112 <Offset> | |
113 <AbsDimension x="0" y="0"/> | |
114 </Offset> | |
115 </Anchor> | |
116 </Anchors> | |
117 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> | |
118 <Layers> | |
119 <Layer level="BACKGROUND"> | |
120 <Texture name="CyborgMiniMapButton_Icon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> | |
121 <Size> | |
122 <AbsDimension x="22" y="22"/> | |
123 </Size> | |
124 <Anchors> | |
125 <Anchor point="TOPLEFT"> | |
126 <AbsDimension x="6" y="-5"/> | |
127 </Anchor> | |
128 </Anchors> | |
129 <Color r="0.0" g="0.0" b="0.0" a="1" /> | |
130 </Texture> | |
131 </Layer> | |
132 <Layer level="ARTWORK"> | |
133 <Texture name="CyborgMiniMapButton_IconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> | |
134 <Size> | |
135 <AbsDimension x="22" y="22"/> | |
136 </Size> | |
137 <Anchors> | |
138 <Anchor point="TOPLEFT"> | |
139 <AbsDimension x="6" y="-5"/> | |
140 </Anchor> | |
141 </Anchors> | |
142 <Color r=".38" g=".85" b="1.0" a="0.90" /> | |
143 </Texture> | |
144 </Layer> | |
145 <Layer level="OVERLAY"> | |
146 <Texture file="Interface\Minimap\MiniMap-TrackingBorder"> | |
147 <Size> | |
148 <AbsDimension x="56" y="56"/> | |
149 </Size> | |
150 <Anchors> | |
151 <Anchor point="TOPLEFT"/> | |
152 </Anchors> | |
153 </Texture> | |
154 </Layer> | |
155 </Layers> | |
156 <Scripts> | |
157 <OnLoad> | |
158 self:RegisterForDrag("LeftButton","RightButton") | |
159 </OnLoad> | |
160 <OnMouseDown> | |
161 </OnMouseDown> | |
162 <OnMouseUp> | |
163 Toggle(); | |
164 if(false == IsOpen()) then | |
165 RatQuickPage:Show(); | |
166 end | |
167 </OnMouseUp> | |
168 <OnEnter> | |
169 if(false == IsOpen()) then | |
170 RatQuickPage:Show(); | |
171 end | |
172 </OnEnter> | |
173 <OnLeave> | |
174 RatQuickPage:Hide(); | |
175 </OnLeave> | |
176 <OnUpdate> | |
177 if(self:IsDragging()) then | |
178 CyborgMiniMapButton_OnUpdate(); | |
179 end | |
180 </OnUpdate> | |
181 </Scripts> | |
182 </Button> | |
183 </Frames> | |
184 </Frame> | |
185 </Ui> |