fixed size

This commit is contained in:
Bitl 2022-11-03 11:29:48 -07:00
parent 8aa3b2e921
commit 5340dd3cdc
2 changed files with 30 additions and 22 deletions

View File

@ -17,10 +17,14 @@ public partial class CharacterCustomizationExtended : Form
{ {
InitializeComponent(); InitializeComponent();
InitExtendedForm(); InitExtendedForm();
#if NET4
Size = new Size(671, 337); Size = new Size(671, 337);
#elif NET481
Size = new Size(681, 347);
#endif
panel2.Size = new Size(568, 302); panel2.Size = new Size(568, 302);
} }
#endregion #endregion
#region Form Events #region Form Events
void CharacterCustomizationLoad(object sender, EventArgs e) void CharacterCustomizationLoad(object sender, EventArgs e)
@ -39,7 +43,7 @@ public partial class CharacterCustomizationExtended : Form
characterCustomizationForm.CloseEvent(); characterCustomizationForm.CloseEvent();
} }
#region Hats #region Hats
void ListBox1SelectedIndexChanged(object sender, EventArgs e) void ListBox1SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -122,9 +126,9 @@ public partial class CharacterCustomizationExtended : Form
listBox3.SelectedItem = "NoHat.rbxm"; listBox3.SelectedItem = "NoHat.rbxm";
} }
} }
#endregion #endregion
#region Faces #region Faces
void ListBox4SelectedIndexChanged(object sender, EventArgs e) void ListBox4SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -235,9 +239,9 @@ public partial class CharacterCustomizationExtended : Form
} }
} }
#endregion #endregion
#region T-Shirt #region T-Shirt
void ListBox5SelectedIndexChanged(object sender, EventArgs e) void ListBox5SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -347,9 +351,9 @@ public partial class CharacterCustomizationExtended : Form
); );
} }
} }
#endregion #endregion
#region Shirt #region Shirt
void ListBox6SelectedIndexChanged(object sender, EventArgs e) void ListBox6SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -459,9 +463,9 @@ public partial class CharacterCustomizationExtended : Form
); );
} }
} }
#endregion #endregion
#region Pants #region Pants
void ListBox7SelectedIndexChanged(object sender, EventArgs e) void ListBox7SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -571,9 +575,9 @@ public partial class CharacterCustomizationExtended : Form
); );
} }
} }
#endregion #endregion
#region Head #region Head
void ListBox8SelectedIndexChanged(object sender, EventArgs e) void ListBox8SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -610,9 +614,9 @@ public partial class CharacterCustomizationExtended : Form
listBox8.SelectedItem = "DefaultHead.rbxm"; listBox8.SelectedItem = "DefaultHead.rbxm";
} }
} }
#endregion #endregion
#region Extra #region Extra
void ListBox9SelectedIndexChanged(object sender, EventArgs e) void ListBox9SelectedIndexChanged(object sender, EventArgs e)
{ {
if (Directory.Exists(GlobalPaths.extradir)) if (Directory.Exists(GlobalPaths.extradir))
@ -696,9 +700,9 @@ public partial class CharacterCustomizationExtended : Form
listBox9.SelectedItem = "NoExtra.rbxm"; listBox9.SelectedItem = "NoExtra.rbxm";
} }
} }
#endregion #endregion
#region Body Colors #region Body Colors
void Button1Click(object sender, EventArgs e) void Button1Click(object sender, EventArgs e)
{ {
@ -779,9 +783,9 @@ public partial class CharacterCustomizationExtended : Form
{ {
characterCustomizationForm.ApplyPreset(9, 194, 9, 9, 119, 119); characterCustomizationForm.ApplyPreset(9, 194, 9, 9, 119, 119);
} }
#endregion #endregion
#region Icon #region Icon
void Button52Click(object sender, EventArgs e) void Button52Click(object sender, EventArgs e)
{ {
IconURLBox.Text = ""; IconURLBox.Text = "";
@ -819,9 +823,9 @@ public partial class CharacterCustomizationExtended : Form
{ {
characterCustomizationForm.LoadRemoteIcon(); characterCustomizationForm.LoadRemoteIcon();
} }
#endregion #endregion
#region Navigation #region Navigation
private void button72_Click(object sender, EventArgs e) private void button72_Click(object sender, EventArgs e)
{ {
tabControl1.SelectedTab = tabPage1; tabControl1.SelectedTab = tabPage1;
@ -881,7 +885,7 @@ public partial class CharacterCustomizationExtended : Form
{ {
tabControl2.SelectedTab = tabPage12; tabControl2.SelectedTab = tabPage12;
} }
#endregion #endregion
void Button43Click(object sender, EventArgs e) void Button43Click(object sender, EventArgs e)
{ {
@ -923,6 +927,6 @@ public partial class CharacterCustomizationExtended : Form
Util.DrawBorderSimple(e.Graphics, panel1.DisplayRectangle, Color.Black, ButtonBorderStyle.Solid, 1); Util.DrawBorderSimple(e.Graphics, panel1.DisplayRectangle, Color.Black, ButtonBorderStyle.Solid, 1);
} }
} }
#endregion #endregion
} }
#endregion #endregion

View File

@ -24,7 +24,11 @@ namespace NovetusLauncher
InitializeComponent(); InitializeComponent();
InitExtendedForm(); InitExtendedForm();
#if NET4
Size = new Size(745, 377); Size = new Size(745, 377);
#elif NET481
Size = new Size(755, 387);
#endif
panel2.Size = new Size(646, 272); panel2.Size = new Size(646, 272);
} }
#endregion #endregion