diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs
index 00a8666..3c69d9e 100644
--- a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs
+++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs
@@ -128,7 +128,10 @@ public class GlobalFuncs
ini.IniWriteValue(section, "PlayerLimit", GlobalVars.UserConfiguration.PlayerLimit.ToString());
ini.IniWriteValue(section, "UPnP", GlobalVars.UserConfiguration.UPnP.ToString());
ini.IniWriteValue(section, "ItemMakerDisableHelpMessage", GlobalVars.UserConfiguration.DisabledItemMakerHelp.ToString());
- ini.IniWriteValue(section, "PlayerTripcode", SecurityFuncs.Base64Encode(GlobalVars.UserConfiguration.PlayerTripcode.ToString()));
+ if (string.IsNullOrWhiteSpace(ini.IniReadValue(section, "PlayerTripcode", GenerateAndReturnTripcode())))
+ {
+ ini.IniWriteValue(section, "PlayerTripcode", SecurityFuncs.Base64Encode(GlobalVars.UserConfiguration.PlayerTripcode.ToString()));
+ }
ini.IniWriteValue(section, "DiscordRichPresence", GlobalVars.UserConfiguration.DiscordPresence.ToString());
ini.IniWriteValue(section, "MapPath", GlobalVars.UserConfiguration.MapPath.ToString());
ini.IniWriteValue(section, "MapPathSnip", GlobalVars.UserConfiguration.MapPathSnip.ToString());
diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs
index d747734..73d485e 100644
--- a/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs
+++ b/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs
@@ -180,7 +180,10 @@ namespace NovetusLauncher
#region Form Event Functions
public void InitForm()
{
- Parent.Text = "Novetus " + GlobalVars.ProgramInformation.Version;
+ if (FormStyle != Settings.Style.Stylish)
+ {
+ Parent.Text = "Novetus " + GlobalVars.ProgramInformation.Version;
+ }
GlobalFuncs.ConsolePrint("Novetus version " + GlobalVars.ProgramInformation.Version + " loaded. Initializing config.", 4, ConsoleBox);
GlobalFuncs.ConsolePrint("Novetus path: " + GlobalPaths.BasePath, 4, ConsoleBox);
@@ -226,6 +229,13 @@ namespace NovetusLauncher
File.Create(GlobalPaths.ConfigDir + "\\ports.txt").Dispose();
}
+ if (FormStyle == Settings.Style.Stylish)
+ {
+ Parent.Text = "Novetus " + GlobalVars.ProgramInformation.Version + " [CLIENT: " +
+ GlobalVars.UserConfiguration.SelectedClient + " | MAP: " +
+ GlobalVars.UserConfiguration.Map + "]";
+ }
+
GlobalFuncs.CreateAssetCacheDirectories();
SetupImportantData();
diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs
index 4d391ec..aa1c311 100644
--- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs
+++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs
@@ -123,6 +123,12 @@ namespace NovetusLauncher
launcherFormStylishInterface1.userNameBox.Text = GlobalVars.UserConfiguration.PlayerName;
launcherFormStylishInterface1.mapsBox.SelectedNode = TreeNodeHelper.SearchTreeView(GlobalVars.UserConfiguration.Map, launcherFormStylishInterface1.mapsBox.Nodes);
launcherFormStylishInterface1.mapsBox.Focus();
+ //stupid fucking HACK because we aren't selecting it properly.
+ if (launcherFormStylishInterface1.mapsBox.SelectedNode != null)
+ {
+ launcherFormStylishInterface1.mapsBox.SelectedNode.BackColor = SystemColors.Highlight;
+ launcherFormStylishInterface1.mapsBox.SelectedNode.ForeColor = SystemColors.HighlightText;
+ }
launcherFormStylishInterface1.joinPortBox.Text = GlobalVars.JoinPort.ToString();
launcherFormStylishInterface1.serverPortBox.Text = GlobalVars.UserConfiguration.RobloxPort.ToString();
launcherFormStylishInterface1.discordRichPresenceBox.IsChecked = GlobalVars.UserConfiguration.DiscordPresence;
@@ -168,7 +174,7 @@ namespace NovetusLauncher
foreach (Form f in openForms)
{
- if (f.Name != Parent.Name)
+ if (f.Name != Name)
f.Close();
}
diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml
index 0177c6e..3d2eb41 100644
--- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml
+++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml
@@ -574,6 +574,36 @@
+
+
@@ -626,6 +656,8 @@
+
+
@@ -761,7 +793,7 @@
-
+
diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml.cs
index a09f1ba..5ba0eaa 100644
--- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml.cs
+++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml.cs
@@ -131,6 +131,10 @@ namespace NovetusLauncher
launcherForm.SelectMap();
LoadMapDesc();
+
+ FormParent.Text = "Novetus " + GlobalVars.ProgramInformation.Version + " [CLIENT: " +
+ GlobalVars.UserConfiguration.SelectedClient + " | MAP: " +
+ GlobalVars.UserConfiguration.Map + "]";
}
private void clientListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
@@ -177,6 +181,10 @@ namespace NovetusLauncher
return;
}
+ FormParent.Text = "Novetus " + GlobalVars.ProgramInformation.Version + " [CLIENT: " +
+ GlobalVars.UserConfiguration.SelectedClient + " | MAP: " +
+ GlobalVars.UserConfiguration.Map + "]";
+
GlobalFuncs.UpdateRichPresence(GlobalVars.LauncherState.InLauncher, "");
FormCollection fc = System.Windows.Forms.Application.OpenForms;