42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.UI;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.Menu
|
|
{
|
|
public class DebugSettingsWindow : SettingsWindow
|
|
{
|
|
public Switch debugModeSwitch;
|
|
public Switch judgeTypeSwitch;
|
|
public Switch autoPlaySwitch;
|
|
|
|
public override void Initialize()
|
|
{
|
|
debugModeSwitch.SetUp(gameSettings.debugMode, "Menu UI/Settings_Debug_Mode");
|
|
debugModeSwitch.updateValueAction = () =>
|
|
{
|
|
gameSettings.debugMode = debugModeSwitch.GetValue();
|
|
};
|
|
|
|
judgeTypeSwitch.SetUp(gameSettings.judgeType, "Menu UI/Settings_Judge_Type");
|
|
judgeTypeSwitch.updateValueAction = () =>
|
|
{
|
|
gameSettings.judgeType = judgeTypeSwitch.GetValue();
|
|
};
|
|
|
|
autoPlaySwitch.SetUp(gameSettings.autoPlay, "Menu UI/Settings_Auto_Play");
|
|
autoPlaySwitch.updateValueAction = () =>
|
|
{
|
|
gameSettings.autoPlay = autoPlaySwitch.GetValue();
|
|
};
|
|
}
|
|
|
|
public override void SetValuesFromSettings()
|
|
{
|
|
debugModeSwitch.SetValue(gameSettings.debugMode);
|
|
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
|
autoPlaySwitch.SetValue(gameSettings.autoPlay);
|
|
}
|
|
}
|
|
} |