//--- OBJECT WRITE BEGIN --- new GuiFadeinBitmapCtrl(StartupGui) { profile = "GuiInputCtrlProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "0 0"; extent = "640 480"; minExtent = "8 8"; visible = "1"; helpTag = "0"; bitmap = "./GarageGames"; wrap = "0"; fadeinTime = "125"; waitTime = "3000"; fadeoutTime = "125"; }; //--- OBJECT WRITE END --- function loadStartup() { StartupGui.done = false; Canvas.setContent( StartupGui ); schedule(100, 0, checkStartupDone ); // If you want a sound or music to play add a new AudioProfile to client\scripts\audioProfiles.cs // that is named AudioStartup and uncomment the line below. You can see an example of this in the // demo scripts. //alxPlay(AudioStartup); } //------------------------------------- function StartupGui::click() { StartupGui.done = true; } //------------------------------------- function checkStartupDone() { if (StartupGui.done) { echo ("*** Load Main Menu"); loadMainMenu(); } else schedule(100, 0, checkStartupDone ); }