Quantcast
WoWInterface: SVN - oUF_Industrial - Path Comparison - / Rev 30 and / Rev 31

WoWInterface SVN oUF_Industrial

Compare Revisions

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

Rev 30 → Rev 31

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