26 lines
665 B
C#
26 lines
665 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 override void Initialize()
|
||
|
|
{
|
||
|
|
debugModeSwitch.SetUp(gameSettings.debugMode, "Menu UI/Settings_DebugMode");
|
||
|
|
debugModeSwitch.updateValueAction = () =>
|
||
|
|
{
|
||
|
|
gameSettings.debugMode = debugModeSwitch.GetValue();
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void SetValuesFromSettings()
|
||
|
|
{
|
||
|
|
debugModeSwitch.SetValue(gameSettings.debugMode);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|