微调
This commit is contained in:
@@ -8,6 +8,7 @@ namespace Ichni.Menu
|
||||
public class DebugSettingsWindow : SettingsWindow
|
||||
{
|
||||
public Switch debugModeSwitch;
|
||||
public Switch judgeTypeSwitch;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -16,11 +17,18 @@ namespace Ichni.Menu
|
||||
{
|
||||
gameSettings.debugMode = debugModeSwitch.GetValue();
|
||||
};
|
||||
|
||||
judgeTypeSwitch.SetUp(gameSettings.judgeType, "Menu UI/Settings_Judge_Type");
|
||||
judgeTypeSwitch.updateValueAction = () =>
|
||||
{
|
||||
gameSettings.judgeType = judgeTypeSwitch.GetValue();
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetValuesFromSettings()
|
||||
{
|
||||
debugModeSwitch.SetValue(gameSettings.debugMode);
|
||||
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user