Пример #1
0
 public void OnClickConfirm()
 {
     UpdateValues();
     ConfigModule.Apply();
     ConfigState.Save();
     Modal.PushMessageModal("Applied settings changes!", "Changes Applied", null, OnConfirmed, true);
 }
Пример #2
0
 public void OnClickConfirm()
 {
     UpdateValues();
     ConfigState.Save();
     ConfigModule.Apply();
     //MappedInput.SetMapper(ConfigState.Instance.InputMapper); //we need to do this manually unfortunately...
     Modal.PushMessageModal("Applied settings changes!", "Changes Applied", null, OnConfirmed, true);
 }
Пример #3
0
 private void SaveControlMap()
 {
     //commit our modified control map to ConfigState
     InputMap.SaveToConfig();
     if (MappedInput.GetCurrentMapper() is ExplicitKBMInputMapper kMapper)
     {
         kMapper.ReloadControlMap();
     }
     ConfigState.Save(); //do we want this? probably
 }
Пример #4
0
 private static void SaveConfig()
 {
     ConfigState.Save();
 }
 public void OnClickExitBigscreenMode()
 {
     ConfigState.Instance.SetCustomFlag("UseBigScreenMode", false);
     ConfigState.Save();
     SceneManager.LoadScene("MainMenuScene");
 }