Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Principia UI visibility at KSC #2262

Closed
SirMortimer opened this issue Jul 31, 2019 · 2 comments · Fixed by #2265
Closed

Principia UI visibility at KSC #2262

SirMortimer opened this issue Jul 31, 2019 · 2 comments · Fixed by #2265
Milestone

Comments

@SirMortimer
Copy link

If you have the Principia UI open and switch to any building except one of the editors (VAB/SPH), the UI stays open with no way to close it. Since it is of no use, I suggest hiding the window in

  • R&D
  • Mission Control
  • Astronaut Complex
  • Administration
@pleroy
Copy link
Member

pleroy commented Jul 31, 2019

Good point. Now the question is, how do we figure out what scene is displayed?
DetermineVisibility might help us figure out if our button is shown, and if not, hide the main window.

Sorry, something went wrong.

@SirMortimer
Copy link
Author

Maybe you can use HighLogic.LoadedSceneIsFlight || HighLogic.LoadedSceneHasPlanetarium

Sorry, something went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants