All pastes #76437 Raw Edit

Thrae

public lua v1 · immutable
·published 2006-07-01 16:39 UTC
rendered paste body
local ResetPvPIcon, tmp, PvPTexturelocal Original_GameTooltip_ShowScriptlocal function GameTooltip_ShowScript()	if ResetPvPIcon then		PvPTexture:Show()		ResetPvPIcon = nil	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)	endend