From a220d4cddde77fb21b6ab82d6e6851283363f80d Mon Sep 17 00:00:00 2001 From: Bitl Date: Tue, 21 Sep 2021 19:18:10 -0700 Subject: [PATCH] more changes.... --- .../Forms/LauncherForm/LauncherFormShared.cs | 2 +- .../Stylish/LauncherFormStylish.Designer.cs | 3 - .../Stylish/LauncherFormStylish.cs | 4 + .../Stylish/LauncherFormStylishInterface.xaml | 8 +- .../LauncherFormStylishInterface.xaml.cs | 80 +++++++++++++++++-- .../NovetusLauncherEntryPoint.cs | 31 ++++--- 6 files changed, 100 insertions(+), 28 deletions(-) diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs index 84f9741..543d3fa 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/LauncherFormShared.cs @@ -1062,7 +1062,7 @@ namespace NovetusLauncher } } - private static int GetSpecialNameID(string text) + public int GetSpecialNameID(string text) { string[] names = File.ReadAllLines(GlobalPaths.ConfigDir + "\\names-special.txt"); int returnname = 0; diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.Designer.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.Designer.cs index ed9c214..42fed45 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.Designer.cs @@ -32,7 +32,6 @@ namespace NovetusLauncher System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormStylish)); this.splashLabel = new System.Windows.Forms.Label(); this.elementHost1 = new System.Windows.Forms.Integration.ElementHost(); - this.launcherFormStylishInterface1 = new LauncherFormStylishInterface(this); this.logoImageBox = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.logoImageBox)).BeginInit(); this.SuspendLayout(); @@ -64,7 +63,6 @@ namespace NovetusLauncher this.elementHost1.Size = new System.Drawing.Size(707, 303); this.elementHost1.TabIndex = 0; this.elementHost1.Text = "elementHost1"; - this.elementHost1.Child = this.launcherFormStylishInterface1; // // logoImageBox // @@ -102,7 +100,6 @@ namespace NovetusLauncher #endregion private System.Windows.Forms.Integration.ElementHost elementHost1; - private LauncherFormStylishInterface launcherFormStylishInterface1; private System.Windows.Forms.Label splashLabel; private System.Windows.Forms.PictureBox logoImageBox; } diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs index 3166fdf..2538d4f 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylish.cs @@ -13,9 +13,13 @@ namespace NovetusLauncher { public partial class LauncherFormStylish : Form { + LauncherFormStylishInterface launcherFormStylishInterface1; + public LauncherFormStylish() { InitializeComponent(); + launcherFormStylishInterface1 = new LauncherFormStylishInterface(this); + elementHost1.Child = launcherFormStylishInterface1; } private void LauncherFormStylish_Load(object sender, EventArgs e) diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml index bbba1ca..f29d240 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Stylish/LauncherFormStylishInterface.xaml @@ -530,14 +530,14 @@ -