mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-25 22:25:57 +00:00
Replaced Meta preset ui with TextPrompt UI
This commit is contained in:
1227
PCK-Studio/MainForm.Designer.cs
generated
1227
PCK-Studio/MainForm.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user