RJW-Sexperience/Source/RJWSexperience/Settings/SettingsTabDebug.cs

25 lines
638 B
C#
Raw Normal View History

2023-03-24 15:22:54 +00:00
using System.Collections.Generic;
using UnityEngine;
2022-05-06 14:30:26 +00:00
using Verse;
namespace RJWSexperience.Settings
{
2023-03-24 15:22:54 +00:00
public class SettingsTabDebug : SettingsTab
2022-05-06 14:30:26 +00:00
{
2023-03-24 15:22:54 +00:00
public SettingsTabDebug(Configurations settings) : base(settings, Keyed.TabLabelDebug, new List<ISettingHandle> { settings.DevMode }) { }
2022-05-06 14:30:26 +00:00
2023-03-24 15:22:54 +00:00
public override void DoTabContents(Rect inRect)
2022-05-06 14:30:26 +00:00
{
Listing_Standard listmain = new Listing_Standard();
listmain.Begin(inRect);
2023-03-24 15:22:54 +00:00
listmain.CheckboxLabeled(Keyed.Option_Debug_Label, settings.DevMode, Keyed.Option_Debug_Desc);
2022-05-06 14:30:26 +00:00
if (listmain.ButtonText(Keyed.Button_ResetToDefault))
{
Reset();
}
listmain.End();
}
}
}