LookAt,Offset,Effect Remove
Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
@@ -20,14 +20,14 @@ namespace Ichni.StartMenu
|
||||
public TMP_InputField projectNameInputField, creatorNameInputField, bpmInputField, songLocationInputField, delayInputField;
|
||||
public Button selectSongButton, autoFillSongPathButton;
|
||||
public Button createEmptyProjectButton;
|
||||
|
||||
|
||||
private OpenFileName songFile;
|
||||
public string songName;
|
||||
|
||||
public ThemeBundleSelector themeBundleSelector;
|
||||
|
||||
public AsyncOperation loadEditor;
|
||||
|
||||
|
||||
private void Start()
|
||||
{
|
||||
loadEditor = SceneManager.LoadSceneAsync("EditorScene");
|
||||
@@ -51,7 +51,7 @@ namespace Ichni.StartMenu
|
||||
{
|
||||
Directory.CreateDirectory(projectPath);
|
||||
}
|
||||
|
||||
|
||||
InformationTransistor.instance.projectInfo_BM = new ProjectInformation_BM(
|
||||
projectNameInputField.text,
|
||||
creatorNameInputField.text,
|
||||
@@ -59,17 +59,19 @@ namespace Ichni.StartMenu
|
||||
DateTime.Now.ToString(CultureInfo.CurrentCulture),
|
||||
DateTime.Now.ToString(CultureInfo.CurrentCulture),
|
||||
themeBundleSelector.GetSelectedThemeBundleList());
|
||||
|
||||
File.Copy(songLocationInputField.text,
|
||||
|
||||
File.Copy(songLocationInputField.text,
|
||||
Application.streamingAssetsPath + "/Projects/" +
|
||||
projectNameInputField.text + "/" + songName, true);
|
||||
|
||||
|
||||
InformationTransistor.instance.songInfo_BM = new SongInformation_BM(
|
||||
songName, float.Parse(bpmInputField.text),
|
||||
float.Parse(delayInputField.text));
|
||||
|
||||
float.Parse(delayInputField.text),
|
||||
0
|
||||
);
|
||||
|
||||
InformationTransistor.instance.isLoadedProject = false;
|
||||
|
||||
|
||||
//Load ThemeBundles, then go to EditorScene
|
||||
ThemeBundleManager.instance.LoadThemeBundles(InformationTransistor.instance.projectInfo_BM.selectedThemeBundleList);
|
||||
ThemeBundleManager.instance.waitingBundleAmount
|
||||
@@ -89,7 +91,7 @@ namespace Ichni.StartMenu
|
||||
{
|
||||
fadeIn = DOTween.Sequence();
|
||||
fadeOut = DOTween.Sequence();
|
||||
|
||||
|
||||
fadeIn.Join(canvasGroup.DOFade(1f, 0.5f))
|
||||
.SetEase(Ease.InOutQuad)
|
||||
.SetAutoKill(false)
|
||||
@@ -121,7 +123,7 @@ namespace Ichni.StartMenu
|
||||
string forward = Application.streamingAssetsPath + "/Songs/";
|
||||
songName = str.Replace(forward, "");
|
||||
});
|
||||
|
||||
|
||||
selectSongButton.onClick.AddListener(SelectSong);
|
||||
autoFillSongPathButton.onClick.AddListener(AutoFillSongPath);
|
||||
createEmptyProjectButton.onClick.AddListener(CreateEmptyProject);
|
||||
@@ -132,7 +134,7 @@ namespace Ichni.StartMenu
|
||||
string path = Application.streamingAssetsPath + "/Songs/";
|
||||
songLocationInputField.text = path;
|
||||
}
|
||||
|
||||
|
||||
private void SelectSong()
|
||||
{
|
||||
songFile = new OpenFileName();
|
||||
@@ -153,7 +155,7 @@ namespace Ichni.StartMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
|
||||
public class OpenFileName
|
||||
{
|
||||
@@ -190,7 +192,7 @@ namespace Ichni.StartMenu
|
||||
{
|
||||
return GetOpenFileName(ofn);
|
||||
}
|
||||
|
||||
|
||||
[DllImport("Comdlg32.dll", SetLastError = true, ThrowOnUnmappableChar = true, CharSet = CharSet.Auto)]
|
||||
public static extern bool GetSaveFileName([In, Out] OpenFileName ofn);
|
||||
public static bool GetSFN([In, Out] OpenFileName ofn)
|
||||
|
||||
Reference in New Issue
Block a user