forked from TheOneReed/MobsToLevel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMobsToLevel.xml
116 lines (115 loc) · 2.87 KB
/
MobsToLevel.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
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
<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="M2LFrame" toplevel="true" movable="true" parent="UIParent" inherits="OptionFrameBoxTemplate">
<Size>
<AbsDimension x="125" y="90"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-300"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
</Frames>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontNormalSmall" text="Kills to level up:">
<Color r="0.8" g="0.8" b="0.1"/>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-15"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name = "M2LString" inherits="GameFontNormal" text="0">
<Color r="1" g="1" b="1"/>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString inherits="GameFontNormalSmall" text="Time to level up:">
<Color r="0.8" g="0.8" b="0.1"/>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="30"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name = "M2LTimeString" inherits="GameFontNormal" text="0">
<Color r="1" g="1" b="1"/>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="15"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropColor(0.1, 0.1, 0.1);
this:RegisterForDrag("LeftButton");
M2L_OnLoad();
</OnLoad>
<OnDragStart>
this:StartMoving();
</OnDragStart>
<OnDragStop>
this:StopMovingOrSizing();
</OnDragStop>
<OnMouseUp>
this:StopMovingOrSizing();
</OnMouseUp>
<OnEvent>
M2L_OnEvent();
</OnEvent>
</Scripts>
</Frame>
<Button name="M2LCloseButton" inherits="UIPanelCloseButton">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="M2LFrame" relativePoint="RIGHT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if M2LFrame:IsVisible() == 1 then
HideUIPanel(M2LFrame);
GameTooltip:SetText("Opens the MobsToLevel window.");
else
ShowUIPanel(M2LFrame);
GameTooltip:SetText("Close the MobsToLevel window.");
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT", 0, -32);
if M2LFrame:IsVisible() == 1 then
GameTooltip:SetText("Close the MobsToLevel window.");
else
GameTooltip:SetText("Opens the MobsToLevel window.");
end
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Ui>