public virtual void Start( RenderWindow window, ushort numGroupsInit, ushort numGroupsLoad, Real initProportion )
{
mWindow = window;
mNumGroupsInit = numGroupsInit;
mNumGroupsLoad = numGroupsLoad;
mInitProportion = initProportion;
// We need to pre-initialise the 'Bootstrap' group so we can use
// the basic contents in the loading screen
ResourceGroupManager.Instance.InitializeResourceGroup( "Bootstrap" );
OverlayManager omgr = OverlayManager.Instance;
mLoadOverlay = omgr.GetByName( "Core/LoadOverlay" );
if ( mLoadOverlay == null )
{
throw new KeyNotFoundException( "Cannot find loading overlay" );
}
mLoadOverlay.Show();
// Save links to the bar and to the loading text, for updates as we go
mLoadingBarElement = omgr.Elements.GetElement( "Core/LoadPanel/Bar/Progress" );
mLoadingCommentElement = omgr.Elements.GetElement( "Core/LoadPanel/Comment" );
mLoadingDescriptionElement = omgr.Elements.GetElement( "Core/LoadPanel/Description" );
OverlayElement barContainer = omgr.Elements.GetElement( "Core/LoadPanel/Bar" );
mProgressBarMaxSize = barContainer.Width;
mLoadingBarElement.Width = 0;
// self is listener
ResourceGroupManager.Instance.AddResourceGroupListener( this );
}