forked from wowgaming/3.3.5-interface-files
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ComboFrame.xml
125 lines (125 loc) · 3.33 KB
/
ComboFrame.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
117
118
119
120
121
122
123
124
125
<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="ComboFrame.lua"/>
<Frame name="ComboPointTemplate" virtual="true">
<Size>
<AbsDimension x="12" y="12"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\ComboFrame\ComboPoint">
<Size>
<AbsDimension x="12" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<TexCoords left="0" right="0.375" top="0" bottom="1"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentHighlight" file="Interface\ComboFrame\ComboPoint">
<Size>
<AbsDimension x="8" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.375" right="0.5625" top="0" bottom="1"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentShine" file="Interface\ComboFrame\ComboPoint" alphaMode="ADD">
<Size>
<AbsDimension x="14" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="4"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.5625" right="1" top="0" bottom="1"/>
<Color r="1" g="1" b="1" a="0"/>
</Texture>
</Layer>
</Layers>
</Frame>
<Frame name="ComboFrame" frameStrata="MEDIUM" toplevel="true" parent="UIParent" hidden="true" alpha="0">
<Size>
<AbsDimension x="256" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="TargetFrame">
<Offset>
<AbsDimension x="-44" y="-9"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Frame name="ComboPoint1" inherits="ComboPointTemplate">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="ComboPoint2" inherits="ComboPointTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="ComboPoint1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="7" y="4"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="ComboPoint3" inherits="ComboPointTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="ComboPoint2" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="5" y="2"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="ComboPoint4" inherits="ComboPointTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="ComboPoint3" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="2" y="1"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name="ComboPoint5" inherits="ComboPointTemplate">
<Size>
<AbsDimension x="15" y="18"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="ComboPoint4" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="1"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
<Scripts>
<OnLoad>
self:RegisterEvent("PLAYER_TARGET_CHANGED");
self:RegisterEvent("UNIT_COMBO_POINTS");
-- init alpha
ComboPoint1Highlight:SetAlpha(0);
ComboPoint1Shine:SetAlpha(0);
</OnLoad>
<OnEvent function="ComboFrame_OnEvent"/>
</Scripts>
</Frame>
</Ui>