form renaming and layout stuff

This commit is contained in:
Bitl 2020-07-07 11:31:56 -07:00
parent 52206710c4
commit 0398d0fcff
23 changed files with 164 additions and 159 deletions

View File

@ -126,7 +126,7 @@ public class LauncherFuncs
ini.IniWriteValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString()); ini.IniWriteValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
ini.IniWriteValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString()); ini.IniWriteValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
ini.IniWriteValue(section, "QualityLevel", Settings.QualityOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString()); ini.IniWriteValue(section, "QualityLevel", Settings.QualityOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
ini.IniWriteValue(section, "Layout", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherLayout).ToString()); ini.IniWriteValue(section, "Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherLayout).ToString());
ini.IniWriteValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString()); ini.IniWriteValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
} }
else else
@ -135,7 +135,7 @@ public class LauncherFuncs
string closeonlaunch, userid, name, selectedclient, string closeonlaunch, userid, name, selectedclient,
map, port, limit, upnp, map, port, limit, upnp,
disablehelpmessage, tripcode, discord, mappath, mapsnip, disablehelpmessage, tripcode, discord, mappath, mapsnip,
graphics, reshade, qualitylevel, layout, savebackups; graphics, reshade, qualitylevel, style, savebackups;
INIFile ini = new INIFile(cfgpath); INIFile ini = new INIFile(cfgpath);
@ -157,7 +157,7 @@ public class LauncherFuncs
graphics = ini.IniReadValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString()); graphics = ini.IniReadValue(section, "GraphicsMode", Settings.GraphicsOptions.GetIntForMode(GlobalVars.UserConfiguration.GraphicsMode).ToString());
reshade = ini.IniReadValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString()); reshade = ini.IniReadValue(section, "ReShade", GlobalVars.UserConfiguration.ReShade.ToString());
qualitylevel = ini.IniReadValue(section, "QualityLevel", Settings.QualityOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString()); qualitylevel = ini.IniReadValue(section, "QualityLevel", Settings.QualityOptions.GetIntForLevel(GlobalVars.UserConfiguration.QualityLevel).ToString());
layout = ini.IniReadValue(section, "Layout", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherLayout).ToString()); style = ini.IniReadValue(section, "Style", Settings.UIOptions.GetIntForStyle(GlobalVars.UserConfiguration.LauncherLayout).ToString());
savebackups = ini.IniReadValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString()); savebackups = ini.IniReadValue(section, "AssetLocalizerSaveBackups", GlobalVars.UserConfiguration.AssetLocalizerSaveBackups.ToString());
try try
@ -206,7 +206,7 @@ public class LauncherFuncs
GlobalVars.UserConfiguration.GraphicsMode = Settings.GraphicsOptions.GetModeForInt(Convert.ToInt32(graphics)); GlobalVars.UserConfiguration.GraphicsMode = Settings.GraphicsOptions.GetModeForInt(Convert.ToInt32(graphics));
GlobalVars.UserConfiguration.ReShade = Convert.ToBoolean(reshade); GlobalVars.UserConfiguration.ReShade = Convert.ToBoolean(reshade);
GlobalVars.UserConfiguration.QualityLevel = Settings.QualityOptions.GetLevelForInt(Convert.ToInt32(qualitylevel)); GlobalVars.UserConfiguration.QualityLevel = Settings.QualityOptions.GetLevelForInt(Convert.ToInt32(qualitylevel));
GlobalVars.UserConfiguration.LauncherLayout = Settings.UIOptions.GetStyleForInt(Convert.ToInt32(layout)); GlobalVars.UserConfiguration.LauncherLayout = Settings.UIOptions.GetStyleForInt(Convert.ToInt32(style));
GlobalVars.UserConfiguration.AssetLocalizerSaveBackups = Convert.ToBoolean(savebackups); GlobalVars.UserConfiguration.AssetLocalizerSaveBackups = Convert.ToBoolean(savebackups);
} }
catch (Exception) catch (Exception)

View File

@ -10,7 +10,7 @@
//This ALWAYS gets lost whenever I compile. WTF VS? //This ALWAYS gets lost whenever I compile. WTF VS?
namespace NovetusLauncher namespace NovetusLauncher
{ {
partial class MainForm_legacy partial class LauncherFormCompact
{ {
/// <summary> /// <summary>
/// Designer variable used to keep track of non-visual components. /// Designer variable used to keep track of non-visual components.
@ -43,7 +43,7 @@ namespace NovetusLauncher
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm_legacy)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormCompact));
this.tabControl1 = new TabControlWithoutHeader(2); this.tabControl1 = new TabControlWithoutHeader(2);
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();

View File

@ -16,18 +16,17 @@ using System.ComponentModel;
using System.Reflection; using System.Reflection;
using Mono.Nat; using Mono.Nat;
using System.Globalization; using System.Globalization;
//using LiteNetLib;
namespace NovetusLauncher namespace NovetusLauncher
{ {
/// <summary> /// <summary>
/// Description of MainForm. /// Description of MainForm.
/// </summary> /// </summary>
public partial class MainForm_legacy : Form public partial class LauncherFormCompact : Form
{ {
IDiscordRPC.EventHandlers handlers; IDiscordRPC.EventHandlers handlers;
public MainForm_legacy() public LauncherFormCompact()
{ {
_fieldsTreeCache = new TreeView(); _fieldsTreeCache = new TreeView();
// //
@ -1488,7 +1487,7 @@ namespace NovetusLauncher
void SettingsButtonClick(object sender, EventArgs e) void SettingsButtonClick(object sender, EventArgs e)
{ {
NovetusSettings im = new NovetusSettings(); LauncherFormCompactSettings im = new LauncherFormCompactSettings();
im.Show(); im.Show();
} }

View File

@ -1,6 +1,6 @@
namespace NovetusLauncher namespace NovetusLauncher
{ {
partial class NovetusSettings partial class LauncherFormCompactSettings
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -28,7 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NovetusSettings)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormCompactSettings));
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox(); this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label31 = new System.Windows.Forms.Label(); this.label31 = new System.Windows.Forms.Label();

View File

@ -1,17 +1,11 @@
using System; using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace NovetusLauncher namespace NovetusLauncher
{ {
public partial class NovetusSettings : Form public partial class LauncherFormCompactSettings : Form
{ {
public NovetusSettings() public LauncherFormCompactSettings()
{ {
InitializeComponent(); InitializeComponent();
} }
@ -107,8 +101,15 @@ namespace NovetusLauncher
} }
private void NovetusSettings_Load(object sender, EventArgs e) private void NovetusSettings_Load(object sender, EventArgs e)
{
if (GlobalVars.UserConfiguration.LauncherLayout == Settings.UIOptions.Style.Compact)
{ {
ReadConfigValues(); ReadConfigValues();
} }
else
{
Close();
}
}
} }
} }

View File

@ -10,7 +10,7 @@
//This ALWAYS gets lost whenever I compile. WTF VS? //This ALWAYS gets lost whenever I compile. WTF VS?
namespace NovetusLauncher namespace NovetusLauncher
{ {
partial class MainForm partial class LauncherFormExtended
{ {
/// <summary> /// <summary>
/// Designer variable used to keep track of non-visual components. /// Designer variable used to keep track of non-visual components.
@ -23,8 +23,10 @@ namespace NovetusLauncher
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing) { if (disposing)
if (components != null) { {
if (components != null)
{
components.Dispose(); components.Dispose();
} }
} }
@ -41,7 +43,7 @@ namespace NovetusLauncher
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormExtended));
this.tabControl1 = new TabControlWithoutHeader(1); this.tabControl1 = new TabControlWithoutHeader(1);
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.label24 = new System.Windows.Forms.Label(); this.label24 = new System.Windows.Forms.Label();

View File

@ -22,11 +22,11 @@ namespace NovetusLauncher
/// <summary> /// <summary>
/// Description of MainForm. /// Description of MainForm.
/// </summary> /// </summary>
public partial class MainForm : Form public partial class LauncherFormExtended : Form
{ {
IDiscordRPC.EventHandlers handlers; IDiscordRPC.EventHandlers handlers;
public MainForm() public LauncherFormExtended()
{ {
_fieldsTreeCache = new TreeView(); _fieldsTreeCache = new TreeView();
// //

View File

@ -145,17 +145,17 @@
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>
<Compile Include="Classes\WinForms\TreeNodeHelper.cs" /> <Compile Include="Classes\WinForms\TreeNodeHelper.cs" />
<Compile Include="MainForm\Compact\MainForm_legacy.cs"> <Compile Include="LauncherForm\Compact\LauncherFormCompact.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="MainForm\Compact\MainForm_legacy.Designer.cs"> <Compile Include="LauncherForm\Compact\LauncherFormCompact.Designer.cs">
<DependentUpon>MainForm_legacy.cs</DependentUpon> <DependentUpon>LauncherFormCompact.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="MainForm\Compact\NovetusSettings.cs"> <Compile Include="LauncherForm\Compact\LauncherFormCompactSettings.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="MainForm\Compact\NovetusSettings.Designer.cs"> <Compile Include="LauncherForm\Compact\LauncherFormCompactSettings.Designer.cs">
<DependentUpon>NovetusSettings.cs</DependentUpon> <DependentUpon>LauncherFormCompactSettings.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="SDK\ClientinfoCreator.cs"> <Compile Include="SDK\ClientinfoCreator.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@ -210,11 +210,11 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="MainForm\Extended\MainForm.cs"> <Compile Include="LauncherForm\Extended\LauncherFormExtended.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="MainForm\Extended\MainForm.Designer.cs"> <Compile Include="LauncherForm\Extended\LauncherFormExtended.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon> <DependentUpon>LauncherFormExtended.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
@ -226,11 +226,11 @@
<EmbeddedResource Include="CharacterCustomization\CharacterCustomization.resx"> <EmbeddedResource Include="CharacterCustomization\CharacterCustomization.resx">
<DependentUpon>CharacterCustomization.cs</DependentUpon> <DependentUpon>CharacterCustomization.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="MainForm\Compact\MainForm_legacy.resx"> <EmbeddedResource Include="LauncherForm\Compact\LauncherFormCompact.resx">
<DependentUpon>MainForm_legacy.cs</DependentUpon> <DependentUpon>LauncherFormCompact.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="MainForm\Compact\NovetusSettings.resx"> <EmbeddedResource Include="LauncherForm\Compact\LauncherFormCompactSettings.resx">
<DependentUpon>NovetusSettings.cs</DependentUpon> <DependentUpon>LauncherFormCompactSettings.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="SDK\ClientinfoCreator.resx"> <EmbeddedResource Include="SDK\ClientinfoCreator.resx">
<DependentUpon>ClientinfoCreator.cs</DependentUpon> <DependentUpon>ClientinfoCreator.cs</DependentUpon>
@ -250,8 +250,8 @@
<EmbeddedResource Include="SDK\SplashTester.resx"> <EmbeddedResource Include="SDK\SplashTester.resx">
<DependentUpon>SplashTester.cs</DependentUpon> <DependentUpon>SplashTester.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="MainForm\Extended\MainForm.resx"> <EmbeddedResource Include="LauncherForm\Extended\LauncherFormExtended.resx">
<DependentUpon>MainForm.cs</DependentUpon> <DependentUpon>LauncherFormExtended.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="SDK\NovetusSDK.resx"> <EmbeddedResource Include="SDK\NovetusSDK.resx">
<DependentUpon>NovetusSDK.cs</DependentUpon> <DependentUpon>NovetusSDK.cs</DependentUpon>

View File

@ -36,10 +36,10 @@ namespace NovetusLauncher
switch (GlobalVars.UserConfiguration.LauncherLayout) switch (GlobalVars.UserConfiguration.LauncherLayout)
{ {
case Settings.UIOptions.Style.Compact: case Settings.UIOptions.Style.Compact:
Application.Run(new MainForm_legacy()); Application.Run(new LauncherFormCompact());
break; break;
default: default:
Application.Run(new MainForm()); Application.Run(new LauncherFormExtended());
break; break;
} }
} }

View File

@ -1,6 +1,6 @@
namespace NovetusURI namespace NovetusURI
{ {
partial class Form1 partial class InstallForm
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -28,7 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InstallForm));
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //

View File

@ -3,9 +3,9 @@ using System.Windows.Forms;
namespace NovetusURI namespace NovetusURI
{ {
public partial class Form1 : Form public partial class InstallForm : Form
{ {
public Form1() public InstallForm()
{ {
InitializeComponent(); InitializeComponent();
} }

View File

@ -86,29 +86,29 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Classes\URIReg.cs" /> <Compile Include="Classes\URIReg.cs" />
<Compile Include="Form1.cs"> <Compile Include="InstallForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form1.Designer.cs"> <Compile Include="InstallForm.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>InstallForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Classes\LocalVars.cs" /> <Compile Include="Classes\LocalVars.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="URI\LoaderForm.cs"> <Compile Include="LoaderForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="URI\LoaderForm.Designer.cs"> <Compile Include="LoaderForm.Designer.cs">
<DependentUpon>LoaderForm.cs</DependentUpon> <DependentUpon>LoaderForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="URI\QuickConfigure.cs"> <Compile Include="QuickConfigure.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="URI\QuickConfigure.Designer.cs"> <Compile Include="QuickConfigure.Designer.cs">
<DependentUpon>QuickConfigure.cs</DependentUpon> <DependentUpon>QuickConfigure.cs</DependentUpon>
</Compile> </Compile>
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="InstallForm.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>InstallForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
@ -120,10 +120,10 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="URI\LoaderForm.resx"> <EmbeddedResource Include="LoaderForm.resx">
<DependentUpon>LoaderForm.cs</DependentUpon> <DependentUpon>LoaderForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="URI\QuickConfigure.resx"> <EmbeddedResource Include="QuickConfigure.resx">
<DependentUpon>QuickConfigure.cs</DependentUpon> <DependentUpon>QuickConfigure.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<None Include="packages.config" /> <None Include="packages.config" />
@ -150,6 +150,9 @@
<ItemGroup> <ItemGroup>
<Content Include="NovetusIcon.ico" /> <Content Include="NovetusIcon.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="URI\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>SET path=$(SolutionDir)build <PostBuildEvent>SET path=$(SolutionDir)build

View File

@ -24,7 +24,7 @@ namespace NovetusURI
LauncherFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalVars.ConfigName, false); LauncherFuncs.Config(GlobalPaths.ConfigDir + "\\" + GlobalVars.ConfigName, false);
if (args.Length == 0) if (args.Length == 0)
{ {
Application.Run(new Form1()); Application.Run(new InstallForm());
} }
else else
{ {