Adds trinket status to oUF, allowing you to see if an unit has used its PvP trinket.
Example usage:
(arena frames only)
Code:
if (unit and unit:find('arena%d') and (not unit:find("arena%dtarget")) and (not unit:find("arena%dpet"))) then
self.Trinket = CreateFrame("Frame", nil, self)
self.Trinket:SetHeight(27)
self.Trinket:SetWidth(27)
self.Trinket:SetPoint("TOPRIGHT", self, "TOPLEFT", -4, 1)
self.Trinket.trinketUseAnnounce = true
self.Trinket.trinketUpAnnounce = true
end
(all frames)
Code:
local trinket = self.Health:CreateFontString(nil, 'OVERLAY')
trinket:SetPoint("CENTER")
trinket:SetFont(GameFontNormal:GetFont(),13)
trinket.frequentUpdates = 0.25
self:Tag(trinket, '[trinket]')
You will need to add oUF_Trinkets in the optional dependencies of your layout in the TOC file.
You can use
OmniCC to display cooldown count text