public void OnClickConfirm() { UpdateValues(); ConfigModule.Apply(); ConfigState.Save(); Modal.PushMessageModal("Applied settings changes!", "Changes Applied", null, OnConfirmed, true); }
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); }
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 }
private static void SaveConfig() { ConfigState.Save(); }
public void OnClickExitBigscreenMode() { ConfigState.Instance.SetCustomFlag("UseBigScreenMode", false); ConfigState.Save(); SceneManager.LoadScene("MainMenuScene"); }