mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Added support for fonts
This commit is contained in:
parent
d6fb7f4c73
commit
76d2aa26fd
|
|
@ -130,10 +130,10 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="FNTools_Logo.ico" />
|
||||
<None Include="Resources\BurbankBigCondensed-Bold.otf" />
|
||||
<None Include="Resources\T512.png" />
|
||||
<None Include="Resources\M512.png" />
|
||||
<None Include="Resources\I512.png" />
|
||||
<None Include="Resources\BurbankBigCondensed-Bold.otf" />
|
||||
<None Include="Resources\unknown512.png" />
|
||||
<None Include="Resources\U512.png" />
|
||||
<None Include="Resources\R512.png" />
|
||||
|
|
|
|||
|
|
@ -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<string> afterItems;
|
||||
|
||||
PrivateFontCollection pfc = new PrivateFontCollection();
|
||||
StringFormat centeredString = new StringFormat();
|
||||
|
|
@ -189,13 +190,13 @@ namespace FModel
|
|||
}
|
||||
}
|
||||
}
|
||||
private static List<string> afterItems;
|
||||
private void PAKTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
|
||||
{
|
||||
List<string> beforeItems = new List<string>();
|
||||
afterItems = new List<string>();
|
||||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user