mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
26 lines
637 B
C#
26 lines
637 B
C#
namespace UnityEditor.TestTools.TestRunner
|
|
{
|
|
internal class TestRunnerWindowSettings
|
|
{
|
|
public bool verticalSplit;
|
|
|
|
private readonly string m_PrefsKey;
|
|
|
|
public TestRunnerWindowSettings(string prefsKey)
|
|
{
|
|
m_PrefsKey = prefsKey;
|
|
verticalSplit = EditorPrefs.GetBool(m_PrefsKey + ".verticalSplit", true);
|
|
}
|
|
|
|
public void ToggleVerticalSplit()
|
|
{
|
|
verticalSplit = !verticalSplit;
|
|
Save();
|
|
}
|
|
|
|
private void Save()
|
|
{
|
|
EditorPrefs.SetBool(m_PrefsKey + ".verticalSplit", verticalSplit);
|
|
}
|
|
}
|
|
}
|