mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-03 23:07:30 +00:00
a48ecff2e8
* fix keyboard input locking * add build date auto-generation script
29 lines
No EOL
785 B
C#
29 lines
No EOL
785 B
C#
using UnityEngine;
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class SettingsDialog : Dialog
|
|
{
|
|
[SerializeField] private TMP_Text BuildDateDisplay;
|
|
private void Start() {}
|
|
|
|
public void SwitchSettingsDialog()
|
|
{
|
|
if(dialog.activeSelf) {
|
|
Editor.instance.canSelect = true;
|
|
Editor.instance.inAuthorativeMenu = false;
|
|
dialog.SetActive(false);
|
|
} else {
|
|
ResetAllDialogs();
|
|
Editor.instance.canSelect = false;
|
|
Editor.instance.inAuthorativeMenu = true;
|
|
dialog.SetActive(true);
|
|
|
|
BuildDateDisplay.text = GlobalGameManager.buildTime;
|
|
}
|
|
}
|
|
|
|
private void Update() {}
|
|
}
|
|
} |