PDA

View Full Version : Changing Raid debuffs into buffs, need help!!



Kahkon
07-10-2006, 11:30 PM
Ok I changed raid frames to show buff instead of debuffs. How do I make it show only buffs my mage can cast? This is code where I changed buffs.

Nurfed_RaidUnit_Template = {
type = "Button",
size = { 105, 14 },
children = {
name = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "OUTLINE" },
JustifyH = "LEFT",
--ShadowColor = { 0, 0, 0, 1},
--ShadowOffset = { -1, -1 },
Anchor = "all",
},
hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25 , 0 },
vars = { format = "$perc" },
},
hp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar6.tga",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 },
StatusBarColor = { 0, 1, 0 },
},
mp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar6.tga",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
StatusBarColor = { 0, 1, 1 },
},
buff1 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parent", "RIGHT", 1, 0 } } },
buff2 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentbuff1", "RIGHT", 0, 0 } } },
buff3 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentbuff2", "RIGHT", 0, 0 } } },
buff4 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentbuff3", "RIGHT", 0, 0 } } },
buff5 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentbuff4", "RIGHT", 0, 0 } } },
}, OnClick = function() Nurfed_Unit_OnClick(arg1) end,
OnEnter = function() UnitFrame_OnEnter() end,
OnLeave = function() UnitFrame_OnLeave() end,
OnEvent = function() Nurfed_Units_OnEvent() end,
},
};

a67rhf7823jn8747==