Axiom.Demos.LoadingBar.ResourceGroupLoadStarted C# (CSharp) Method

ResourceGroupLoadStarted() public method

public ResourceGroupLoadStarted ( string groupName, int resourceCount ) : void
groupName string
resourceCount int
return void
		public void ResourceGroupLoadStarted( string groupName, int resourceCount )
		{
			Debug.Assert( mNumGroupsInit > 0, "You stated you were not going to init any groups, but you did! Divide by zero would follow..." );
			mProgressBarInc = mProgressBarMaxSize * ( 1 - mInitProportion ) / (Real)resourceCount;
			mProgressBarInc /= mNumGroupsLoad;
			mLoadingDescriptionElement.Text = "Loading resources...";
			mWindow.Update();
		}