mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-04 21:34:59 +00:00
Replaced Meta preset ui with TextPrompt UI
This commit is contained in:
@@ -538,8 +538,7 @@ namespace PckStudio
|
||||
private void Save(string filePath)
|
||||
{
|
||||
bool isSkinsPCK = false;
|
||||
PCKFile.FileData InfoFile;
|
||||
if (!currentPCK.TryGetFile("0", PCKFile.FileData.FileType.InfoFile, out InfoFile))
|
||||
if (!currentPCK.TryGetFile("0", PCKFile.FileData.FileType.InfoFile, out PCKFile.FileData _))
|
||||
{
|
||||
switch(MessageBox.Show(this, "The info file, \"0\", was not detected. Would you like to save as a Skins.pck archive?", "Save as Skins archive?", MessageBoxButtons.YesNoCancel))
|
||||
{
|
||||
@@ -2803,5 +2802,25 @@ namespace PckStudio
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void addMultipleEntriesToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (treeViewMain.SelectedNode is TreeNode t &&
|
||||
t.Tag is PCKFile.FileData file)
|
||||
{
|
||||
using (var input = new TextPrompt())
|
||||
{
|
||||
if (input.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
foreach (var line in input.TextOutput)
|
||||
{
|
||||
file.properties.Add((line.Substring(0, line.IndexOf(' ')), line.Substring(line.IndexOf(' ') + 1)));
|
||||
ReloadMetaTreeView();
|
||||
saved = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user