Back

Progress

Progress objects using the CreateProgress method of the Support object:

 sup.CreateProgress( radius );

Example - Simple

app.LoadPlugin( "Support" );

function OnStart()
{
 lay = app.CreateLayout( "Linear", "VCenter,FillXY" );

 sup = app.CreateSupport();
 
 prg = sup.CreateProgress();
 prg.SetBarColor( color.BLUE );
 prg.SetSpin( true );
 lay.AddChild( prg );

 app.AddLayout( lay );
}
  Copy   Copy All    Run   

Example - Simple

app.LoadPlugin( "Support" );

function OnStart()
{
 lay = app.CreateLayout( "Linear", "VCenter,FillXY" );

 sup = app.CreateSupport();
 
 prg = sup.CreateProgress();
 prg.SetBarColor( color.BLUE );
 prg.SetCircleRadius( 0.1 );
 prg.SetRimColor( color.WHITE );
 prg.SetSpin( true );

 lay.AddChild( prg );

 app.AddLayout( lay );
}
  Copy   Copy All    Run   

The following methods are available on the Progress object:

 GetType()
 SetSpinSpeed( number )
 SetBarWidth( number )
 SetCircleRadius( number )
 SetBarColor( color )
 SetRimColor( color )
 SetRimWidth( number )
 SetSpin( boolean )
 IsSpining()

Other Methods:

Show Other Methods

Materialish Progress A material style progress wheel compatible with 2.3, licensed under the Apache 2.0 License. go github page