34 lines
1022 B
C#
34 lines
1022 B
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 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();
|
|
};
|
|
}
|
|
|
|
public override void SetValuesFromSettings()
|
|
{
|
|
debugModeSwitch.SetValue(gameSettings.debugMode);
|
|
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
|
}
|
|
}
|
|
} |