Mercurial > wow > cyborg-mmo7
comparison OpenButtonPage.xml @ 46:3a3dc5e4405a
Removed a level of frames for the minimap button, and improved some widgets naming a bit.
| author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
|---|---|
| date | Mon, 29 Apr 2013 17:44:58 +0000 |
| parents | 3e4739a6a99d |
| children | 1a29be548897 |
comparison
equal
deleted
inserted
replaced
| 45:57d46de51ba7 | 46:3a3dc5e4405a |
|---|---|
| 78 <PushedTextOffset x="0" y="0"/> | 78 <PushedTextOffset x="0" y="0"/> |
| 79 </Button> | 79 </Button> |
| 80 </Frames> | 80 </Frames> |
| 81 </Frame> | 81 </Frame> |
| 82 | 82 |
| 83 <Frame name="CyborgMMO_MiniMapFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW"> | 83 <Button name="CyborgMMO_MiniMapButton" parent="Minimap"> |
| 84 <Size><AbsDimension x="33" y="33"/></Size> | 84 <Size><AbsDimension x="33" y="33"/></Size> |
| 85 <Anchors> | 85 <Anchors> |
| 86 <Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT"> | 86 <Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> |
| 87 <Offset><AbsDimension x="2" y="0"/></Offset> | |
| 88 </Anchor> | |
| 89 </Anchors> | 87 </Anchors> |
| 90 <Frames> | 88 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> |
| 91 <Button name="$parentButton"> | 89 <Layers> |
| 92 <Size><AbsDimension x="33" y="33"/></Size> | 90 <Layer level="BACKGROUND"> |
| 93 <Anchors> | 91 <Texture name="$parentIcon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> |
| 94 <Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> | 92 <Size><AbsDimension x="20" y="20"/></Size> |
| 95 </Anchors> | 93 <Anchors> |
| 96 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> | 94 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor> |
| 97 <Layers> | 95 </Anchors> |
| 98 <Layer level="BACKGROUND"> | 96 <Color r="0.0" g="0.0" b="0.0" a="1"/> |
| 99 <Texture name="$parent_Icon" file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> | 97 </Texture> |
| 100 <Size><AbsDimension x="20" y="20"/></Size> | 98 </Layer> |
| 101 <Anchors> | 99 <Layer level="ARTWORK"> |
| 102 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor> | 100 <Texture name="$parentIconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> |
| 103 </Anchors> | 101 <Size><AbsDimension x="20" y="20"/></Size> |
| 104 <Color r="0.0" g="0.0" b="0.0" a="1"/> | 102 <Anchors> |
| 105 </Texture> | 103 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor> |
| 106 </Layer> | 104 </Anchors> |
| 107 <Layer level="ARTWORK"> | 105 <Color r=".38" g=".85" b="1.0" a="0.90"/> |
| 108 <Texture name="$parent_IconGlow" file="Interface\AddOns\CyborgMMO7\Graphics\CyborgGlow.tga"> | 106 </Texture> |
| 109 <Size><AbsDimension x="20" y="20"/></Size> | 107 </Layer> |
| 110 <Anchors> | 108 <Layer level="OVERLAY"> |
| 111 <Anchor point="TOPLEFT"><AbsDimension x="6" y="-5"/></Anchor> | 109 <Texture file="Interface\Minimap\MiniMap-TrackingBorder"> |
| 112 </Anchors> | 110 <Size><AbsDimension x="52" y="52"/></Size> |
| 113 <Color r=".38" g=".85" b="1.0" a="0.90"/> | 111 <Anchors> |
| 114 </Texture> | 112 <Anchor point="TOPLEFT"/> |
| 115 </Layer> | 113 </Anchors> |
| 116 <Layer level="OVERLAY"> | 114 </Texture> |
| 117 <Texture file="Interface\Minimap\MiniMap-TrackingBorder"> | 115 </Layer> |
| 118 <Size><AbsDimension x="52" y="52"/></Size> | 116 </Layers> |
| 119 <Anchors> | 117 <Scripts> |
| 120 <Anchor point="TOPLEFT"/> | 118 <OnLoad> |
| 121 </Anchors> | 119 self:RegisterForDrag("LeftButton", "RightButton") |
| 122 </Texture> | 120 </OnLoad> |
| 123 </Layer> | 121 <OnMouseDown> |
| 124 </Layers> | 122 </OnMouseDown> |
| 125 <Scripts> | 123 <OnMouseUp> |
| 126 <OnLoad> | 124 CyborgMMO_Toggle() |
| 127 self:RegisterForDrag("LeftButton", "RightButton") | 125 if not CyborgMMO_IsOpen() then |
| 128 </OnLoad> | 126 CyborgMMO_RatQuickPage:Show() |
| 129 <OnMouseDown> | 127 end |
| 130 </OnMouseDown> | 128 </OnMouseUp> |
| 131 <OnMouseUp> | 129 <OnEnter> |
| 132 CyborgMMO_Toggle() | 130 if not CyborgMMO_IsOpen() then |
| 133 if not CyborgMMO_IsOpen() then | 131 CyborgMMO_RatQuickPage:Show() |
| 134 CyborgMMO_RatQuickPage:Show() | 132 end |
| 135 end | 133 CyborgMMO_ShowProfileTooltip(getglobal(self:GetName().."Icon")) |
| 136 </OnMouseUp> | 134 </OnEnter> |
| 137 <OnEnter> | 135 <OnLeave> |
| 138 if not CyborgMMO_IsOpen() then | 136 CyborgMMO_RatQuickPage:Hide() |
| 139 CyborgMMO_RatQuickPage:Show() | 137 CyborgMMO_HideProfileTooltip() |
| 140 end | 138 </OnLeave> |
| 141 CyborgMMO_ShowProfileTooltip(getglobal(self:GetName().."_Icon")) | 139 <OnUpdate> |
| 142 </OnEnter> | 140 if self:IsDragging() then |
| 143 <OnLeave> | 141 CyborgMMO_MiniMapButtonOnUpdate() |
| 144 CyborgMMO_RatQuickPage:Hide() | 142 end |
| 145 CyborgMMO_HideProfileTooltip() | 143 </OnUpdate> |
| 146 </OnLeave> | 144 </Scripts> |
| 147 <OnUpdate> | 145 </Button> |
| 148 if self:IsDragging() then | |
| 149 CyborgMMO_MiniMapButtonOnUpdate() | |
| 150 end | |
| 151 </OnUpdate> | |
| 152 </Scripts> | |
| 153 </Button> | |
| 154 </Frames> | |
| 155 </Frame> | |
| 156 </Ui> | 146 </Ui> |
