--[[ -- Name: TinyTip -- Author: Thrae of Maelstrom (aka "Matthew Carras") -- Release Date: 6-25-06 -- -- These functions include the addition of more textures -- to the tooltip, such as the PvP Rank Icon or buffs and -- debuffs. If you do not use these options, then you can -- safely remove this file from the TOC or delete it. --]] local ResetPvPIcon, tmp, PvPTexture local Original_GameTooltip_ShowScript local function GameTooltip_ShowScript() TinyTipUtil_Msg( "OnShow:" .. tostring(ResetPvPIcon) ) if ResetPvPIcon then PvPTexture:Show() ResetPvPIcon = false elseif PvPTexture then PvPTexture:Hide() end if Original_GameTooltip_ShowScript then Original_GameTooltip_ShowScript() end end function TinyTipIcons_AddPvPIconNHook() PvPTexture = GameTooltip:CreateTexture(nil, "ARTWORK") if TinyTipUtil_GetDB("Scale") then PvPTexture:SetScale( TinyTipUtil_GetDB("Scale") ) end PvPTexture:SetPoint("TOPRIGHT", GameTooltip, "TOPLEFT", 0, 0) PvPTexture:Hide() if GameTooltip:GetScript("OnShow") ~= GameTooltip_ShowScript then Original_GameTooltip_Show = GameTooltip:GetScript("OnShow") GameTooltip:SetScript("OnShow", GameTooltip_ShowScript) end end function TinyTipIcons_ResetPvPTexture(rank) PvPTexture:SetTexture( string.format("%s%02d", "Interface\\PvPRankBadges\\PvPRank", rank)) ResetPvPIcon = true TinyTipUtil_Msg( "ResetPvPTexture called" ) end