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?
loading file 1
loading file 2
etc
using the onPhase1Progress function?
About the author
#2
LoadingProgressTxt.setValue
However im not sure what else I can do besides:
LoadingProgressTxt.setValue( "text");
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
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.
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.
michael