CommonCtrl.LoaderUI
Loader UI: animated when scene is loading.
Title |
Loader UI: animated when scene is loading. |
Author(s) |
LiXizhi |
Date |
2006/9/29 |
File |
script/ide/LoaderUI.lua |
Description
Sample Code
NPL.load("(gl)script/ide/LoaderUI.lua");
CommonCtrl.LoaderUI.Start(100);
CommonCtrl.LoaderUI.SetProgress(40);
CommonCtrl.LoaderUI.SetProgress(90);
CommonCtrl.LoaderUI.SetProgress(100);
CommonCtrl.LoaderUI.End();
Member Functions
LoaderUI.Start
call this function to start the progress.
syntax
function LoaderUI.Start(nTotalSteps)
parameters
LoaderUI.SetProgress
[[ set the current progress
- param CurrentStep : current progress, such as 20, 40, 100,
- param disableRender : if nil, the GUI will be forced to render to reflect the changes.
]]
syntax
function LoaderUI.SetProgress(CurrentStep, disableRender)
parameters
CurrentStep |
current progress, such as 20, 40, 100, |
disableRender |
|
Topic revision: r1 - 2008-02-29
- LiXizhi