WoWInterface SVN StarTip

Compare Revisions

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

Rev 8 → Rev 9

trunk/StarTip/StarTip/StarTip.lua New file
0,0 → 1,23
StarTip = {}
 
local origs = {}
 
local function OnTooltipSetUnit(frame, ...)
local name, unitID = frame:GetUnit()
 
if unitID then
local index = GetRaidTargetIndex(unitID)
if index then
frame:AddDoubleLine(" ", "Raid Target")
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
trunk/StarTip/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