/// <summary>Called when the ApplicationLauncher gets destroyed.</summary> void DestroyAppButton() { if (!Equals(appButton, null)) { ApplicationLauncher.Instance.RemoveModApplication(appButton); appButton = null; isGUIEnabled = false; KFPersistenceManager.SaveConfig(); } }
/// <summary>Called when the button is in a "false" state. Saves configuration.</summary> void onFalse() { KFPersistenceManager.SaveConfig(); appButton.SetTexture(appTextureGrey); isGUIEnabled = false; }