mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 14:34:51 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
29
docs/base/@vl2/scripts.vl2/scripts/DemoEndGui.cs
Normal file
29
docs/base/@vl2/scripts.vl2/scripts/DemoEndGui.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
$DemoCycleDelay = 6000;
|
||||
|
||||
function DemoEndGui::onWake(%this)
|
||||
{
|
||||
%this.index = 1;
|
||||
new ActionMap( DemoEndMap );
|
||||
DemoEndMap.bindCmd( mouse, button0, "DemoEndGui.forceBitmapCycle();", "" );
|
||||
DemoEndMap.bindCmd( keyboard, space, "DemoEndGui.forceBitmapCycle();", "" );
|
||||
DemoEndMap.push();
|
||||
%this.cycleTimer = %this.schedule($DemoCycleDelay, cycleBitmaps);
|
||||
}
|
||||
|
||||
function DemoEndGui::cycleBitmaps(%this)
|
||||
{
|
||||
if (%this.index == 3)
|
||||
quit();
|
||||
else
|
||||
{
|
||||
%this.index++;
|
||||
%this.setBitmap("gui/bg_DemoEnd" @ %this.index);
|
||||
%this.cycleTimer = %this.schedule( $DemoCycleDelay, cycleBitmaps );
|
||||
}
|
||||
}
|
||||
|
||||
function DemoEndGui::forceBitmapCycle( %this )
|
||||
{
|
||||
cancel( %this.cycleTimer );
|
||||
%this.cycleBitmaps();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue