just a little guidance needed
I'm looking to add multiple loading bars to my client, but I'm a little confused about how to do so. I have map dependant loading screens enabled, and I want a black/white loading screen with the colored map as the loading bar. Do I need to create a new function that controls other loading bars, or is it possible to do it through zgetinitialoading()AddBitmapbar?
Example of a code I tried:
if ( !ZGetInitialLoading()->AddBitmap( 0, szFileName))
{
strcat (szFileName, ZGetGameClient()->GetMatchStageSetting()->GetMapName() );
ZGetInitialLoading()->AddBitmapBar( "Interface/Default/LOADING/loading_" );
strcat(szFileName, ".bmp");
ZGetInitialLoading()->SetTipNum( nBitmap);
}
else
ZGetInitialLoading()->AddBitmapBar( "Interface/Default/LOADING/loading.bmp" );
ZGetInitialLoading()->SetTipNum( nBitmap);
Am I way off or pretty close to how it would work?
Re: just a little guidance needed
Use the same way you bind the map names to the loading picture for bind them to the loading bar. Also, you need to make the loading bar fill the entire window.
Re: just a little guidance needed
May I ask the point of multiple loading bars? To me it sounds absolutely useless but then I might have the wrong idea.
Re: just a little guidance needed
The idea behind it is having a loading bar for each map dependant screen. A bit useless, yeah, but if you want to have fullscreen loading bars, you kinda have to do it.
- - - Updated - - -
Quote:
Originally Posted by
adz28
Use the same way you bind the map names to the loading picture for bind them to the loading bar. Also, you need to make the loading bar fill the entire window.
I tried doing that, but because the loading bar is declared in the #ifndef _FASTDEBUG, it just loads the normal loading bar.
Re: just a little guidance needed
look for Wucas loading screen, you might have an idea. Not very sure tho
Re: just a little guidance needed
Yeah that's how I got my loading bar to be fullscreen, but no matter what Code I try, I can't get multiple bars figured out. I'm pretty sure it's possible, I think artic/mocro use it.
Re: just a little guidance needed
Re: just a little guidance needed
That's only for loading screens tho, not loading bars. Adding a map dependent screen was easy, the problem I'm having is a want a loading bar for each screen.