2025-08-11 14:04:06 -04:00
|
|
|
using Ichni.UI;
|
|
|
|
|
using UnityEngine.UI;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
namespace Ichni.Menu
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-06-06 10:14:55 -04:00
|
|
|
public class SettingsUIPage : UIPageBase
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-08-11 14:04:06 -04:00
|
|
|
GameSettings gameSettings => SettingsManager.instance.gameSettings;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
public Button backButton;
|
|
|
|
|
public SettingsWindowController settingsWindowController;
|
|
|
|
|
public OffsetEditor offsetEditor;
|
|
|
|
|
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
base.Awake();
|
|
|
|
|
|
|
|
|
|
backButton.onClick.AddListener(() =>
|
|
|
|
|
{
|
|
|
|
|
FadeOut();
|
|
|
|
|
SettingsManager.instance.SaveGameSettings();
|
|
|
|
|
MenuManager.instance.chapterSelectionUIPage.FadeIn();
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|
|
|
|
|
}
|