add welcome splash
This commit is contained in:
parent
84af43ea4a
commit
141f00843a
|
|
@ -9,7 +9,7 @@ public class FileFormat
|
|||
{
|
||||
public ClientInfo()
|
||||
{
|
||||
UsesPlayerName = false;
|
||||
UsesPlayerName = true;
|
||||
UsesID = true;
|
||||
Description = "";
|
||||
Warning = "";
|
||||
|
|
@ -67,6 +67,7 @@ public class FileFormat
|
|||
ServerBrowserServerName = "Novetus";
|
||||
ServerBrowserServerAddress = "localhost";
|
||||
Priority = ProcessPriorityClass.RealTime;
|
||||
InitialBootup = true;
|
||||
}
|
||||
|
||||
public string SelectedClient { get; set; }
|
||||
|
|
@ -95,6 +96,7 @@ public class FileFormat
|
|||
public string ServerBrowserServerName { get; set; }
|
||||
public string ServerBrowserServerAddress { get; set; }
|
||||
public ProcessPriorityClass Priority { get; set; }
|
||||
public bool InitialBootup { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ public class GlobalFuncs
|
|||
ini.IniWriteValue(section, "ServerBrowserServerName", GlobalVars.UserConfiguration.ServerBrowserServerName.ToString());
|
||||
ini.IniWriteValue(section, "ServerBrowserServerAddress", GlobalVars.UserConfiguration.ServerBrowserServerAddress.ToString());
|
||||
ini.IniWriteValue(section, "ClientLaunchPriority", ((int)GlobalVars.UserConfiguration.Priority).ToString());
|
||||
ini.IniWriteValue(section, "InitialBootup", GlobalVars.UserConfiguration.InitialBootup.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -158,7 +159,7 @@ public class GlobalFuncs
|
|||
map, port, limit, upnp,
|
||||
disablehelpmessage, tripcode, discord, mappath, mapsnip,
|
||||
graphics, reshade, qualitylevel, style, savebackups, altIP,
|
||||
disReshadeDel, showNotifs, SB_Name, SB_Address, priority;
|
||||
disReshadeDel, showNotifs, SB_Name, SB_Address, priority, initialBootup;
|
||||
|
||||
INIFile ini = new INIFile(cfgpath);
|
||||
|
||||
|
|
@ -188,6 +189,7 @@ public class GlobalFuncs
|
|||
SB_Name = ini.IniReadValue(section, "ServerBrowserServerName", GlobalVars.UserConfiguration.ServerBrowserServerName.ToString());
|
||||
SB_Address = ini.IniReadValue(section, "ServerBrowserServerAddress", GlobalVars.UserConfiguration.ServerBrowserServerAddress.ToString());
|
||||
priority = ini.IniReadValue(section, "ClientLaunchPriority", ((int)GlobalVars.UserConfiguration.Priority).ToString());
|
||||
initialBootup = ini.IniReadValue(section, "InitialBootup", GlobalVars.UserConfiguration.InitialBootup.ToString());
|
||||
|
||||
GlobalVars.UserConfiguration.CloseOnLaunch = Convert.ToBoolean(closeonlaunch);
|
||||
|
||||
|
|
@ -250,6 +252,7 @@ public class GlobalFuncs
|
|||
GlobalVars.UserConfiguration.ServerBrowserServerName = SB_Name;
|
||||
GlobalVars.UserConfiguration.ServerBrowserServerAddress = SB_Address;
|
||||
GlobalVars.UserConfiguration.Priority = (ProcessPriorityClass)Convert.ToInt32(priority);
|
||||
GlobalVars.UserConfiguration.InitialBootup = Convert.ToBoolean(initialBootup);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -679,7 +682,7 @@ public class GlobalFuncs
|
|||
}
|
||||
|
||||
string desc = "This client information file for '" + GlobalVars.UserConfiguration.SelectedClient +
|
||||
"' was pre-generated by Novetus for your convienence.\nIf you experience any issues with the default settings, load this clientinfo.nov file into the Client SDK.";
|
||||
"' was pre-generated by Novetus for your convienence. If you experience any issues with the default settings, load this clientinfo.nov file into the Client SDK.";
|
||||
|
||||
DefaultClientInfo.Description = desc;
|
||||
|
||||
|
|
|
|||
|
|
@ -45,8 +45,17 @@ public static class SplashReader
|
|||
|
||||
private static string GetSpecialSplash()
|
||||
{
|
||||
string[] splashes = File.ReadAllLines(GlobalPaths.ConfigDir + "\\splashes-special.txt");
|
||||
string returnsplash = "";
|
||||
|
||||
if (GlobalVars.UserConfiguration.InitialBootup)
|
||||
{
|
||||
returnsplash = "Welcome to Novetus " + GlobalVars.ProgramInformation.Version + "!";
|
||||
GlobalVars.UserConfiguration.InitialBootup = false;
|
||||
GlobalFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName, true);
|
||||
return returnsplash;
|
||||
}
|
||||
|
||||
string[] splashes = File.ReadAllLines(GlobalPaths.ConfigDir + "\\splashes-special.txt");
|
||||
List<SpecialSplash> specialsplashes = new List<SpecialSplash>();
|
||||
|
||||
foreach (var splash in splashes)
|
||||
|
|
|
|||
Loading…
Reference in New Issue