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

TIP 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

nTotalSteps  

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
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback