Game Development Community

Progress Bar question

by michael · in General Discussion · 02/01/2009 (1:30 am) · 4 replies

Is there a way to get a progress bar to display everything it is loading like:

loading file 1
loading file 2
etc

using the onPhase1Progress function?

#1
02/01/2009 (10:31 am)
Anyone? Is there an online resource you know of ? I searched but didnt find anything
#2
02/01/2009 (10:39 am)
ok so im guessing I have to do something with this :

LoadingProgressTxt.setValue

However im not sure what else I can do besides:

LoadingProgressTxt.setValue( "text");

#3
02/01/2009 (11:52 am)
wow no one can help me??
#4
02/01/2009 (7:56 pm)
Michael,

Inside of common/client/missionDownload.cs, find the function, onDataBlockObjectReceived(%index, %total)

and add these two lines to your function:

LoadingProgress.setValue(0);
LoadingProgressTxt.setValue("Loading file " @ %index);



It should look something like this:

function onDataBlockObjectReceived(%index, %total)
{
onPhase1Progress(%index / %total);
LoadingProgress.setValue(0);
LoadingProgressTxt.setValue("Loading file " @ %index);
}

Let me know if that works for you.