WoWInterface SVN oUF_Industrial

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 31 to Rev 30
    Reverse comparison

Rev 31 → Rev 30

trunk/Addon.lua
48,9 → 48,6
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)
91,12 → 88,10
 
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)
277,11 → 272,6
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)
298,8 → 288,6
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)