Currently, it only moves the spark horizontally from left to right, centered vertically on its parent. I think that's what most people want. I will probably add more options and features later.
The addon requires a reference spell for accurate timing. You may set the spell name in your layout if it's not already included in the reference spell list at the top of the addon. Ideally, the reference spell list will include all of the spells that make good cooldown timer references. That will make the addon self-configuring and useful for multiple characters. You can add more to the list if you like. I've only added a handful so far, but I will add more. Let me know which spells belong there and I'll add them in future versions.
oUF_GCD - Global Cooldown timer for oUF
self.GCD = CreateFrame('Frame', nil, self)
self.GCD:SetPoint('BOTTOMLEFT', self.Title, 'BOTTOMLEFT')
self.GCD:SetPoint('BOTTOMRIGHT', self.Title, 'BOTTOMRIGHT')
self.GCD.Spark = self.GCD:CreateTexture(nil, "OVERLAY")
self.GCD.Spark:SetPoint('BOTTOMLEFT', self.Title, 'BOTTOMLEFT', -5, -5)
self.GCD.ReferenceSpellName = '***SEE BELOW***'
You have to set a reference spell. You should choose one that has no cooldown
except the global cooldown, and that cant be interrupted or silenced -- and
it has to be one that's in your spellbook.
Alternatively, you can add spells to the "referenceSpells" block at the top of
this file and the addon will automatically choose the first one that you know. I'll add
more spells to the list as I figure out what they are. For now, you can just add more
spells to the list -- it doesnt matter where.