local u=Cheer.CreateComponent("\066\084\084\111\111\108\116\105\112",View)local W={}function u.Start()View.Visible=false W.ShowOnEnter=Support.AddGuiInputListener(View.Parent,"\066\101\103\097\110","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,u.Show)W.HideOnLeave=Support.AddGuiInputListener(View.Parent,"\069\110\100\101\100","\077\111\117\115\101\077\111\118\101\109\101\110\116",true,u.Hide)u.OnRemove:connect(ClearConnections)return u end function u.Show()View.Visible=true end function u.Hide()View.Visible=false end function ClearConnections()for u,O in pairs(W)do O:disconnect()W[u]=nil end end return u.Start()

local Component = Cheer.CreateComponent('BTTooltip', View);

local Connections = {};

function Component.Start()

	-- Hide the view
	View.Visible = false;

	-- Show the tooltip on hover
	Connections.ShowOnEnter = Support.AddGuiInputListener(View.Parent, 'Began', 'MouseMovement', true, Component.Show);
	Connections.HideOnLeave = Support.AddGuiInputListener(View.Parent, 'Ended', 'MouseMovement', true, Component.Hide);

	-- Clear connections when the component is removed
	Component.OnRemove:connect(ClearConnections);

	-- Return component for chaining
	return Component;

end;

function Component.Show()
	View.Visible = true;
end;

function Component.Hide()
	View.Visible = false;
end;

function ClearConnections()
	-- Clears out temporary connections

	for ConnectionKey, Connection in pairs(Connections) do
		Connection:disconnect();
		Connections[ConnectionKey] = nil;
	end;

end;

return Component.Start();
