function Window.SetVisible(c,e)Gui.Visible=e if e then Entry.TextBox:CaptureFocus()c:SetEntryText("")else Entry.TextBox:ReleaseFocus()c.AutoComplete:Hide()end end

function Window:SetVisible(visible)
	Gui.Visible = visible

	if visible then
		Entry.TextBox:CaptureFocus()
		self:SetEntryText("")
	else
		Entry.TextBox:ReleaseFocus()
		self.AutoComplete:Hide()
	end
end
