add character background in stylish style

This commit is contained in:
Bitl 2022-02-01 07:38:50 -07:00
parent df2e66cd05
commit 8cc0e031c1
4 changed files with 40 additions and 2 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACe
OAAAAk1TRnQBSQFMAgEBAwEAAbQBAQG0AQEBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
OAAAAk1TRnQBSQFMAgEBAwEAAdQBAQHUAQEBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
BAABAQIAAUADAAEBAQABCAYAAUAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA