function UIController.onClientStateUpdated(h,F)if h=="\112\114\101\103\097\109\101"then UIController.setView("\109\097\105\110\077\101\110\117")elseif h=="\119\097\114\109\117\112"then UIController.setView("\119\097\114\109\117\112")elseif h=="\103\097\109\101"then UIController.setView("\103\097\109\101",F)elseif h=="\115\112\101\099\116\097\116\105\110\103"then UIController.setView("\115\112\101\099\116\097\116\105\110\103")elseif h=="\102\105\110\105\115\104\101\100"then UIController.setView("\102\105\110\105\115\104\101\100")elseif h=="\100\101\097\100"then UIController.setView("\100\101\097\100")elseif h=="\112\111\115\116\103\097\109\101"then UIController.setView("\112\111\115\116\071\097\109\101")end end

function UIController.onClientStateUpdated(currentState, currentTick)
	if currentState == "pregame" then
		UIController.setView("mainMenu")
	elseif currentState == "warmup" then
		UIController.setView("warmup")
	elseif currentState == "game" then
		UIController.setView("game", currentTick)
	elseif currentState == "spectating" then
		UIController.setView("spectating")
	elseif currentState == "finished" then
		UIController.setView("finished")
	elseif currentState == "dead" then
		UIController.setView("dead")
	elseif currentState == "postgame" then
		UIController.setView("postGame")
	end
end
