madcatzinc@0
|
1 <Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
madcatzinc@0
|
2 <!--
|
madcatzinc@43
|
3 Warcraft Plugin for Cyborg MMO7
|
madcatzinc@0
|
4 Filename: OpenButtonPage.xml
|
madcatzinc@0
|
5 Description: The Cyborg Head logo button which opens and closes the UI
|
madcatzinc@0
|
6 Copyright (C) 2012 Mad Catz Inc.
|
madcatzinc@0
|
7 Author: Christopher Hooks
|
madcatzinc@0
|
8
|
madcatzinc@0
|
9 This program is free software; you can redistribute it and/or
|
madcatzinc@0
|
10 modify it under the terms of the GNU General Public License
|
madcatzinc@0
|
11 as published by the Free Software Foundation; either version 2
|
madcatzinc@0
|
12 of the License, or (at your option) any later version.
|
madcatzinc@0
|
13
|
madcatzinc@0
|
14 This program is distributed in the hope that it will be useful,
|
madcatzinc@0
|
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
madcatzinc@0
|
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
madcatzinc@0
|
17 GNU General Public License for more details.
|
madcatzinc@0
|
18
|
madcatzinc@0
|
19 You should have received a copy of the GNU General Public License
|
madcatzinc@0
|
20 along with this program; if not, write to the Free Software
|
madcatzinc@43
|
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
madcatzinc@0
|
22 -->
|
madcatzinc@43
|
23
|
madcatzinc@4
|
24 <Frame name="CyborgMMO_OpenButtonPage" movable="true" clampedtoscreen="true" enableMouse="true" hidden="true">
|
madcatzinc@43
|
25 <TitleRegion>
|
madcatzinc@43
|
26 <Size x="75" y="75"/>
|
madcatzinc@43
|
27 <Anchors>
|
madcatzinc@43
|
28 <Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
madcatzinc@43
|
29 </Anchors>
|
madcatzinc@43
|
30 </TitleRegion>
|
madcatzinc@43
|
31 <Size><AbsDimension x="50" y="50"/></Size>
|
madcatzinc@43
|
32 <Anchors>
|
madcatzinc@43
|
33 <Anchor point="LEFT" relativeTo="UIParent"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
madcatzinc@43
|
34 </Anchors>
|
madcatzinc@43
|
35 <Frames>
|
madcatzinc@43
|
36 <Button name="$parentOpenMainForm" clampedtoscreen="true" enableMouse="true" movable="true">
|
madcatzinc@43
|
37 <Size><AbsDimension x="75" y="75"/></Size>
|
madcatzinc@0
|
38 <Anchors>
|
madcatzinc@43
|
39 <Anchor point="TOPLEFT"><Offset><AbsDimension x="16" y="-14"/></Offset></Anchor>
|
madcatzinc@0
|
40 </Anchors>
|
madcatzinc@43
|
41 <Scripts>
|
madcatzinc@43
|
42 <OnLoad>
|
madcatzinc@43
|
43 self:RegisterForDrag("LeftButton", "RightButton")
|
madcatzinc@43
|
44 </OnLoad>
|
madcatzinc@43
|
45 <OnClick>
|
madcatzinc@43
|
46 CyborgMMO_Toggle()
|
madcatzinc@43
|
47 </OnClick>
|
madcatzinc@43
|
48 <OnDragStart>
|
madcatzinc@43
|
49 self:StartMoving()
|
madcatzinc@43
|
50 self.isMoving = true
|
madcatzinc@43
|
51 </OnDragStart>
|
madcatzinc@43
|
52 <OnDragStop>
|
madcatzinc@43
|
53 self:StopMovingOrSizing()
|
madcatzinc@43
|
54 self.isMoving = false
|
madcatzinc@43
|
55 </OnDragStop>
|
madcatzinc@43
|
56 <OnEnter>
|
madcatzinc@43
|
57 CyborgMMO_ShowProfileTooltip(self:GetNormalTexture())
|
madcatzinc@43
|
58 </OnEnter>
|
madcatzinc@43
|
59 <OnLeave>
|
madcatzinc@43
|
60 CyborgMMO_HideProfileTooltip()
|
madcatzinc@43
|
61 </OnLeave>
|
madcatzinc@43
|
62 </Scripts>
|
madcatzinc@0
|
63
|
madcatzinc@43
|
64 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga">
|
madcatzinc@43
|
65 <Color r="0.0" g="0.0" b="0.0" a="1"/>
|
madcatzinc@43
|
66 </NormalTexture>
|
madcatzinc@43
|
67 <HighlightTexture file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga">
|
madcatzinc@43
|
68 <Color r=".38" g=".85" b="1.0" a="0.90"/>
|
madcatzinc@43
|
69 </HighlightTexture>
|
madcatzinc@0
|
70
|
madcatzinc@43
|
71 <ButtonText name="$parentText">
|
madcatzinc@43
|
72 <FontHeight><AbsValue val="10"/></FontHeight>
|
madcatzinc@43
|
73 </ButtonText>
|
madcatzinc@43
|
74
|
madcatzinc@43
|
75 <NormalFont style="GameFontNormal"/>
|
madcatzinc@43
|
76 <HighlightFont style="GameFontHighlight"/>
|
madcatzinc@43
|
77 <DisabledFont style="GameFontDisable"/>
|
madcatzinc@43
|
78 <PushedTextOffset x="0" y="0"/>
|
madcatzinc@0
|
79 </Button>
|
madcatzinc@0
|
80 </Frames>
|
madcatzinc@0
|
81 </Frame>
|
madcatzinc@0
|
82
|
madcatzinc@46
|
83 <Button name="CyborgMMO_MiniMapButton" parent="Minimap">
|
madcatzinc@44
|
84 <Size><AbsDimension x="33" y="33"/></Size>
|
madcatzinc@0
|
85 <Anchors>
|
madcatzinc@46
|
86 <Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
madcatzinc@0
|
87 </Anchors>
|
madcatzinc@46
|
88 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
|
madcatzinc@46
|
89 <Layers>
|
madcatzinc@46
|
90 <Layer level="BACKGROUND">
|
madcatzinc@46
|
91 <Texture name="$parentIcon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga">
|
madcatzinc@46
|
92 <Size><AbsDimension x="20" y="20"/></Size>
|
madcatzinc@46
|
93 <Anchors>
|
madcatzinc@46
|
94 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor>
|
madcatzinc@46
|
95 </Anchors>
|
madcatzinc@46
|
96 <Color r="0.0" g="0.0" b="0.0" a="1"/>
|
madcatzinc@46
|
97 </Texture>
|
madcatzinc@46
|
98 </Layer>
|
madcatzinc@46
|
99 <Layer level="ARTWORK">
|
madcatzinc@46
|
100 <Texture name="$parentIconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga">
|
madcatzinc@46
|
101 <Size><AbsDimension x="20" y="20"/></Size>
|
madcatzinc@46
|
102 <Anchors>
|
madcatzinc@46
|
103 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor>
|
madcatzinc@46
|
104 </Anchors>
|
madcatzinc@46
|
105 <Color r=".38" g=".85" b="1.0" a="0.90"/>
|
madcatzinc@46
|
106 </Texture>
|
madcatzinc@46
|
107 </Layer>
|
madcatzinc@46
|
108 <Layer level="OVERLAY">
|
madcatzinc@46
|
109 <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
|
madcatzinc@46
|
110 <Size><AbsDimension x="52" y="52"/></Size>
|
madcatzinc@46
|
111 <Anchors>
|
madcatzinc@46
|
112 <Anchor point="TOPLEFT"/>
|
madcatzinc@46
|
113 </Anchors>
|
madcatzinc@46
|
114 </Texture>
|
madcatzinc@46
|
115 </Layer>
|
madcatzinc@46
|
116 </Layers>
|
madcatzinc@46
|
117 <Scripts>
|
madcatzinc@46
|
118 <OnLoad>
|
madcatzinc@46
|
119 self:RegisterForDrag("LeftButton", "RightButton")
|
madcatzinc@46
|
120 </OnLoad>
|
madcatzinc@46
|
121 <OnMouseDown>
|
madcatzinc@46
|
122 </OnMouseDown>
|
madcatzinc@46
|
123 <OnMouseUp>
|
madcatzinc@46
|
124 CyborgMMO_Toggle()
|
madcatzinc@46
|
125 if not CyborgMMO_IsOpen() then
|
madcatzinc@46
|
126 CyborgMMO_RatQuickPage:Show()
|
madcatzinc@46
|
127 end
|
madcatzinc@46
|
128 </OnMouseUp>
|
madcatzinc@46
|
129 <OnEnter>
|
madcatzinc@46
|
130 if not CyborgMMO_IsOpen() then
|
madcatzinc@46
|
131 CyborgMMO_RatQuickPage:Show()
|
madcatzinc@46
|
132 end
|
madcatzinc@46
|
133 CyborgMMO_ShowProfileTooltip(getglobal(self:GetName().."Icon"))
|
madcatzinc@46
|
134 </OnEnter>
|
madcatzinc@46
|
135 <OnLeave>
|
madcatzinc@46
|
136 CyborgMMO_RatQuickPage:Hide()
|
madcatzinc@46
|
137 CyborgMMO_HideProfileTooltip()
|
madcatzinc@46
|
138 </OnLeave>
|
madcatzinc@46
|
139 <OnUpdate>
|
madcatzinc@46
|
140 if self:IsDragging() then
|
madcatzinc@46
|
141 CyborgMMO_MiniMapButtonOnUpdate()
|
madcatzinc@46
|
142 end
|
madcatzinc@46
|
143 </OnUpdate>
|
madcatzinc@46
|
144 </Scripts>
|
madcatzinc@46
|
145 </Button>
|
madcatzinc@0
|
146 </Ui>
|