WoWInterface SVN StarTip

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 7 to Rev 8
    Reverse comparison

Rev 7 → Rev 8

trunk/StarTip/StarTip.toc New file
0,0 → 1,8
## Interface: 20400
## Title: StarTip
## Notes: Adds the raid lucky charms to the unit tooltip.
## Author: Humfrey
## Version: 1.0.0
## X-Category: Interface Enhancements
 
StarTip.lua
\ No newline at end of file
trunk/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