35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Ichni.StartMenu
|
|
{
|
|
public class LoadProjectTab : MonoBehaviour
|
|
{
|
|
public string projectName;
|
|
public TMP_Text projectNameText, lastSavedTimeText, songNameText;
|
|
public Button loadButton;
|
|
|
|
public void SetUpTab(string projectName, string lastSavedTime, string songName)
|
|
{
|
|
this.projectName = projectName;
|
|
|
|
projectNameText.text = projectName;
|
|
lastSavedTimeText.text = lastSavedTime;
|
|
songNameText.text = songName;
|
|
|
|
loadButton.onClick.AddListener(LoadProject);
|
|
}
|
|
|
|
public void LoadProject()
|
|
{
|
|
// var b = IchniApp.instance.GetModel<InformationTransistor>();
|
|
// if (b == null) Debug.LogError("XXX");
|
|
// b.isLoadedProject = true;
|
|
// IchniApp.instance.GetModel<InformationTransistor>().loadingFolder = projectName;
|
|
// StartPageManager.startPageManager.GoToEditScene();
|
|
}
|
|
}
|
|
} |