1
0
mirror of synced 2024-11-12 02:00:50 +01:00

New KCL preset UI with json files to configure them.

This commit is contained in:
KillzXGaming 2020-01-26 16:51:04 -05:00
parent 1fcb0d2c3c
commit 31c48c66fb
3 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ namespace FirstPlugin
ContextMenuStrip.Items.Add(EndiannessToolstrip);
CanSave = true;
IFileInfo = new IFileInfo();
string path = Path.Combine(Runtime.ExecutableDir, "KclMaterialPresets");
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
MarioKart.MK7.KCL.CollisionPresets.Clear();
MarioKart.MK7.KCL.LoadPresets(Directory.GetFiles(path));
MarioKart.MK7.KCL.LoadDefaultPresets();
}
private void OpenMaterialEditor(object sender, EventArgs args)

Binary file not shown.

Binary file not shown.