File clearcasting.lua changed (mode: 100644) (index 89ea08f..b275cca) |
... |
... |
local function initSpellActivationOverlayAny(rootFrame) |
568 |
568 |
d4:SetPoint('BOTTOMLEFT', margin + 28 * 4, 64) |
d4:SetPoint('BOTTOMLEFT', margin + 28 * 4, 64) |
569 |
569 |
end |
end |
570 |
570 |
|
|
|
571 |
|
local function initSpellActivationOverlayDeathKnight(rootFrame) |
|
572 |
|
local _, classDesignation = UnitClass('player') |
|
573 |
|
if 'DEATHKNIGHT' ~= classDesignation then |
|
574 |
|
return |
|
575 |
|
end |
|
576 |
|
|
|
577 |
|
local sectionWidth = 288 |
|
578 |
|
local sectionHeight = 36 |
|
579 |
|
|
|
580 |
|
local s0 = createSection('ClearcastingDeathKnightFrame1', rootFrame, sectionWidth, sectionHeight) |
|
581 |
|
s0:SetPoint('BOTTOMLEFT', rootFrame:GetWidth() / 2 - sectionWidth / 2, 144) |
|
582 |
|
createIndicator(s0, 'Icebound Fortitude') |
|
583 |
|
createIndicator(s0, 'Anti-Magic Shell') |
|
584 |
|
createIndicator(s0, 'Anti-Magic Zone') |
|
585 |
|
createIndicator(s0, 'Vampiric Blood') |
|
586 |
|
createIndicator(s0, 'Icy Talons') |
|
587 |
|
createIndicator(s0, 'Killing Machine') |
|
588 |
|
createIndicator(s0, 'Freezing Fog') |
|
589 |
|
createIndicator(s0, 'Blade Barrier') |
|
590 |
|
createIndicator(s0, 'Horn of Winter') |
|
591 |
|
createIndicator(s0, 'Lichborne') |
|
592 |
|
|
|
593 |
|
local s1 = createSection('ClearcastingDeathKnightFrame2', rootFrame, sectionWidth, sectionHeight) |
|
594 |
|
s1:SetPoint('BOTTOMLEFT', rootFrame:GetWidth() / 2 - sectionWidth / 2, 144 * 4) |
|
595 |
|
createIndicator(s1, 'Unholy Blight', 'target', 'PLAYER HARMFUL') |
|
596 |
|
createIndicator(s1, 'Frost Fever', 'target', 'PLAYER HARMFUL') |
|
597 |
|
createIndicator(s1, 'Blood Plague', 'target', 'PLAYER HARMFUL') |
|
598 |
|
createIndicator(s1, 'Heart Strike', 'target', 'PLAYER HARMFUL') |
|
599 |
|
createIndicator(s1, 'Chains of Ice', 'target', 'PLAYER HARMFUL') |
|
600 |
|
createIndicator(s1, 'Unholy Blight', 'target', 'PLAYER HARMFUL') |
|
601 |
|
createIndicator(s1, 'Icy Clutch', 'target', 'PLAYER HARMFUL') |
|
602 |
|
createIndicator(s1, 'Mark of Blood', 'target', 'PLAYER HARMFUL') |
|
603 |
|
createIndicator(s1, 'Strangulate', 'target', 'PLAYER HARMFUL') |
|
604 |
|
createIndicator(s1, 'Gnaw', 'target', 'PLAYER HARMFUL') |
|
605 |
|
createIndicator(s1, 'Death Grip', 'target', 'PLAYER HARMFUL') |
|
606 |
|
createIndicator(s1, 'Dark Command', 'target', 'PLAYER HARMFUL') |
|
607 |
|
|
|
608 |
|
--[[createIndicator(s0, 'Hysteria')]]-- |
|
609 |
|
end |
|
610 |
|
|
571 |
611 |
local function initSpellActivationOverlayPaladin(rootFrame) |
local function initSpellActivationOverlayPaladin(rootFrame) |
572 |
612 |
local _, classDesignation = UnitClass('player') |
local _, classDesignation = UnitClass('player') |
573 |
613 |
if 'PALADIN' ~= classDesignation then |
if 'PALADIN' ~= classDesignation then |
|
... |
... |
local function initSpellActivationOverlayWarrior(rootFrame) |
787 |
827 |
end |
end |
788 |
828 |
|
|
789 |
829 |
local function initSpellActivationOverlayPriest(rootFrame) |
local function initSpellActivationOverlayPriest(rootFrame) |
790 |
|
local x = UIParent:GetWidth() / 2 - 28 * 10 / 2 |
|
791 |
|
local y = 640 |
|
|
830 |
|
assert (rootFrame ~= nil) |
792 |
831 |
|
|
793 |
|
local f0 = createIndicator(rootFrame, 'Surge of Light', 'player', 'PLAYER HELPFUL') |
|
794 |
|
f0:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', x + 28 * 0, y) |
|
|
832 |
|
local sectionWidth = 288 |
|
833 |
|
local sectionHeight = 36 |
795 |
834 |
|
|
796 |
|
local f1 = createIndicator(rootFrame, 'Serendipity', 'player', 'PLAYER HELPFUL') |
|
797 |
|
f1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', x + 28 * 1, y) |
|
|
835 |
|
local s0 = createSection('ClearcastingPriestFrame1', rootFrame, sectionWidth, sectionHeight) |
|
836 |
|
s0:SetPoint('BOTTOMLEFT', rootFrame:GetWidth() / 2 - sectionWidth / 2, 144) |
|
837 |
|
local s1 = createSection('ClearcastingPriestFrame2', rootFrame, sectionWidth, sectionHeight) |
|
838 |
|
s1:SetPoint('BOTTOMLEFT', rootFrame:GetWidth() / 2 - sectionWidth / 2, 144 * 4) |
|
839 |
|
|
|
840 |
|
local s = {s0, s1} |
|
841 |
|
local t = {'player', 'target'} |
|
842 |
|
local i = 0 |
|
843 |
|
while (i < #t) do |
|
844 |
|
i = i + 1 |
|
845 |
|
local section = s[i] |
|
846 |
|
assert (section ~= nil) |
|
847 |
|
local unitDesignation = t[i] |
|
848 |
|
assert (unitDesignation ~= nil) |
|
849 |
|
createIndicator(section, 'Power Word: Shield', unitDesignation, 'PLAYER HELPFUL') |
|
850 |
|
createIndicator(section, 'Renew', unitDesignation, 'PLAYER HELPFUL') |
|
851 |
|
createIndicator(section, 'Weakened Soul', unitDesignation, 'HARMFUL') |
|
852 |
|
createIndicator(section, 'Psychic Scream', unitDesignation, 'HARMFUL') |
|
853 |
|
end |
|
854 |
|
createIndicator(s0, 'Surge of Light', 'player', 'PLAYER HELPFUL') |
|
855 |
|
createIndicator(s0, 'Serendipity', 'player', 'PLAYER HELPFUL') |
|
856 |
|
createIndicator(s0, 'Borrowed Time', 'player', 'PLAYER HELPFUL') |
798 |
857 |
end |
end |
799 |
858 |
|
|
800 |
859 |
local function initSpellActivationOverlay(rootFrame) |
local function initSpellActivationOverlay(rootFrame) |
|
860 |
|
initSpellActivationOverlayDeathKnight(rootFrame) |
801 |
861 |
initSpellActivationOverlayPaladin(rootFrame) |
initSpellActivationOverlayPaladin(rootFrame) |
802 |
862 |
initSpellActivationOverlayPriest(rootFrame) |
initSpellActivationOverlayPriest(rootFrame) |
803 |
863 |
initSpellActivationOverlayWarlock(rootFrame) |
initSpellActivationOverlayWarlock(rootFrame) |
|
... |
... |
local function init(rootFrame) |
822 |
882 |
|
|
823 |
883 |
--rootFrame:RegisterEvent('UNIT_AURA') |
--rootFrame:RegisterEvent('UNIT_AURA') |
824 |
884 |
--rootFrame:RegisterEvent('SPELLS_CHANGED') |
--rootFrame:RegisterEvent('SPELLS_CHANGED') |
|
885 |
|
rootFrame.createIndicator = createIndicator |
825 |
886 |
end |
end |
826 |
887 |
|
|
827 |
888 |
local function main() |
local function main() |