Mercurial > wow > cyborg-mmo7
comparison OpenButtonPage.xml @ 4:d186f8cd5000
Renamed functions to avoid conflicts
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Mon, 28 May 2012 15:54:52 +0000 |
parents | bf9220814fb5 |
children | 8428fa7cf0e4 |
comparison
equal
deleted
inserted
replaced
3:461854a2849c | 4:d186f8cd5000 |
---|---|
18 | 18 |
19 You should have received a copy of the GNU General Public License | 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 | 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. | 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
22 --> | 22 --> |
23 <Frame name="OpenButtonPage" movable="true" clampedtoscreen="true" enableMouse="true" hidden="true"> | 23 <Frame name="CyborgMMO_OpenButtonPage" movable="true" clampedtoscreen="true" enableMouse="true" hidden="true"> |
24 <TitleRegion> | 24 <TitleRegion> |
25 <Size x="75" y="75"/> | 25 <Size x="75" y="75"/> |
26 <Anchors> | 26 <Anchors> |
27 <Anchor point="TOPLEFT"> | 27 <Anchor point="TOPLEFT"> |
28 <Offset> | 28 <Offset> |
56 <Scripts> | 56 <Scripts> |
57 <OnLoad> | 57 <OnLoad> |
58 self:RegisterForDrag("LeftButton","RightButton") | 58 self:RegisterForDrag("LeftButton","RightButton") |
59 </OnLoad> | 59 </OnLoad> |
60 <OnClick> | 60 <OnClick> |
61 Toggle(); | 61 CyborgMMO_Toggle(); |
62 | 62 |
63 </OnClick> | 63 </OnClick> |
64 <OnDragStart> | 64 <OnDragStart> |
65 self:StartMoving(); | 65 self:StartMoving(); |
66 self.isMoving = true; | 66 self.isMoving = true; |
89 <PushedTextOffset x="0" y="0" /> | 89 <PushedTextOffset x="0" y="0" /> |
90 </Button> | 90 </Button> |
91 </Frames> | 91 </Frames> |
92 </Frame> | 92 </Frame> |
93 | 93 |
94 <Frame name="CyborgMiniMapFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW"> | 94 <Frame name="CyborgMMO_MiniMapFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW"> |
95 <Size> | 95 <Size> |
96 <AbsDimension x="32" y="32"/> | 96 <AbsDimension x="32" y="32"/> |
97 </Size> | 97 </Size> |
98 <Anchors> | 98 <Anchors> |
99 <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> | 99 <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> |
101 <AbsDimension x="2" y="0"/> | 101 <AbsDimension x="2" y="0"/> |
102 </Offset> | 102 </Offset> |
103 </Anchor> | 103 </Anchor> |
104 </Anchors> | 104 </Anchors> |
105 <Frames> | 105 <Frames> |
106 <Button name="CyborgMiniMapButton"> | 106 <Button name="$parentButton"> |
107 <Size> | 107 <Size> |
108 <AbsDimension x="33" y="33"/> | 108 <AbsDimension x="33" y="33"/> |
109 </Size> | 109 </Size> |
110 <Anchors> | 110 <Anchors> |
111 <Anchor point="TOPLEFT"> | 111 <Anchor point="TOPLEFT"> |
115 </Anchor> | 115 </Anchor> |
116 </Anchors> | 116 </Anchors> |
117 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> | 117 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
118 <Layers> | 118 <Layers> |
119 <Layer level="BACKGROUND"> | 119 <Layer level="BACKGROUND"> |
120 <Texture name="CyborgMiniMapButton_Icon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> | 120 <Texture name="$parent_Icon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> |
121 <Size> | 121 <Size> |
122 <AbsDimension x="22" y="22"/> | 122 <AbsDimension x="22" y="22"/> |
123 </Size> | 123 </Size> |
124 <Anchors> | 124 <Anchors> |
125 <Anchor point="TOPLEFT"> | 125 <Anchor point="TOPLEFT"> |
128 </Anchors> | 128 </Anchors> |
129 <Color r="0.0" g="0.0" b="0.0" a="1" /> | 129 <Color r="0.0" g="0.0" b="0.0" a="1" /> |
130 </Texture> | 130 </Texture> |
131 </Layer> | 131 </Layer> |
132 <Layer level="ARTWORK"> | 132 <Layer level="ARTWORK"> |
133 <Texture name="CyborgMiniMapButton_IconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> | 133 <Texture name="$parent_IconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> |
134 <Size> | 134 <Size> |
135 <AbsDimension x="22" y="22"/> | 135 <AbsDimension x="22" y="22"/> |
136 </Size> | 136 </Size> |
137 <Anchors> | 137 <Anchors> |
138 <Anchor point="TOPLEFT"> | 138 <Anchor point="TOPLEFT"> |
158 self:RegisterForDrag("LeftButton","RightButton") | 158 self:RegisterForDrag("LeftButton","RightButton") |
159 </OnLoad> | 159 </OnLoad> |
160 <OnMouseDown> | 160 <OnMouseDown> |
161 </OnMouseDown> | 161 </OnMouseDown> |
162 <OnMouseUp> | 162 <OnMouseUp> |
163 Toggle(); | 163 CyborgMMO_Toggle(); |
164 if(false == IsOpen()) then | 164 if(false == CyborgMMO_IsOpen()) then |
165 RatQuickPage:Show(); | 165 CyborgMMO_RatQuickPage:Show(); |
166 end | 166 end |
167 </OnMouseUp> | 167 </OnMouseUp> |
168 <OnEnter> | 168 <OnEnter> |
169 if(false == IsOpen()) then | 169 if(false == CyborgMMO_IsOpen()) then |
170 RatQuickPage:Show(); | 170 CyborgMMO_RatQuickPage:Show(); |
171 end | 171 end |
172 </OnEnter> | 172 </OnEnter> |
173 <OnLeave> | 173 <OnLeave> |
174 RatQuickPage:Hide(); | 174 CyborgMMO_RatQuickPage:Hide(); |
175 </OnLeave> | 175 </OnLeave> |
176 <OnUpdate> | 176 <OnUpdate> |
177 if(self:IsDragging()) then | 177 if(self:IsDragging()) then |
178 CyborgMiniMapButton_OnUpdate(); | 178 CyborgMMO_MiniMapButtonOnUpdate(); |
179 end | 179 end |
180 </OnUpdate> | 180 </OnUpdate> |
181 </Scripts> | 181 </Scripts> |
182 </Button> | 182 </Button> |
183 </Frames> | 183 </Frames> |