diff --git a/PCK-Studio/Features/CemuPanel.cs b/PCK-Studio/Features/CemuPanel.cs
index faaa479d..2031d78c 100644
--- a/PCK-Studio/Features/CemuPanel.cs
+++ b/PCK-Studio/Features/CemuPanel.cs
@@ -251,7 +251,7 @@ namespace PckStudio.Features
private void addCustomPckToolStripMenuItem_Click(object sender, EventArgs e)
{
- RenamePrompt prompt = new RenamePrompt(string.Empty);
+ TextPrompt prompt = new TextPrompt(string.Empty);
prompt.OKButton.Text = "OK";
prompt.TextLabel.Text = "Folder:";
diff --git a/PCK-Studio/Forms/Additional-Popups/RenamePrompt.Designer.cs b/PCK-Studio/Forms/Additional-Popups/TextPrompt.Designer.cs
similarity index 97%
rename from PCK-Studio/Forms/Additional-Popups/RenamePrompt.Designer.cs
rename to PCK-Studio/Forms/Additional-Popups/TextPrompt.Designer.cs
index 0277d836..614f83d4 100644
--- a/PCK-Studio/Forms/Additional-Popups/RenamePrompt.Designer.cs
+++ b/PCK-Studio/Forms/Additional-Popups/TextPrompt.Designer.cs
@@ -1,6 +1,6 @@
namespace PckStudio
{
- partial class RenamePrompt
+ partial class TextPrompt
{
///
/// Required designer variable.
@@ -28,7 +28,7 @@
///
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RenamePrompt));
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextPrompt));
this.TextLabel = new System.Windows.Forms.Label();
this.OKButton = new System.Windows.Forms.Button();
this.InputTextBox = new MetroFramework.Controls.MetroTextBox();
diff --git a/PCK-Studio/Forms/Additional-Popups/RenamePrompt.cs b/PCK-Studio/Forms/Additional-Popups/TextPrompt.cs
similarity index 83%
rename from PCK-Studio/Forms/Additional-Popups/RenamePrompt.cs
rename to PCK-Studio/Forms/Additional-Popups/TextPrompt.cs
index 8b5f9df6..318fe9ef 100644
--- a/PCK-Studio/Forms/Additional-Popups/RenamePrompt.cs
+++ b/PCK-Studio/Forms/Additional-Popups/TextPrompt.cs
@@ -4,17 +4,17 @@ using MetroFramework.Forms;
namespace PckStudio
{
- public partial class RenamePrompt : MetroForm
+ public partial class TextPrompt : MetroForm
{
///
/// Text entered only access when DialogResult == DialogResult.OK
///
public string NewText => InputTextBox.Text;
- public RenamePrompt(string InitialText) : this(InitialText, -1)
+ public TextPrompt(string InitialText) : this(InitialText, -1)
{ }
- public RenamePrompt(string InitialText, int maxChar)
+ public TextPrompt(string InitialText, int maxChar)
{
InitializeComponent();
InputTextBox.Text = InitialText;
diff --git a/PCK-Studio/Forms/Additional-Popups/RenamePrompt.resx b/PCK-Studio/Forms/Additional-Popups/TextPrompt.resx
similarity index 100%
rename from PCK-Studio/Forms/Additional-Popups/RenamePrompt.resx
rename to PCK-Studio/Forms/Additional-Popups/TextPrompt.resx
diff --git a/PCK-Studio/Forms/Editor/ANIMEditor.cs b/PCK-Studio/Forms/Editor/ANIMEditor.cs
index 0aa0e771..d700077f 100644
--- a/PCK-Studio/Forms/Editor/ANIMEditor.cs
+++ b/PCK-Studio/Forms/Editor/ANIMEditor.cs
@@ -246,7 +246,7 @@ namespace PckStudio.Forms.Editor
while (!SkinANIM.IsValidANIM(value))
{
if (!string.IsNullOrWhiteSpace(value)) MessageBox.Show($"The following value \"{value}\" is not valid. Please try again.");
- RenamePrompt diag = new RenamePrompt(value);
+ TextPrompt diag = new TextPrompt(value);
diag.TextLabel.Text = "ANIM";
diag.OKButton.Text = "Ok";
if (diag.ShowDialog() == DialogResult.OK)
diff --git a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs
index 15a3b165..31a5c17e 100644
--- a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs
+++ b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs
@@ -205,7 +205,7 @@ namespace PckStudio.Forms.Editor
? GrfTreeView.SelectedNode.Nodes
: GrfTreeView.Nodes;
- using (RenamePrompt prompt = new RenamePrompt(""))
+ using (TextPrompt prompt = new TextPrompt(""))
{
prompt.OKButton.Text = "Add";
if (MessageBox.Show($"Add Game Rule to {parentRule.Name}", "Attention",
diff --git a/PCK-Studio/Forms/Editor/LOCEditor.cs b/PCK-Studio/Forms/Editor/LOCEditor.cs
index 433df167..f6d2c20f 100644
--- a/PCK-Studio/Forms/Editor/LOCEditor.cs
+++ b/PCK-Studio/Forms/Editor/LOCEditor.cs
@@ -61,7 +61,7 @@ namespace PckStudio.Forms.Editor
private void addDisplayIDToolStripMenuItem_Click(object sender, EventArgs e)
{
if (treeViewLocKeys.SelectedNode is TreeNode)
- using (RenamePrompt prompt = new RenamePrompt(""))
+ using (TextPrompt prompt = new TextPrompt(""))
{
prompt.OKButton.Text = "Add";
if (prompt.ShowDialog() == DialogResult.OK &&
diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs
index f520cac2..bdcdcc61 100644
--- a/PCK-Studio/MainForm.cs
+++ b/PCK-Studio/MainForm.cs
@@ -731,7 +731,7 @@ namespace PckStudio
bool sub = IsSubPCKNode(path);
- using RenamePrompt diag = new RenamePrompt(node.Tag is null ? Path.GetFileName(node.FullPath) : node.FullPath);
+ using TextPrompt diag = new TextPrompt(node.Tag is null ? Path.GetFileName(node.FullPath) : node.FullPath);
if (diag.ShowDialog(this) == DialogResult.OK)
{
@@ -1281,7 +1281,7 @@ namespace PckStudio
private void skinPackToolStripMenuItem_Click(object sender, EventArgs e)
{
checkSaveState();
- RenamePrompt namePrompt = new RenamePrompt("");
+ TextPrompt namePrompt = new TextPrompt("");
namePrompt.OKButton.Text = "Ok";
if (namePrompt.ShowDialog() == DialogResult.OK)
{
@@ -1632,7 +1632,7 @@ namespace PckStudio
private void folderToolStripMenuItem_Click(object sender, EventArgs e)
{
- RenamePrompt folderNamePrompt = new RenamePrompt("");
+ TextPrompt folderNamePrompt = new TextPrompt("");
if(treeViewMain.SelectedNode is not null) folderNamePrompt.contextLabel.Text = $"New folder at the location of \"{treeViewMain.SelectedNode.FullPath}\"";
folderNamePrompt.OKButton.Text = "Add";
if (folderNamePrompt.ShowDialog() == DialogResult.OK)
@@ -1905,7 +1905,7 @@ namespace PckStudio
fileDialog.Filter = "Texture File(*.png;*.tga)|*.png;*.tga";
if (fileDialog.ShowDialog() == DialogResult.OK)
{
- using RenamePrompt renamePrompt = new RenamePrompt(Path.GetFileName(fileDialog.FileName));
+ using TextPrompt renamePrompt = new TextPrompt(Path.GetFileName(fileDialog.FileName));
renamePrompt.TextLabel.Text = "Path";
if (renamePrompt.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(renamePrompt.NewText))
{
diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj
index 35015db6..0ba7778e 100644
--- a/PCK-Studio/PckStudio.csproj
+++ b/PCK-Studio/PckStudio.csproj
@@ -279,11 +279,11 @@
AddFilePrompt.cs
-
+
Form
-
- RenamePrompt.cs
+
+ TextPrompt.cs
Form
@@ -506,8 +506,8 @@
NumericPrompt.cs
Designer
-
- RenamePrompt.cs
+
+ TextPrompt.cs
Designer