/
local update_power |
local update_name |
local create_unitframe |
local create_pet_unitframe |
local create_party_unitframe |
local target_onupdate |
function show_menu (frame) |
local unit = frame.unit:sub(1, -2) |
function update_health (frame, event, unit, bar, min, max) |
bar.value:SetText(min) |
update_name(frame) |
end |
function update_power (frame, event, unit, bar, min, max) |
bar.value:SetText(min > 0 and min or '') |
update_name(frame) |
end |
function update_name (frame) |
buffs['growth-y'] = BC |
end |
function target_onupdate (frame) |
-- the default ouf .+target updating is .5 seconds, I'd like it instant |
frame:PLAYER_ENTERING_WORLD('OnTargetUpdate') |
end |
oUF:RegisterStyle('Industrial', create_unitframe) |
oUF:RegisterStyle('Industrial-pet', create_pet_unitframe) |
oUF:RegisterStyle('Industrial-party', create_party_unitframe) |
local party3 = oUF:Spawn('party3', frame_name..'party3') |
local party4 = oUF:Spawn('party4', frame_name..'party4') |
targettarget:SetScript('OnUpdate', target_onupdate) |
pet:SetPoint(MC, UIParent, MC, 0, -300) |
player:SetPoint(BC, pet, TC, 0, margin) |
target:SetPoint(BC, player, TC, 0, margin) |