idTech4.idSession.LoadLoadingInterface C# (CSharp) Method

LoadLoadingInterface() private method

private LoadLoadingInterface ( string mapName ) : void
mapName string
return void
		private void LoadLoadingInterface(string mapName)
		{
			// load / program a gui to stay up on the screen while loading
			string mapPath = string.Format("guis/map/{0}.gui", Path.GetFileNameWithoutExtension(mapName));

			// give the gamecode a chance to override
			mapPath = idE.Game.GetMapLoadingInterface(mapPath);

			if(idE.UIManager.Exists(mapPath) == true)
			{
				_guiLoading = idE.UIManager.FindInterface(mapPath, true, false, true);
			}
			else
			{
				_guiLoading = idE.UIManager.FindInterface("guis/map/loading.gui", true, false, true);
			}

			_guiLoading.State.Set("map_loading", 0.0f);
	}