File src/ChorusCastFrameTemplate.lua changed (mode: 100644) (index 5899a1d..29f4b22) |
... |
... |
local UnitCastingInfo = Chorus.test.UnitCastingInfo or UnitCastingInfo |
5 |
5 |
local UnitChannelInfo = Chorus.test.UnitChannelInfo or UnitChannelInfo |
local UnitChannelInfo = Chorus.test.UnitChannelInfo or UnitChannelInfo |
6 |
6 |
local UnitExists = Chorus.test.UnitExists or UnitExists |
local UnitExists = Chorus.test.UnitExists or UnitExists |
7 |
7 |
local UnitIsUnit = Chorus.test.UnitIsUnit or UnitIsUnit |
local UnitIsUnit = Chorus.test.UnitIsUnit or UnitIsUnit |
8 |
|
local tContains = tContains |
|
9 |
8 |
|
|
10 |
9 |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
11 |
10 |
|
|
File src/ChorusTest.lua changed (mode: 100644) (index fd95905..7b7eb41) |
1 |
1 |
local t = { |
local t = { |
2 |
2 |
focus = {}, |
focus = {}, |
3 |
|
party1 = {UnitIsPlayer = true, UnitClass = {'Warrior', 'WARRIOR'}, UnitPowerType = {1, 'RAGE'}, UnitPower = 13, UnitPowerMax = 100}, |
|
|
3 |
|
party1 = { |
|
4 |
|
UnitIsPlayer = true, |
|
5 |
|
UnitClass = {'Warrior', 'WARRIOR'}, |
|
6 |
|
UnitPowerType = {1, 'RAGE'}, |
|
7 |
|
UnitPower = 13, |
|
8 |
|
UnitPowerMax = 100, |
|
9 |
|
}, |
4 |
10 |
party1target = {}, |
party1target = {}, |
5 |
|
party2 = {UnitIsPlayer = true, UnitClass = {'Priest', 'PRIEST'}, UnitPowerType = {0, 'MANA'}}, |
|
|
11 |
|
party2 = { |
|
12 |
|
UnitIsPlayer = true, |
|
13 |
|
UnitClass = {'Priest', 'PRIEST'}, |
|
14 |
|
UnitPowerType = {0, 'MANA'}, |
|
15 |
|
}, |
6 |
16 |
party2target = {}, |
party2target = {}, |
7 |
|
party3 = {UnitIsPlayer = true, UnitClass = {'Warlock', 'WARLOCK'}, UnitPowerType = {0, 'MANA'}}, |
|
|
17 |
|
party3 = { |
|
18 |
|
UnitIsPlayer = true, |
|
19 |
|
UnitClass = {'Warlock', 'WARLOCK'}, |
|
20 |
|
UnitPowerType = {0, 'MANA'}, |
|
21 |
|
}, |
8 |
22 |
party3target = {}, |
party3target = {}, |
9 |
|
party4 = {UnitIsPlayer = true, UnitClass = {'Mage', 'MAGE'}, UnitPowerType = {0, 'MANA'}, UnitIsDead = true, UnitHealth = 0}, |
|
|
23 |
|
party4 = { |
|
24 |
|
UnitIsPlayer = true, |
|
25 |
|
UnitClass = {'Mage', 'MAGE'}, |
|
26 |
|
UnitPowerType = {0, 'MANA'}, |
|
27 |
|
UnitIsDead = true, |
|
28 |
|
UnitHealth = 0 |
|
29 |
|
}, |
10 |
30 |
party4target = {}, |
party4target = {}, |
11 |
31 |
partypet1 = {}, |
partypet1 = {}, |
12 |
32 |
partypet2 = {}, |
partypet2 = {}, |
13 |
33 |
partypet3 = {}, |
partypet3 = {}, |
14 |
34 |
partypet4 = {}, |
partypet4 = {}, |
15 |
35 |
pet = {}, |
pet = {}, |
16 |
|
player = {UnitIsPlayer = true, UnitClass = {'Paladin', 'PALADIN'}, UnitPowerType = {0, 'MANA'}}, |
|
|
36 |
|
player = { |
|
37 |
|
UnitIsPlayer = true, |
|
38 |
|
UnitClass = {'Paladin', 'PALADIN'}, |
|
39 |
|
UnitPowerType = {0, 'MANA'}, |
|
40 |
|
}, |
17 |
41 |
target = {}, |
target = {}, |
18 |
42 |
} |
} |
19 |
43 |
|
|
|
... |
... |
local function UnitAura_Mock(u, i, filter) |
40 |
64 |
end |
end |
41 |
65 |
|
|
42 |
66 |
if 'HARMFUL' == string.match(filter, 'HARMFUL') then |
if 'HARMFUL' == string.match(filter, 'HARMFUL') then |
43 |
|
return 'Poison', '', 'Interface\\Icons\\Spell_Nature_CorrosiveBreath', 0, 'Poison', 30, GetTime(), nil, nil, nil, 744 |
|
|
67 |
|
return 'Poison', |
|
68 |
|
'', |
|
69 |
|
'Interface\\Icons\\Spell_Nature_CorrosiveBreath', |
|
70 |
|
0, |
|
71 |
|
'Poison', |
|
72 |
|
30, |
|
73 |
|
GetTime(), |
|
74 |
|
nil, |
|
75 |
|
nil, |
|
76 |
|
nil, |
|
77 |
|
744 |
44 |
78 |
else |
else |
45 |
|
return 'Blessing of Wisdom', 'Rank 1', 'Interface\\Icons\\Spell_Holy_SealOfWisdom', 0, 'Magic', 600, GetTime(), 'player', nil, 1, 19742 |
|
|
79 |
|
return 'Blessing of Wisdom', |
|
80 |
|
'Rank 1', |
|
81 |
|
'Interface\\Icons\\Spell_Holy_SealOfWisdom', |
|
82 |
|
0, |
|
83 |
|
'Magic', |
|
84 |
|
600, |
|
85 |
|
GetTime(), |
|
86 |
|
'player', |
|
87 |
|
nil, |
|
88 |
|
1, |
|
89 |
|
19742 |
46 |
90 |
end |
end |
47 |
91 |
end |
end |
48 |
92 |
|
|
File src/ChorusThreatFrameTemplate.lua changed (mode: 100644) (index 169808e..7c1db46) |
... |
... |
local Chorus = Chorus |
3 |
3 |
local GetThreatStatusColor = GetThreatStatusColor |
local GetThreatStatusColor = GetThreatStatusColor |
4 |
4 |
local UnitExists = Chorus.test.UnitExists or UnitExists |
local UnitExists = Chorus.test.UnitExists or UnitExists |
5 |
5 |
local UnitIsConnected = Chorus.test.UnitIsConnected or UnitIsConnected |
local UnitIsConnected = Chorus.test.UnitIsConnected or UnitIsConnected |
6 |
|
local UnitIsFriend = Chorus.test.UnitIsFriend or UnitIsFriend |
|
|
6 |
|
local UnitIsFriend = Chorus.test.UnitIsFriend or UnitIsFriend |
7 |
7 |
local UnitThreatSituation = UnitThreatSituation |
local UnitThreatSituation = UnitThreatSituation |
8 |
8 |
|
|
9 |
|
local RegisterUnitWatch = Chorus.test.RegisterUnitWatch or RegisterUnitWatch |
|
|
9 |
|
local RegisterUnitWatch = Chorus.test.RegisterUnitWatch or RegisterUnitWatch |
10 |
10 |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
11 |
11 |
|
|
12 |
12 |
local function threatFrameEventProcessor(self) |
local function threatFrameEventProcessor(self) |
File src/ChorusUnitButtonTemplate.lua changed (mode: 100644) (index 20d8c85..f503d62) |
... |
... |
local GameTooltipTextLeft1 = GameTooltipTextLeft1 |
5 |
5 |
|
|
6 |
6 |
local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor |
local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor |
7 |
7 |
local GameTooltip_UnitColor = GameTooltip_UnitColor |
local GameTooltip_UnitColor = GameTooltip_UnitColor |
8 |
|
local RegisterUnitWatch = Chorus.test.RegisterUnitWatch or RegisterUnitWatch |
|
|
8 |
|
local RegisterUnitWatch = Chorus.test.RegisterUnitWatch or RegisterUnitWatch |
9 |
9 |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
local SecureButton_GetUnit = Chorus.test.SecureButton_GetUnit or SecureButton_GetUnit |
10 |
10 |
|
|
11 |
11 |
local UnitExists = Chorus.test.UnitExists or UnitExists |
local UnitExists = Chorus.test.UnitExists or UnitExists |