Renamed CreateTexturePack.cs to CreateTexturePackPrompt.cs

This commit is contained in:
miku-666
2023-08-02 13:33:22 +02:00
parent 7f1c459c1d
commit 4a9ed403fd
5 changed files with 51 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
namespace PckStudio
{
partial class CreateTexturePack
partial class CreateTexturePackPrompt
{
/// <summary>
/// Required designer variable.
@@ -28,11 +28,11 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CreateTexturePack));
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CreateTexturePackPrompt));
this.TextLabel = new System.Windows.Forms.Label();
this.OKButton = new System.Windows.Forms.Button();
this.InputTextBox = new MetroFramework.Controls.MetroTextBox();
this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
this.resolutionComboBox = new MetroFramework.Controls.MetroComboBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
@@ -80,24 +80,24 @@
this.InputTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.InputTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// metroComboBox1
// resolutionComboBox
//
this.metroComboBox1.FormattingEnabled = true;
resources.ApplyResources(this.metroComboBox1, "metroComboBox1");
this.metroComboBox1.Items.AddRange(new object[] {
resources.GetString("metroComboBox1.Items"),
resources.GetString("metroComboBox1.Items1"),
resources.GetString("metroComboBox1.Items2"),
resources.GetString("metroComboBox1.Items3"),
resources.GetString("metroComboBox1.Items4"),
resources.GetString("metroComboBox1.Items5"),
resources.GetString("metroComboBox1.Items6"),
resources.GetString("metroComboBox1.Items7"),
resources.GetString("metroComboBox1.Items8")});
this.metroComboBox1.Name = "metroComboBox1";
this.metroComboBox1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroComboBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroComboBox1.UseSelectable = true;
this.resolutionComboBox.FormattingEnabled = true;
resources.ApplyResources(this.resolutionComboBox, "resolutionComboBox");
this.resolutionComboBox.Items.AddRange(new object[] {
resources.GetString("resolutionComboBox.Items"),
resources.GetString("resolutionComboBox.Items1"),
resources.GetString("resolutionComboBox.Items2"),
resources.GetString("resolutionComboBox.Items3"),
resources.GetString("resolutionComboBox.Items4"),
resources.GetString("resolutionComboBox.Items5"),
resources.GetString("resolutionComboBox.Items6"),
resources.GetString("resolutionComboBox.Items7"),
resources.GetString("resolutionComboBox.Items8")});
this.resolutionComboBox.Name = "resolutionComboBox";
this.resolutionComboBox.Style = MetroFramework.MetroColorStyle.Silver;
this.resolutionComboBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.resolutionComboBox.UseSelectable = true;
//
// label1
//
@@ -112,11 +112,10 @@
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.label1);
this.Controls.Add(this.metroComboBox1);
this.Controls.Add(this.resolutionComboBox);
this.Controls.Add(this.InputTextBox);
this.Controls.Add(this.OKButton);
this.Controls.Add(this.TextLabel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "CreateTexturePack";
@@ -133,7 +132,7 @@
public System.Windows.Forms.Button OKButton;
public System.Windows.Forms.Label TextLabel;
private MetroFramework.Controls.MetroTextBox InputTextBox;
private MetroFramework.Controls.MetroComboBox metroComboBox1;
private MetroFramework.Controls.MetroComboBox resolutionComboBox;
public System.Windows.Forms.Label label1;
}
}

View File

@@ -4,22 +4,22 @@ using MetroFramework.Forms;
namespace PckStudio
{
public partial class CreateTexturePack : MetroForm
public partial class CreateTexturePackPrompt : MetroForm
{
/// <summary>
/// Text entered <c>only access when DialogResult == DialogResult.OK</c>
/// </summary>
public string PackName => InputTextBox.Text;
public string PackRes => metroComboBox1.Text;
public string PackRes => resolutionComboBox.Text;
public CreateTexturePack()
public CreateTexturePackPrompt()
{
InitializeComponent();
}
private void OKBtn_Click(object sender, EventArgs e)
{
if (metroComboBox1.SelectedIndex < 0)
if (resolutionComboBox.SelectedIndex < 0)
return;
DialogResult = DialogResult.OK;
}

View File

@@ -213,55 +213,55 @@
<data name="&gt;&gt;InputTextBox.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="metroComboBox1.ItemHeight" type="System.Int32, mscorlib">
<data name="resolutionComboBox.ItemHeight" type="System.Int32, mscorlib">
<value>23</value>
</data>
<data name="metroComboBox1.Items" xml:space="preserve">
<data name="resolutionComboBox.Items" xml:space="preserve">
<value>x8</value>
</data>
<data name="metroComboBox1.Items1" xml:space="preserve">
<data name="resolutionComboBox.Items1" xml:space="preserve">
<value>x16</value>
</data>
<data name="metroComboBox1.Items2" xml:space="preserve">
<data name="resolutionComboBox.Items2" xml:space="preserve">
<value>x32</value>
</data>
<data name="metroComboBox1.Items3" xml:space="preserve">
<data name="resolutionComboBox.Items3" xml:space="preserve">
<value>x48</value>
</data>
<data name="metroComboBox1.Items4" xml:space="preserve">
<data name="resolutionComboBox.Items4" xml:space="preserve">
<value>x64</value>
</data>
<data name="metroComboBox1.Items5" xml:space="preserve">
<data name="resolutionComboBox.Items5" xml:space="preserve">
<value>x80</value>
</data>
<data name="metroComboBox1.Items6" xml:space="preserve">
<data name="resolutionComboBox.Items6" xml:space="preserve">
<value>x96</value>
</data>
<data name="metroComboBox1.Items7" xml:space="preserve">
<data name="resolutionComboBox.Items7" xml:space="preserve">
<value>x112</value>
</data>
<data name="metroComboBox1.Items8" xml:space="preserve">
<data name="resolutionComboBox.Items8" xml:space="preserve">
<value>x128</value>
</data>
<data name="metroComboBox1.Location" type="System.Drawing.Point, System.Drawing">
<data name="resolutionComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>60, 39</value>
</data>
<data name="metroComboBox1.Size" type="System.Drawing.Size, System.Drawing">
<data name="resolutionComboBox.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 29</value>
</data>
<data name="metroComboBox1.TabIndex" type="System.Int32, mscorlib">
<data name="resolutionComboBox.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="&gt;&gt;metroComboBox1.Name" xml:space="preserve">
<value>metroComboBox1</value>
<data name="&gt;&gt;resolutionComboBox.Name" xml:space="preserve">
<value>resolutionComboBox</value>
</data>
<data name="&gt;&gt;metroComboBox1.Type" xml:space="preserve">
<data name="&gt;&gt;resolutionComboBox.Type" xml:space="preserve">
<value>MetroFramework.Controls.MetroComboBox, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
</data>
<data name="&gt;&gt;metroComboBox1.Parent" xml:space="preserve">
<data name="&gt;&gt;resolutionComboBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;metroComboBox1.ZOrder" xml:space="preserve">
<data name="&gt;&gt;resolutionComboBox.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">

View File

@@ -1298,7 +1298,7 @@ namespace PckStudio
private void texturePackToolStripMenuItem_Click(object sender, EventArgs e)
{
checkSaveState();
CreateTexturePack packPrompt = new CreateTexturePack();
CreateTexturePackPrompt packPrompt = new CreateTexturePackPrompt();
if (packPrompt.ShowDialog() == DialogResult.OK)
{
currentPCK = InitializeTexturePack(new Random().Next(8000, int.MaxValue), 0, packPrompt.PackName, packPrompt.PackRes);
@@ -1311,7 +1311,7 @@ namespace PckStudio
private void mashUpPackToolStripMenuItem_Click(object sender, EventArgs e)
{
checkSaveState();
CreateTexturePack packPrompt = new CreateTexturePack();
CreateTexturePackPrompt packPrompt = new CreateTexturePackPrompt();
if (packPrompt.ShowDialog() == DialogResult.OK)
{
currentPCK = InitializeMashUpPack(new Random().Next(8000, int.MaxValue), 0, packPrompt.PackName, packPrompt.PackRes);

View File

@@ -276,11 +276,11 @@
<Compile Include="Forms\Additional-Popups\Loc\AddLanguage.Designer.cs">
<DependentUpon>AddLanguage.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\CreateTexturePack.cs">
<Compile Include="Forms\Additional-Popups\CreateTexturePackPrompt.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\CreateTexturePack.Designer.cs">
<DependentUpon>CreateTexturePack.cs</DependentUpon>
<Compile Include="Forms\Additional-Popups\CreateTexturePackPrompt.Designer.cs">
<DependentUpon>CreateTexturePackPrompt.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\AddFilePrompt.cs">
<SubType>Form</SubType>
@@ -503,8 +503,8 @@
<EmbeddedResource Include="Forms\Additional-Popups\Loc\AddLanguage.resx">
<DependentUpon>AddLanguage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\CreateTexturePack.resx">
<DependentUpon>CreateTexturePack.cs</DependentUpon>
<EmbeddedResource Include="Forms\Additional-Popups\CreateTexturePackPrompt.resx">
<DependentUpon>CreateTexturePackPrompt.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\AddFilePrompt.resx">