26 lines
666 B
C#
26 lines
666 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_Debug_Mode");
|
|
debugModeSwitch.updateValueAction = () =>
|
|
{
|
|
gameSettings.debugMode = debugModeSwitch.GetValue();
|
|
};
|
|
}
|
|
|
|
public override void SetValuesFromSettings()
|
|
{
|
|
debugModeSwitch.SetValue(gameSettings.debugMode);
|
|
}
|
|
}
|
|
} |