function Window.SetVisible(n,D)Gui.Visible=D if D then Entry.TextBox:CaptureFocus()n:SetEntryText("")else Entry.TextBox:ReleaseFocus()n.AutoComplete:Hide()end end
--- Sets the command bar visible or not
function Window:SetVisible(visible)
	Gui.Visible = visible

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