public void Options_ToggleAirVentsKeybindValueChanged(object sender, KeybindChangedEventArgs e) { if (e.Id != "toggleAirVentsKeybindPress") { return; } Config.ToggleAirVentsKeybindValue = e.Key; PlayerPrefsExtra.SetKeyCode("ToggleAirVentsKeybindPress", e.Key); }
public void Options_KeybindChanged(object sender, KeybindChangedEventArgs e) { if (e.Id != "exampleKeybind") { return; } Config.KeybindKey = e.Key; PlayerPrefsExtra.SetKeyCode("SMLHelperExampleModKeybind", e.Key); }
public void Options_GearUpKeybindValueChanged(object sender, KeybindChangedEventArgs e) { if (e.Id != "gearUpKeybindPress") { return; } Config.GearUpKeybindValue = e.Key; PlayerPrefsExtra.SetKeyCode("GearUpKeybindPress", e.Key); }
public void Options_LightsLoHiKeybindValueChanged(object sender, KeybindChangedEventArgs e) { if (e.Id != "lightsLoHiKeybindPress") { return; } Config.LightsLoHiKeybindValue = e.Key; PlayerPrefsExtra.SetKeyCode("LightsLoHiKeybindPress", e.Key); }
public void Options_KeybindChanged(object sender, KeybindChangedEventArgs e) { if (e.Id == "waterhotkey") { Config.WaterHotKey = e.Key; PlayerPrefsExtra.SetKeyCode("WaterHotKey", e.Key); } else if (e.Id == "foodhotkey") { Config.FoodHotKey = e.Key; PlayerPrefsExtra.SetKeyCode("FoodHotKey", e.Key); } }
public void Options_KeybindChanged(object sender, KeybindChangedEventArgs e) { if (e.Id == "exampleKeybindLeft") { Config.KeybindKeyLeft = e.Key; PlayerPrefsExtra.SetKeyCode("SMLHelperExampleModKeybindLeft", e.Key); } if (e.Id == "exampleKeybindRight") { Config.KeybindKeyRight = e.Key; PlayerPrefsExtra.SetKeyCode("SMLHelperExampleModKeybindRight", e.Key); } }