mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
30 lines
No EOL
656 B
C#
30 lines
No EOL
656 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace RJWSexperience.Settings
|
|
{
|
|
public abstract class SettingsTab : ITab, IResettable
|
|
{
|
|
protected readonly List<ISettingHandle> tabSettings;
|
|
protected readonly Configurations settings;
|
|
|
|
public string Label { get; protected set; }
|
|
|
|
protected SettingsTab(Configurations settings, string label, List<ISettingHandle> tabSettings)
|
|
{
|
|
this.settings = settings;
|
|
Label = label;
|
|
this.tabSettings = tabSettings;
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
foreach (ISettingHandle setting in tabSettings)
|
|
{
|
|
setting.Reset();
|
|
}
|
|
}
|
|
|
|
public abstract void DoTabContents(Rect inRect);
|
|
}
|
|
} |