Exemplo n.º 1
0
 public void createKACButton(string RelButtonPath)
 {
     ButtonPressed = false;
     if (AppButton == null && HighLogic.CurrentGame != null)
     {
         AppButton = KSP.UI.Screens.ApplicationLauncher.Instance.AddModApplication(
             () => { MainProgram.CreateKACAlarm(); },
             () => { MainProgram.CreateKACAlarm(); },
             null, null, null, null,
             KSP.UI.Screens.ApplicationLauncher.AppScenes.ALWAYS,
             DataManager.buttonTexture(RelButtonPath));
     }
 }
Exemplo n.º 2
0
 public void createEnabledButton(string RelButtonPath)
 {
     ButtonPressed = true;
     if (AppButton == null && HighLogic.CurrentGame != null)
     {
         AppButton = KSP.UI.Screens.ApplicationLauncher.Instance.AddModApplication(
             () => { ButtonPressed = false; Settings.LastButtonState = false; },
             () => { ButtonPressed = true; Settings.LastButtonState = true; },
             null, null, null, null,
             KSP.UI.Screens.ApplicationLauncher.AppScenes.ALWAYS,
             DataManager.buttonTexture(RelButtonPath));
         ButtonTexture = "SpaceCenter";
     }
 }