From 8cc0e031c1c5472a37a963ffd3fbe8f453129edc Mon Sep 17 00:00:00 2001 From: Bitl Date: Tue, 1 Feb 2022 07:38:50 -0700 Subject: [PATCH] add character background in stylish style --- .../CharCustom/CharacterCustomizationShared.cs | 10 +++++++++- .../CharacterCustomizationCompact.Designer.cs | 15 +++++++++++++++ .../CharacterCustomizationExtended.Designer.cs | 15 +++++++++++++++ .../Extended/CharacterCustomizationExtended.resx | 2 +- 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs b/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs index 573c691..b8e28e0 100644 --- a/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs +++ b/Novetus/NovetusCore/CharCustom/CharacterCustomizationShared.cs @@ -32,7 +32,7 @@ class CharacterCustomizationShared public TabControl CharacterTabControl, HatTabControl; public Panel OrganizationPanel, AestheticPanel1, AestheticPanel2; public ListBox Hat1List, Hat2List, Hat3List, HeadList, TShirtList, ShirtList, PantsList, FaceList, ExtraItemList; - public PictureBox Hat1Image, Hat2Image, Hat3Image, HeadImage, TShirtImage, ShirtImage, PantsImage, FaceImage, ExtraItemImage, IconImage; + public PictureBox Hat1Image, Hat2Image, Hat3Image, HeadImage, TShirtImage, ShirtImage, PantsImage, FaceImage, ExtraItemImage, IconImage, CharBackground; public ListView ColorView; public bool closeOnLaunch = false; #endregion @@ -162,6 +162,14 @@ class CharacterCustomizationShared AestheticDivider.BorderStyle = BorderStyle.None; AestheticDivider.Size = new Size(AestheticDivider.Size.Width + 3, AestheticDivider.Size.Height); } + + string backgroundImage = GlobalPaths.DataDir + @"\\CharacterBackdrop.png"; + + if (File.Exists(backgroundImage)) + { + Image im = GlobalFuncs.LoadImage(backgroundImage); + CharBackground.Image = im; + } } //discord diff --git a/Novetus/NovetusCore/CharCustom/Forms/Compact/CharacterCustomizationCompact.Designer.cs b/Novetus/NovetusCore/CharCustom/Forms/Compact/CharacterCustomizationCompact.Designer.cs index daf865c..1e54c3d 100644 --- a/Novetus/NovetusCore/CharCustom/Forms/Compact/CharacterCustomizationCompact.Designer.cs +++ b/Novetus/NovetusCore/CharCustom/Forms/Compact/CharacterCustomizationCompact.Designer.cs @@ -61,6 +61,7 @@ partial class CharacterCustomizationCompact this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); + this.CharBackground = new System.Windows.Forms.PictureBox(); this.button39 = new System.Windows.Forms.Button(); this.button40 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); @@ -154,6 +155,7 @@ partial class CharacterCustomizationCompact this.groupBox1.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.CharBackground)).BeginInit(); this.tabPage2.SuspendLayout(); this.tabControl2.SuspendLayout(); this.tabPage10.SuspendLayout(); @@ -358,6 +360,7 @@ partial class CharacterCustomizationCompact this.groupBox2.Controls.Add(this.button4); this.groupBox2.Controls.Add(this.button5); this.groupBox2.Controls.Add(this.button6); + this.groupBox2.Controls.Add(this.CharBackground); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(162, 225); @@ -431,6 +434,15 @@ partial class CharacterCustomizationCompact this.button6.UseVisualStyleBackColor = false; this.button6.Click += new System.EventHandler(this.Button6Click); // + // CharBackground + // + this.CharBackground.Location = new System.Drawing.Point(5, 15); + this.CharBackground.Name = "CharBackground"; + this.CharBackground.Size = new System.Drawing.Size(150, 204); + this.CharBackground.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.CharBackground.TabIndex = 7; + this.CharBackground.TabStop = false; + // // button39 // this.button39.Location = new System.Drawing.Point(174, 182); @@ -1374,6 +1386,7 @@ partial class CharacterCustomizationCompact this.groupBox1.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.CharBackground)).EndInit(); this.tabPage2.ResumeLayout(false); this.tabControl2.ResumeLayout(false); this.tabPage10.ResumeLayout(false); @@ -1469,6 +1482,7 @@ partial class CharacterCustomizationCompact characterCustomizationForm.ExtraItemDesc = textBox10; characterCustomizationForm.IconURLBox = IconURLBox; characterCustomizationForm.BrowseIconButton = button60; + characterCustomizationForm.CharBackground = CharBackground; } private System.Windows.Forms.TabPage tabPage12; @@ -1582,4 +1596,5 @@ partial class CharacterCustomizationCompact private System.Windows.Forms.Button button7; private System.Windows.Forms.Label IconURLLabel; private System.Windows.Forms.TextBox IconURLBox; + private System.Windows.Forms.PictureBox CharBackground; } \ No newline at end of file diff --git a/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.Designer.cs b/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.Designer.cs index a532b1c..c34e88f 100644 --- a/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.Designer.cs +++ b/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.Designer.cs @@ -73,6 +73,7 @@ partial class CharacterCustomizationExtended this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); + this.CharBackground = new System.Windows.Forms.PictureBox(); this.button39 = new System.Windows.Forms.Button(); this.button40 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); @@ -175,6 +176,7 @@ partial class CharacterCustomizationExtended this.groupBox1.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.CharBackground)).BeginInit(); this.tabPage2.SuspendLayout(); this.tabControl2.SuspendLayout(); this.tabPage10.SuspendLayout(); @@ -523,6 +525,7 @@ partial class CharacterCustomizationExtended this.groupBox2.Controls.Add(this.button4); this.groupBox2.Controls.Add(this.button5); this.groupBox2.Controls.Add(this.button6); + this.groupBox2.Controls.Add(this.CharBackground); this.groupBox2.Location = new System.Drawing.Point(6, 6); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(187, 281); @@ -596,6 +599,15 @@ partial class CharacterCustomizationExtended this.button6.UseVisualStyleBackColor = false; this.button6.Click += new System.EventHandler(this.Button6Click); // + // CharBackground + // + this.CharBackground.Location = new System.Drawing.Point(0, 16); + this.CharBackground.Name = "CharBackground"; + this.CharBackground.Size = new System.Drawing.Size(187, 265); + this.CharBackground.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.CharBackground.TabIndex = 6; + this.CharBackground.TabStop = false; + // // button39 // this.button39.Location = new System.Drawing.Point(230, 229); @@ -1618,6 +1630,7 @@ partial class CharacterCustomizationExtended this.groupBox1.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.CharBackground)).EndInit(); this.tabPage2.ResumeLayout(false); this.tabControl2.ResumeLayout(false); this.tabPage10.ResumeLayout(false); @@ -1717,6 +1730,7 @@ partial class CharacterCustomizationExtended characterCustomizationForm.ExtraItemDesc = textBox10; characterCustomizationForm.IconURLBox = IconURLBox; characterCustomizationForm.BrowseIconButton = button60; + characterCustomizationForm.CharBackground = CharBackground; } private System.Windows.Forms.TabPage tabPage12; @@ -1850,4 +1864,5 @@ partial class CharacterCustomizationExtended private System.Windows.Forms.Button button7; private System.Windows.Forms.Label IconURLLabel; private System.Windows.Forms.TextBox IconURLBox; + private System.Windows.Forms.PictureBox CharBackground; } diff --git a/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.resx b/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.resx index 6247743..7e63d95 100644 --- a/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.resx +++ b/Novetus/NovetusCore/CharCustom/Forms/Extended/CharacterCustomizationExtended.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACe - OAAAAk1TRnQBSQFMAgEBAwEAAbQBAQG0AQEBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + OAAAAk1TRnQBSQFMAgEBAwEAAdQBAQHUAQEBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo BAABAQIAAUADAAEBAQABCAYAAUAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA