-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathXpCounter.xml
46 lines (46 loc) · 1.62 KB
/
XpCounter.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
<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">
<Script file="localization.lua"/>
<Script file="XpCounter.lua"/>
<Frame name="XpCounter_Overlay" frameStrata="DIALOG" parent="UIParent" movable="true" enableMouse="true">
<Scripts>
<OnLoad>XpCounter_OnLoad(self)</OnLoad>
<OnEvent>XpCounter_Event(self, event, ...)</OnEvent>
<OnEnter>XpCounter_ToolTip_show(self)</OnEnter>
<OnLeave>XpCounter_ToolTip_hide(self)</OnLeave>
<!-- <OnMouseUp>
if (self.isMoving) then
self:StopMovingOrSizing(self)
self.isMoving = false
end
</OnMouseUp>
<OnMouseDown>
if ( (XpCounter_locked() == 0) and (arg1 == "LeftButton") ) then
XpCounter_ToolTip_hide(self)
self:StartMoving(self)
self.isMoving = true
end
</OnMouseDown> -->
<OnDragStart>XpCounter_startMoving(self);</OnDragStart>
<OnDragStop>XpCounter_stopMoving(self);</OnDragStop>
<OnHide>
if (self.isMoving) then
self:StopMovingOrSizing(self)
self.isMoving = false
end
</OnHide>
</Scripts>
<Size><AbsDimension x="500" y="20"/></Size>
<Anchors><Anchor point="TOP"/></Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parent_ExpText" inherits="GameFontNormalSmall">
<Anchors>
<!--<Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-5"/></Offset></Anchor>
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-5" y="5"/></Offset></Anchor>-->
<Anchor point="TOPLEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
</Ui>