/trunk
local power = CreateFrame('StatusBar', nil, frame) |
local buffs = CreateFrame('Frame', nil, frame) |
local debuffs = CreateFrame('Frame', nil, frame) |
local rlicon = health:CreateTexture(nil, 'OVERLAY') |
local ricon = health:CreateTexture() |
local mlicon = health:CreateTexture() |
local threat = health:CreateTexture() |
local leader = health:CreateTexture(nil, 'OVERLAY') |
local threat = frame:CreateTexture() |
local happiness = frame:CreateTexture() |
health.info = health:CreateFontString(nil, 'OVERLAY') |
health.value = health:CreateFontString(nil, 'OVERLAY') |
power.info = power:CreateFontString(nil, 'OVERLAY') |
debuffs['growth-x'] = MR |
debuffs['growth-y'] = BC |
-- rlicon icon |
rlicon:SetPoint(MC, frame, TL) |
rlicon:SetWidth(16) |
rlicon:SetHeight(16) |
-- leader icon |
leader:SetWidth(16) |
leader:SetHeight(16) |
leader:SetPoint(MC, health, TC) |
-- raid icon |
ricon:SetPoint(MC, frame, TC) |
ricon:SetWidth(16) |
ricon:SetHeight(16) |
-- master looter icon |
mlicon:SetPoint(ML, rlicon, MR) |
mlicon:SetWidth(16) |
mlicon:SetHeight(16) |
-- threat |
threat:SetPoint(MC, frame, TR) |
threat:SetWidth(16) |
frame.Info = power.info |
frame.Buffs = buffs |
frame.Debuffs = debuffs |
frame.Leader = rlicon |
frame.RaidIcon = ricon |
frame.MasterLooter = mlicon |
frame.Leader = leader |
frame.Threat = threat |
end |
function create_pet_unitframe(frame, unit) |
create_unitframe(frame, unit) |
local happiness = frame.Health:CreateTexture() |
local happiness = frame:CreateTexture() |
happiness:SetPoint(MC, frame, BR) |
happiness:SetWidth(16) |
happiness:SetHeight(16) |