KevinBlast/marble/client/ui/presentsGui.gui

56 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-03-10 20:27:00 -04:00
//--- OBJECT WRITE BEGIN ---
new GuiFadeinBitmapCtrl(presentsGui) {
profile = "GuiInputCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "~/client/ui/presents";
wrap = "0";
fadeinTime = "125";
waitTime = "2500";
fadeoutTime = "125";
};
//--- OBJECT WRITE END ---
function runPresentation()
{
presentsGui.done = false;
presentsGui.skip = false;
Canvas.setContent( PresentsGui );
if(!$presentationRunBefore)
{
$presentationRunBefore = true;
if(!$noMotdOrVersionCheck)
{
startVersionCheck();
startMotdCheck();
}
}
schedule(100, 0, checkPresentsDone );
}
//-------------------------------------
function presentsGui::click()
{
presentsGui.skip = true;
}
//-------------------------------------
function checkPresentsDone()
{
if (presentsGui.skip)
runIgnition();
else if (presentsGui.done)
runProduction();
else
schedule(100, 0, checkPresentsDone );
}