-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMinimapButtonFrame.xml
More file actions
180 lines (178 loc) · 4.66 KB
/
Copy pathMinimapButtonFrame.xml
File metadata and controls
180 lines (178 loc) · 4.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<Frame name="MinimapButtonFrame" toplevel="true" parent="UIParent" movable="true" clampedToScreen="true" hidden="false" frameStrata="MEDIUM">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Backdrop bgFile="Interface/Tooltips/UI-Tooltip-Background" edgeFile="Interface/Tooltips/UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Frames>
<Button name="$parentDragButton" inherits="UIPanelButtonTemplate">
<NormalTexture name="MBFDragNormal"/>
<PushedTexture name="MBFDragPushed"/>
<Size>
<AbsDimension x="75" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="0" y="27"/></Offset></Anchor>
</Anchors>
<Scripts>
<OnClick>
if (IsShiftKeyDown()) then
MBFC_Toggle();
elseif ( button == "RightButton" ) then
MBFC_RollUp(1);
end
</OnClick>
<OnMouseDown>
if (button == "LeftButton") then
MBF:OnDragStart();
end
</OnMouseDown>
<OnMouseUp>
if (button == "LeftButton") then
MBF:OnDragStop();
end
</OnMouseUp>
<OnEnter>
RollUp_OnEnter(1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
</Button>
<Button name="MiniMapMailFrameDisabled" hidden="true">
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
<Size>
<AbsDimension x="33" y="33"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BORDER">
<Texture name="$parentNoMail" file="Interface\Icons\INV_Letter_15">
<Size>
<AbsDimension x="18" y="18"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="7" y="-6"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentBorder" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size>
<AbsDimension x="52" y="52"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
SetDesaturation(getglobal("MiniMapMailFrameDisabledNoMail"), 1);
</OnLoad>
<OnEnter>
NoMail_OnEnter();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnDragStart>
MBF:OnDragStart();
</OnDragStart>
<OnDragStop>
MBF:OnDragStop();
</OnDragStop>
</Scripts>
</Frame>
<Frame name="MBFRestoreButtonFrame" parent="UIParent" enableMouse="true" movable="true" hidden="false" clampedToScreen="true" frameStrata="LOW">
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false">
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5" />
</BackgroundInsets>
<TileSize>
<AbsValue val="10" />
</TileSize>
<EdgeSize>
<AbsValue val="10" />
</EdgeSize>
<Color r="1" g="0.5" b="0.5" />
</Backdrop>
<Size>
<AbsDimension x="75" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="MinimapButtonFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="28"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Button name="MBFRestoreButton" hidden="true" inherits="UIPanelButtonTemplate">
<NormalTexture name="MBFRestoreNormal"/>
<PushedTexture name="MBFRestorePushed"/>
<Size>
<AbsDimension x="75" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="3" y="0"/></Offset></Anchor>
</Anchors>
<Scripts>
<OnClick>
if (IsShiftKeyDown()) then
MBFC_Toggle();
elseif ( button == "RightButton" ) then
MBFC_RollUp(2);
end
</OnClick>
<OnMouseDown>
if (button == "LeftButton") then
MBF:OnDragStart();
end
</OnMouseDown>
<OnMouseUp>
if (button == "LeftButton") then
MBF:OnDragStop();
end
</OnMouseUp>
<OnEnter>
RollUp_OnEnter(2);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
</Button>
</Frames>
</Frame>
</Ui>