File src/ChorusAuraFrameTemplate.lua changed (mode: 100644) (index 9ea2d2c..69dc29f) |
... |
... |
local function auraFrameEventProcessor(self, eventCategory, ...) |
152 |
152 |
end |
end |
153 |
153 |
end |
end |
154 |
154 |
|
|
155 |
|
local filter = self.filter |
|
|
155 |
|
local filter = self.filter or self:GetAttribute('filter') |
156 |
156 |
assert(filter ~= nil) |
assert(filter ~= nil) |
157 |
157 |
assert('string' == type(filter)) |
assert('string' == type(filter)) |
158 |
158 |
filter = string.upper(strtrim(filter)) |
filter = string.upper(strtrim(filter)) |
|
... |
... |
local function auraFrameEventProcessor(self, eventCategory, ...) |
172 |
172 |
break |
break |
173 |
173 |
end |
end |
174 |
174 |
assert(b ~= nil) |
assert(b ~= nil) |
|
175 |
|
|
|
176 |
|
--[[ Hide button if it doesn't fit into the frame. ]]-- |
|
177 |
|
if (b:GetWidth() * i) > (self:GetWidth() + 3) then |
|
178 |
|
break |
|
179 |
|
end |
|
180 |
|
|
175 |
181 |
b.unit = unitDesignation |
b.unit = unitDesignation |
176 |
182 |
b.filter = filter |
b.filter = filter |
177 |
183 |
|
|
File src/ChorusAuraFrameTemplate.xml changed (mode: 100644) (index 9f643a5..c0d8a79) |
2 |
2 |
<Ui xmlns="http://www.blizzard.com/wow/ui/"> |
<Ui xmlns="http://www.blizzard.com/wow/ui/"> |
3 |
3 |
<Script file="ChorusAuraFrameTemplate.lua"/> |
<Script file="ChorusAuraFrameTemplate.lua"/> |
4 |
4 |
<Frame name="ChorusAuraFrameTemplate" virtual="true"> |
<Frame name="ChorusAuraFrameTemplate" virtual="true"> |
5 |
|
<Size> |
|
6 |
|
<AbsDimension x="216" y="36" /> |
|
7 |
|
</Size> |
|
8 |
5 |
<Frames> |
<Frames> |
9 |
|
<Frame name="$parentButton1" inherits="ChorusAuraButtonTemplate"> |
|
|
6 |
|
<Frame name="$parentButton1" inherits="ChorusAuraButtonTemplate" id="1"> |
10 |
7 |
<Anchors> |
<Anchors> |
11 |
8 |
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
12 |
9 |
<Offset> |
<Offset> |
|
15 |
12 |
</Anchor> |
</Anchor> |
16 |
13 |
</Anchors> |
</Anchors> |
17 |
14 |
</Frame> |
</Frame> |
18 |
|
<Frame name="$parentButton2" inherits="ChorusAuraButtonTemplate"> |
|
|
15 |
|
<Frame name="$parentButton2" inherits="ChorusAuraButtonTemplate" id="2"> |
19 |
16 |
<Anchors> |
<Anchors> |
20 |
17 |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMRIGHT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton1" relativePoint="BOTTOMRIGHT"> |
21 |
18 |
<Offset> |
<Offset> |
22 |
|
<AbsDimension x="4" y="0"/> |
|
|
19 |
|
<AbsDimension x="0" y="0"/> |
23 |
20 |
</Offset> |
</Offset> |
24 |
21 |
</Anchor> |
</Anchor> |
25 |
22 |
</Anchors> |
</Anchors> |
26 |
23 |
</Frame> |
</Frame> |
27 |
|
<Frame name="$parentButton3" inherits="ChorusAuraButtonTemplate"> |
|
|
24 |
|
<Frame name="$parentButton3" inherits="ChorusAuraButtonTemplate" id="3"> |
28 |
25 |
<Anchors> |
<Anchors> |
29 |
26 |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMRIGHT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton2" relativePoint="BOTTOMRIGHT"> |
30 |
27 |
<Offset> |
<Offset> |
31 |
|
<AbsDimension x="4" y="0"/> |
|
|
28 |
|
<AbsDimension x="0" y="0"/> |
32 |
29 |
</Offset> |
</Offset> |
33 |
30 |
</Anchor> |
</Anchor> |
34 |
31 |
</Anchors> |
</Anchors> |
35 |
32 |
</Frame> |
</Frame> |
36 |
|
<Frame name="$parentButton4" inherits="ChorusAuraButtonTemplate"> |
|
|
33 |
|
<Frame name="$parentButton4" inherits="ChorusAuraButtonTemplate" id="4"> |
37 |
34 |
<Anchors> |
<Anchors> |
38 |
35 |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMRIGHT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton3" relativePoint="BOTTOMRIGHT"> |
39 |
36 |
<Offset> |
<Offset> |
40 |
|
<AbsDimension x="4" y="0"/> |
|
|
37 |
|
<AbsDimension x="0" y="0"/> |
41 |
38 |
</Offset> |
</Offset> |
42 |
39 |
</Anchor> |
</Anchor> |
43 |
40 |
</Anchors> |
</Anchors> |
44 |
41 |
</Frame> |
</Frame> |
45 |
|
<Frame name="$parentButton5" inherits="ChorusAuraButtonTemplate"> |
|
|
42 |
|
<Frame name="$parentButton5" inherits="ChorusAuraButtonTemplate" id="5"> |
46 |
43 |
<Anchors> |
<Anchors> |
47 |
44 |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMRIGHT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton4" relativePoint="BOTTOMRIGHT"> |
48 |
45 |
<Offset> |
<Offset> |
49 |
|
<AbsDimension x="4" y="0"/> |
|
|
46 |
|
<AbsDimension x="0" y="0"/> |
50 |
47 |
</Offset> |
</Offset> |
51 |
48 |
</Anchor> |
</Anchor> |
52 |
49 |
</Anchors> |
</Anchors> |
53 |
50 |
</Frame> |
</Frame> |
54 |
|
<Frame name="$parentButton6" inherits="ChorusAuraButtonTemplate"> |
|
|
51 |
|
<Frame name="$parentButton6" inherits="ChorusAuraButtonTemplate" id="6"> |
55 |
52 |
<Anchors> |
<Anchors> |
56 |
53 |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton5" relativePoint="BOTTOMRIGHT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton5" relativePoint="BOTTOMRIGHT"> |
57 |
54 |
<Offset> |
<Offset> |
58 |
|
<AbsDimension x="4" y="0"/> |
|
|
55 |
|
<AbsDimension x="0" y="0"/> |
|
56 |
|
</Offset> |
|
57 |
|
</Anchor> |
|
58 |
|
</Anchors> |
|
59 |
|
</Frame> |
|
60 |
|
<Frame name="$parentButton7" inherits="ChorusAuraButtonTemplate" id="7"> |
|
61 |
|
<Anchors> |
|
62 |
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton6" relativePoint="BOTTOMRIGHT"> |
|
63 |
|
<Offset> |
|
64 |
|
<AbsDimension x="0" y="0"/> |
|
65 |
|
</Offset> |
|
66 |
|
</Anchor> |
|
67 |
|
</Anchors> |
|
68 |
|
</Frame> |
|
69 |
|
<Frame name="$parentButton8" inherits="ChorusAuraButtonTemplate" id="8"> |
|
70 |
|
<Anchors> |
|
71 |
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentButton7" relativePoint="BOTTOMRIGHT"> |
|
72 |
|
<Offset> |
|
73 |
|
<AbsDimension x="0" y="0"/> |
59 |
74 |
</Offset> |
</Offset> |
60 |
75 |
</Anchor> |
</Anchor> |
61 |
76 |
</Anchors> |
</Anchors> |