void OnGameStateCreated(Game g) { bool b = false; if (OneTimePopup.GetGlobalDefault(ref b)) { g.Parameters.CustomParams <CTB>().focusFollowsclick = b; g.Parameters.CustomParams <CTB>().showPopup = false; OneTimePopup.CreatePopUpFlagFile(); } }
void OnGameNewStart() { bool b = false; if (OneTimePopup.GetGlobalDefault(ref b)) { HighLogic.CurrentGame.Parameters.CustomParams <CTB>().focusFollowsclick = b; HighLogic.CurrentGame.Parameters.CustomParams <CTB>().showPopup = false; OneTimePopup.CreatePopUpFlagFile(); } }