diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index 2c86d559..db64752c 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -130,10 +130,10 @@ + - diff --git a/FModel/PAKWindow.cs b/FModel/PAKWindow.cs index 9f960819..7f06d2c6 100644 --- a/FModel/PAKWindow.cs +++ b/FModel/PAKWindow.cs @@ -20,6 +20,7 @@ namespace FModel private static string docPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments).ToString() + "\\FModel"; private static string[] PAKFileAsTXT; private static string ItemName; + private static List afterItems; PrivateFontCollection pfc = new PrivateFontCollection(); StringFormat centeredString = new StringFormat(); @@ -189,13 +190,13 @@ namespace FModel } } } - private static List afterItems; private void PAKTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { List beforeItems = new List(); afterItems = new List(); ItemsListBox.Items.Clear(); + FilterTextBox.Text = string.Empty; var all = TreeHelpers.GetAncestors(e.Node, x => x.Parent).ToList(); all.Reverse(); @@ -211,8 +212,6 @@ namespace FModel return; } - ItemsListBox.Items.Clear(); - foreach (var i in dirfiles) { string v = string.Empty; @@ -1013,6 +1012,21 @@ namespace FModel AppendText("No serialized file found", Color.Black, true); } } + if (files.Contains(".ufont")) + { + Console.WriteLine(files); + AppendText("✔ ", Color.Green); + AppendText(sItems.ToString(), Color.DarkRed); + AppendText(" is a ", Color.Black); + AppendText("font", Color.SteelBlue, true); + + File.Move(files, Path.ChangeExtension(files, ".otf")); + + AppendText("✔ ", Color.Green); + AppendText(sItems.ToString(), Color.DarkRed); + AppendText(" successfully converter to a ", Color.Black); + AppendText("font", Color.SteelBlue, true); + } if (files.Contains(".ini")) { ItemRichTextBox.Text = File.ReadAllText(files);