2025-08-11 14:04:06 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Ichni.UI;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Ichni.Menu
|
|
|
|
|
{
|
|
|
|
|
public class DebugSettingsWindow : SettingsWindow
|
|
|
|
|
{
|
|
|
|
|
public Switch debugModeSwitch;
|
2026-01-12 03:19:38 -05:00
|
|
|
public Switch judgeTypeSwitch;
|
2026-02-13 09:19:55 -05:00
|
|
|
public Switch autoPlaySwitch;
|
2025-08-11 14:04:06 -04:00
|
|
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
2025-08-27 21:45:18 -04:00
|
|
|
debugModeSwitch.SetUp(gameSettings.debugMode, "Menu UI/Settings_Debug_Mode");
|
2025-08-11 14:04:06 -04:00
|
|
|
debugModeSwitch.updateValueAction = () =>
|
|
|
|
|
{
|
|
|
|
|
gameSettings.debugMode = debugModeSwitch.GetValue();
|
|
|
|
|
};
|
2026-01-12 03:19:38 -05:00
|
|
|
|
|
|
|
|
judgeTypeSwitch.SetUp(gameSettings.judgeType, "Menu UI/Settings_Judge_Type");
|
|
|
|
|
judgeTypeSwitch.updateValueAction = () =>
|
|
|
|
|
{
|
|
|
|
|
gameSettings.judgeType = judgeTypeSwitch.GetValue();
|
|
|
|
|
};
|
2026-02-13 09:19:55 -05:00
|
|
|
|
|
|
|
|
autoPlaySwitch.SetUp(gameSettings.autoPlay, "Menu UI/Settings_Auto_Play");
|
|
|
|
|
autoPlaySwitch.updateValueAction = () =>
|
|
|
|
|
{
|
|
|
|
|
gameSettings.autoPlay = autoPlaySwitch.GetValue();
|
|
|
|
|
};
|
2025-08-11 14:04:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SetValuesFromSettings()
|
|
|
|
|
{
|
|
|
|
|
debugModeSwitch.SetValue(gameSettings.debugMode);
|
2026-01-12 03:19:38 -05:00
|
|
|
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
2026-02-13 09:19:55 -05:00
|
|
|
autoPlaySwitch.SetValue(gameSettings.autoPlay);
|
2025-08-11 14:04:06 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|