Created
April 17, 2010 12:09
-
-
Save yaroot/369501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment