mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 08:34:43 +00:00
Better MOTD
This commit is contained in:
parent
3c966cd451
commit
73c77f4d2d
1 changed files with 18 additions and 12 deletions
|
|
@ -70,6 +70,15 @@ if( $Host::LoadScreenColor2 $= " " ) $Host::LoadScreenColor2 = "29DEE7";
|
||||||
if( $Host::LoadScreenColor3 $= " " ) $Host::LoadScreenColor3 = "33CCCC";
|
if( $Host::LoadScreenColor3 $= " " ) $Host::LoadScreenColor3 = "33CCCC";
|
||||||
if( $Host::Info !$= " " ) $Host::Info = " ";
|
if( $Host::Info !$= " " ) $Host::Info = " ";
|
||||||
|
|
||||||
|
// So ServerDefaults wont replace a "" value when meant to be blank
|
||||||
|
for(%x = 1; %x <= 4; %x++)
|
||||||
|
{
|
||||||
|
if( $Host::LoadScreenMOTD[%x] $= "")
|
||||||
|
{
|
||||||
|
$Host::LoadScreenMOTD[%x] = " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Keep it in a package to be neat and organized!
|
// Keep it in a package to be neat and organized!
|
||||||
package LoadScreenPackage
|
package LoadScreenPackage
|
||||||
|
|
@ -268,7 +277,6 @@ function ALTsendModInfoToClient(%client)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:12><color:" @ $Host::LoadScreenColor2 @ "><Font:Univers Condensed Bold:28>Info:";
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:12><color:" @ $Host::LoadScreenColor2 @ "><Font:Univers Condensed Bold:28>Info:";
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line1;
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line1;
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line2;
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line2;
|
||||||
|
|
@ -278,6 +286,7 @@ function ALTsendModInfoToClient(%client)
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = " ";
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = " ";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:12><Font:Univers Condensed Bold:28><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::GameName @ ":";
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:12><Font:Univers Condensed Bold:28><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::GameName @ ":";
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line4;
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line4;
|
||||||
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line5;
|
$dtLoadingScreen::LoadScreenMessage[$dmlP++] = "<lmargin:24><Font:univers:18><bitmap:bullet_2>" @ %line5;
|
||||||
|
|
@ -340,20 +349,17 @@ function sendLoadscreen(%client)
|
||||||
%MOTDMsg3 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD3;
|
%MOTDMsg3 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD3;
|
||||||
%MOTDMsg4 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD4;
|
%MOTDMsg4 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD4;
|
||||||
|
|
||||||
if($Host::LoadScreenMOTD1 !$= " ")
|
//MOTD Loop
|
||||||
|
//Leave line " " in ServerPrefs to not show a line
|
||||||
|
for(%x = 1; %x <= 4; %x++)
|
||||||
{
|
{
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDHeader);
|
if( $Host::LoadScreenMOTD[%x] !$= " " && %x $= 1 )
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg1);
|
|
||||||
if($Host::LoadScreenMOTD2 !$= " ")
|
|
||||||
{
|
{
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg2);
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDHeader);
|
||||||
if($Host::LoadScreenMOTD3 !$= " ")
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
||||||
{
|
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg3);
|
|
||||||
if($Host::LoadScreenMOTD4 !$= " ")
|
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg4);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else if( $Host::LoadScreenMOTD[%x] !$= " " )
|
||||||
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal Screen Always in the Background
|
// Normal Screen Always in the Background
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue