mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 07:57:38 +02:00
bread2unity BCCAD interpreter setup
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
@ -27,11 +29,21 @@ namespace Bread2Unity
|
||||
desc.wordWrap = true;
|
||||
desc.fontStyle = FontStyle.BoldAndItalic;
|
||||
|
||||
|
||||
GUILayout.Box("bread2unity is a tool built with the purpose of converting RH Megamix and Fever animations to unity. And to generally speed up development by a lot." +
|
||||
"\nCreated by Starpelly.", desc);
|
||||
|
||||
GUILayout.Space(120);
|
||||
|
||||
if (GUILayout.Button("Test"))
|
||||
{
|
||||
string path = EditorUtility.OpenFilePanel("Open BCCAD File", null, "bccad");
|
||||
if (path.Length != 0)
|
||||
{
|
||||
var fileContent = File.ReadAllBytes(path);
|
||||
new BCCAD().Read(fileContent);
|
||||
}
|
||||
}
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
if (GUILayout.Button("Bread Download", GUILayout.Height(40)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user