List of commits:
Subject Hash Author Date (UTC)
feat(clearcasting): Add death knight indicators 5c42814210b355e6de601faaf8e173222995cfa6 Vladyslav Bondarenko 2021-10-30 12:23:43
feat!: Show spell tooltip on indicator mouseover dd69f46f1522f49ce942d8e0b3756c609471be7a Vladyslav Bondarenko 2021-10-13 01:12:08
feat!: Indicator grouping feature df7e0579a51388dba73bc5d92b3d04369bb0e426 Vladyslav Bondarenko 2021-10-13 00:17:28
feat!: Redo the core functionality 085af1bc403b3a9d2d4b99ec460d67889239fabd Vladyslav Bondarenko 2021-07-09 11:15:31
feat: Track additional auras 958e52f9808d64ebb816663d2aa22a4eb39a2068 Vladyslav Bondarenko 2021-01-22 20:28:13
fix!: No longer crash on unknown spell 65061085f0f55b75910c9ed4d8249b1e8e30f9ee Vladyslav Bondarenko 2020-12-11 17:31:16
fix: Render indicators properly on first login bf102cc749cc23d3769a82f10fe93a05afc5277f Vladyslav Bondarenko 2020-12-11 14:25:11
feat: Add Serendipity and Surge of Light indicators ba1d0f32a4b8f4f5d4e2730f0a4e409e23b52974 Vladyslav Bondarenko 2020-12-10 16:19:55
Initial commit 9b3df418e373218125fec12271084afebb11cfc2 Vladyslav Bondarenko 2020-12-04 10:27:24
Commit 5c42814210b355e6de601faaf8e173222995cfa6 - feat(clearcasting): Add death knight indicators
Author: Vladyslav Bondarenko
Author date (UTC): 2021-10-30 12:23
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2021-10-30 12:23
Parent(s): 2d68fb0b2e1ba23830ce8a2ea7a39e85649035a7
Signing key:
Tree: 6e75b466c943bfa0962f5d93d81a3e39d8db63a0
File Lines added Lines deleted
clearcasting.lua 67 6
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()
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/clearcasting

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/clearcasting

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/clearcasting

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main