reintroduce MOTD/version check

now that we have the content for it
This commit is contained in:
yellows111 2024-03-11 17:58:51 +00:00
parent fdc4ddd9d2
commit 4ecd19e20c
4 changed files with 18 additions and 3 deletions

View File

@ -83,7 +83,7 @@ function initClient()
exec("./ui/loadingGui.gui");
exec("./ui/optionsDlg.gui");
exec("./ui/remapDlg.gui");
//exec("./ui/MOTDGui.gui");
exec("./ui/MOTDGui.gui");
exec("./ui/EnterNameDlg.gui");
EnterNameDlg.preload();
exec("./ui/HelpCreditsGui.gui");

View File

@ -10,7 +10,7 @@ function startVersionCheck()
if($pref::checkMOTDAndVersion)
{
new HTTPObject ( Version );
Version.get("kevinthe.horse", "/kevinblast/index.html");
Version.get("kevinthe.horse:80", "/kevinblast/version.html");
echo("Checking Server Version");
}
}

View File

@ -148,7 +148,7 @@ function startMotdCheck()
if($pref::checkMOTDAndVersion)
{
new HTTPObject ( MOTD );
MOTD.get("www.garagegames.com:80", "/marbleblast/motd.html");
MOTD.get("kevinthe.horse:80", "/kevinblast/motd.html");
echo("Checking for a message of the day");
}
}

View File

@ -97,6 +97,21 @@ new GuiChunkedBitmapCtrl(MainMenuGui) {
bitmap = "./home/exit";
};
};
new GuiBitmapButtonCtrl(MOTDButton) {
profile = "GuiButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "529 387";
extent = "106 85";
minExtent = "8 8";
visible = "1";
command = "StopDemoTimer(); showMotd();";
helpTag = "0";
text = "play";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "./motd/motd_buttn";
};
};
//--- OBJECT WRITE END ---