All pastes #76444 Raw Edit

Thrae

public lua v1 · immutable
·published 2006-07-01 16:51 UTC
rendered paste body
--[[-- 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, PvPTexturelocal Original_GameTooltip_ShowScriptlocal 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()	endendfunction 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)	endendfunction TinyTipIcons_ResetPvPTexture(rank)	PvPTexture:SetTexture( string.format("%s%02d",			       "Interface\\PvPRankBadges\\PvPRank",				rank))	ResetPvPIcon = true	TinyTipUtil_Msg( "ResetPvPTexture called" )end