WoWInterface SVN StarTip

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 5 to Rev 4
    Reverse comparison

Rev 5 → Rev 4

trunk/StarTip/StarTip/StarTip.lua New file
0,0 → 1,24
StarTip = {}
 
local origs = {}
 
local function OnTooltipSetUnit(frame, ...)
local name, unitID = frame:GetUnit()
 
if unitID then
local index = GetRaidTargetIndex(unitID)
if index then
frame:AddLine("Raid Target:")
frame:AddLine(" ")
frame:AddTexture("Interface\\TARGETINGFRAME\\UI-RaidTargetingIcon_"..index..".blp")
end
end
if origs[frame] then
return origs[frame](frame, ...)
end
end
 
for _,frame in pairs{GameTooltip} do
origs[frame] = frame:GetScript("OnTooltipSetUnit")
frame:SetScript("OnTooltipSetUnit", OnTooltipSetUnit)
end