-
Notifications
You must be signed in to change notification settings - Fork 0
/
DifficultBulletinBoardMinimapButton.xml
73 lines (73 loc) · 2.88 KB
/
DifficultBulletinBoardMinimapButton.xml
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
<Ui xmlns="http://www.w3.org/1999/xhtml">
<Button name="DifficultBulletinBoard_MinimapButtonFrame" toplevel="true" frameStrata="MEDIUM" parent="Minimap"
enableMouse="true" movable="true" hidden="false">
<Size>
<AbsDimension x="33" y="33"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-18" y="-100"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parent_Texture" file="Interface\AddOns\DifficultBulletinBoard\icon">
<Size>
<AbsDimension x="17" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="8" y="-8"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
<Size>
<AbsDimension x="56" y="56"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
<Scripts>
<OnLoad>
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
this:RegisterForDrag("LeftButton");
</OnLoad>
<OnClick>
if arg1 == "LeftButton" then
DifficultBulletinBoard_ToggleMainFrame();
elseif arg1 == "RightButton" then
DifficultBulletinBoard_ToggleOptionFrame();
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_LEFT");
GameTooltip:AddLine("Difficult Bulletin Board");
GameTooltip:AddLine("Left-click to open the bulletin board", 1, 1, 1);
GameTooltip:AddLine("Right-click to open the options window", 1, 1, 1);
GameTooltip:AddLine("Shift + Left-click to move the minimap button", 1, 1, 1);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
<OnDragStart>
DifficultBulletinBoard_DragMinimapStart();
</OnDragStart>
<OnDragStop>
DifficultBulletinBoard_DragMinimapStop();
</OnDragStop>
</Scripts>
</Button>
</Ui>