mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-16 23:02:12 +00:00
Small bug fixes
-"Create Animated Texture" should no longer create extra copies of your animation when saving more than once -"Move Up" and "Move Down" now highlight the moved file after being moved
This commit is contained in:
@@ -1245,7 +1245,9 @@ namespace PckStudio
|
||||
}
|
||||
|
||||
treeViewToMineFiles(treeViewMain);
|
||||
|
||||
|
||||
treeViewMain.SelectedNode = move;
|
||||
|
||||
saved = false;
|
||||
}
|
||||
#endregion
|
||||
@@ -1272,6 +1274,8 @@ namespace PckStudio
|
||||
|
||||
treeViewToMineFiles(treeViewMain);
|
||||
|
||||
treeViewMain.SelectedNode = move;
|
||||
|
||||
saved = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -356,6 +356,7 @@ namespace PckStudio
|
||||
if (parent != null)
|
||||
{
|
||||
Console.WriteLine("ParentNotNULL");
|
||||
TreeNode check = FindNode(treeViewMain, newNode.Text);
|
||||
parent.Nodes.Add(newNode);
|
||||
}
|
||||
else
|
||||
@@ -425,10 +426,13 @@ namespace PckStudio
|
||||
|
||||
if (create)
|
||||
{
|
||||
mf.name = "res/textures/" + (isItem ? "items" : "blocks");
|
||||
TreeNode newNode = new TreeNode(newTileName + ".png") { Tag = mf };//creates node for minefile
|
||||
newNode.ImageIndex = 2;
|
||||
newNode.SelectedImageIndex = 2;
|
||||
addNodeToAnimationsFolder(newNode);
|
||||
treeViewMain.SelectedNode = newNode;
|
||||
create = false;
|
||||
}
|
||||
else if (isItem && treeViewMain.SelectedNode.Parent.Text == "blocks")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user