Repository navigation
Expand file tree
/
Copy pathBetterZoneStats.xml
More file actions
95 lines (95 loc) · 4.25 KB
/
Copy pathBetterZoneStats.xml
File metadata and controls
95 lines (95 loc) · 4.25 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
<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">
<!-- Load the main lua files. -->
<Script File="Setup.lua"/>
<Script File="Options.lua"/>
<Script File="Zones.lua"/>
<Script File="Dungeons.lua"/>
<Script File="Raids.lua"/>
<Script File="BetterZoneStats.lua"/>
<!-- The main frame of the ZonedIn addon. -->
<Frame name="ZoneFrame" parent="UIParent" hidden="false" enableMouse="true" movable="true">
<!-- The size of the frame. -->
<Size x="288" y="80"/>
<!-- Where to anchor the frame. -->
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="20" y="-90"/>
</Anchor>
</Anchors>
<!-- The frames backdrop, background & color. -->
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<TileSize>
<AbsValue val="16"/>
</TileSize>
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<BackgroundInsets>
<AbsInset left="4" right="3" top="4" bottom="3"/>
</BackgroundInsets>
<!-- Frame color values in rgb (red, green, blue) -->
<Color r="0.2" g="0.2" b="0.2" a="0.7"/>
</Backdrop>
<!-- Frame layers. -->
<Layers>
<!-- The primary layer. -->
<Layer>
<!-- The player's current zone. -->
<FontString name="$parent_PlayerZone" inherits="SystemFont_Med1" text="Unknown zone">
<Size x="0" y="10"/>
<Anchors>
<Anchor point="CENTER">
<Offset x="0" y="24"/>
</Anchor>
</Anchors>
<Color r="0" g="1" b="0" a="1"/>
</FontString>
<!-- The player's current zone status. -->
<FontString name="$parent_ZoneStatus" inherits="SystemFont_Med1" text="Status Unknown">
<Size x="0" y="10"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent_PlayerZone">
<Offset x="0" y="-16"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="0" a="1"/>
</FontString>
<!-- The player's current zone level. -->
<FontString name="$parent_ZoneLevel" inherits="SystemFont_Med1" text="Zone Level: 1 - 60">
<Size x="0" y="10"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent_ZoneStatus">
<Offset x="0" y="-16"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="0" a="1"/>
</FontString>
<!-- The player's current x and y coordinates. -->
<FontString name="$parent_PlayerCoordinates" inherits="SystemFont_Med1" text="(X: 0.0 , Y: 0.0)">
<Size x="0" y="10"/>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent_ZoneLevel">
<Offset x="0" y="-16"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="0" a="1"/>
</FontString>
</Layer>
</Layers>
<!-- Addon scripts. -->
<Scripts>
<!-- When the addon is loaded. -->
<OnLoad/>
<!-- OnUpdate event-->
<OnUpdate function="OnUpdate"/>
<!-- Moves the frame-based object in relation to where the mouse is being moved. -->
<OnMouseDown>
ZoneFrame:StartMoving()
</OnMouseDown>
<!-- Stops a frame movement or resize that was started with Frame:StartMoving() or Frame:StartSizing() -->
<OnMouseUp>
ZoneFrame:StopMovingOrSizing()
</OnMouseUp>
</Scripts>
</Frame>
</Ui>