auto
This commit is contained in:
@@ -9,6 +9,7 @@ namespace Ichni.Menu
|
||||
{
|
||||
public Switch debugModeSwitch;
|
||||
public Switch judgeTypeSwitch;
|
||||
public Switch autoPlaySwitch;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -23,12 +24,19 @@ namespace Ichni.Menu
|
||||
{
|
||||
gameSettings.judgeType = judgeTypeSwitch.GetValue();
|
||||
};
|
||||
|
||||
autoPlaySwitch.SetUp(gameSettings.autoPlay, "Menu UI/Settings_Auto_Play");
|
||||
autoPlaySwitch.updateValueAction = () =>
|
||||
{
|
||||
gameSettings.autoPlay = autoPlaySwitch.GetValue();
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetValuesFromSettings()
|
||||
{
|
||||
debugModeSwitch.SetValue(gameSettings.debugMode);
|
||||
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
||||
autoPlaySwitch.SetValue(gameSettings.autoPlay);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user