-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSimpleGold.xml
More file actions
executable file
·125 lines (101 loc) · 2.46 KB
/
SimpleGold.xml
File metadata and controls
executable file
·125 lines (101 loc) · 2.46 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
<!-- SimpleGold 5.8.2 -->
<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="SimpleGold"
>
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
SimpleGold_OnLoad(self);
</OnLoad>
<OnEvent>
SimpleGold_Event(self, event)
</OnEvent>
</Scripts>
</Frame>
<Frame name="SimpleGoldDisplayFrame"
toplevel="true"
parent="UIParent"
movable="true"
hidden="true"
frameStrata="HIGH" >
<Size x="170" y="18"/>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER" >
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Frames>
<Frame name="SimpleGoldBack" setAllPoints="true" hidden="false">
<Layers>
<Layer level="BACKGROUND">
<Texture name="SimpleGold_BackgroundTexture" setAllPoints="true">
<Color r="1.0" g="1.0" b="1.0" a="1.0" />
</Texture>
</Layer>
</Layers>
<Frames>
<Frame name="SimpleGoldMoney" inherits="SmallMoneyFrameTemplate" hidden="false">
<Size x="0" y="26"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="SimpleGoldDisplayFrame" relativePoint="RIGHT">
<Offset x="5" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
SmallMoneyFrame_OnLoad(self);
self.staticMoney = 0;
MoneyFrame_SetType(self,"STATIC");
</OnLoad>
</Scripts>
</Frame>
</Frames>
<Scripts>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnEnter>
SimpleGold_ShowTooltip();
</OnEnter>
<OnLeave>
SimpleGold_HideTooltip();
</OnLeave>
<OnMouseDown>
if ( IsShiftKeyDown() ) then
SimpleGold_StepBackground();
else
if (SimpleGoldSavedVars["locked"] == false) then
if button == "LeftButton" and not self.isMoving then
self:StartMoving();
self.isMoving = true;
end
end
end
</OnMouseDown>
<OnMouseUp>
if button == "LeftButton" and self.isMoving then
self:StopMovingOrSizing();
self.isMoving = false;
SimpleGoldSaveLastPosition();
end
</OnMouseUp>
<OnShow>
SimpleGoldPrefsFrameOnShow();
</OnShow>
<OnHide>
</OnHide>
</Scripts>
</Frame>
</Ui>