public
Created

  • Download Gist
gistfile1.lua
Lua
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
--[[
oUF_Caellian.toc
change
## OptionalDeps: oUF_CombatFeedback, oUF_ReadyCheck, oUF_SpellRange, oUF_TotemBar, oUF_WeaponEnchant
to
## OptionalDeps: oUF_CombatFeedback, oUF_ReadyCheck, oUF_SpellRange, oUF_TotemBar, oUF_WeaponEnchant, oUF_RaidDebuffs
]]
 
 
--[[
oUF_cMain.lua
]]
 
-- remove these (line 850-870)
self.cDebuffFilter = true
 
self.cDebuffBackdrop = self.Health:CreateTexture(nil, "OVERLAY")
self.cDebuffBackdrop:SetAllPoints()
self.cDebuffBackdrop:SetTexture(highlightTex)
self.cDebuffBackdrop:SetBlendMode("ADD")
self.cDebuffBackdrop:SetVertexColor(0, 0, 0, 0)
 
self.cDebuff = CreateFrame("StatusBar", nil, (unit == "player" or unit == "target") and self.PortraitOverlay or self.Health)
self.cDebuff:SetWidth(16)
self.cDebuff:SetHeight(16)
self.cDebuff:SetPoint("CENTER")
 
self.cDebuff.Icon = self.cDebuff:CreateTexture(nil, "ARTWORK")
self.cDebuff.Icon:SetAllPoints()
 
self.cDebuff.IconOverlay = self.cDebuff:CreateTexture(nil, "OVERLAY")
self.cDebuff.IconOverlay:SetPoint("TOPLEFT", -1, 1)
self.cDebuff.IconOverlay:SetPoint("BOTTOMRIGHT", 1, -1)
self.cDebuff.IconOverlay:SetTexture(buttonTex)
self.cDebuff.IconOverlay:SetVertexColor(0.25, 0.25, 0.25, 0)
-- replace with
if self:GetParent():GetName():match("oUF_Raid") then
self.RaidDebuffs = CreateFrame('Frame', nil, self)
self.RaidDebuffs:SetHeight(20)
self.RaidDebuffs:SetWidth(20)
self.RaidDebuffs:SetPoint('CENTER', self)
self.RaidDebuffs:SetFrameStrata'HIGH'
self.RaidDebuffs:SetBackdrop({
bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
insets = {top = -1, left = -1, bottom = -1, right = -1},
})
self.RaidDebuffs.icon = self.RaidDebuffs:CreateTexture(nil, 'OVERLAY')
self.RaidDebuffs.icon:SetTexCoord(.1,.9,.1,.9)
self.RaidDebuffs.icon:SetAllPoints(self.RaidDebuffs)
self.RaidDebuffs.cd = CreateFrame('Cooldown', nil, self.RaidDebuffs)
self.RaidDebuffs.cd:SetAllPoints(self.RaidDebuffs)
self.RaidDebuffs.count = self.RaidDebuffs:CreateFontString(nil, 'OVERLAY')
self.RaidDebuffs.count:SetFont(STANDARD_TEXT_FONT, 8, 'OUTLINE')
self.RaidDebuffs.count:SetPoint('BOTTOMRIGHT', self.RaidDebuffs, 'BOTTOMRIGHT', 2, 0)
self.RaidDebuffs.count:SetTextColor(1, .9, 0)
end
--[[
add following codes to the end of <oUF_cConfig.lua>
]]
local _, ns = ...
local ORD = ns.oUF_RaidDebuffs or oUF_RaidDebuffs
 
if not ORD then return end
 
local debuff_data = {
-- put debuffs here
'debuff1', -- spellName
12345, -- spellID
}
 
ORD:RegisterDebuffs(debuff_data)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.