forked from Kramax/KramaxAutoPilot
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Description
Hiding the game UI (by pressing F2) does not hide Kramax UI
Root cause
I believe GameEvents.onShowUI and GameEvents.onHideUI are not handled
Fix
Something like this:
GameEvents.onShowUI.Add(OnShowGui);
public void OnShowGui() {
bHideUI = false;
if (mainPilot != null) mainPilot.OnGUI();
}
GameEvents.onHideUI.Add(OnHideGui);
public void OnHideGui() {
bHideUI = true;
if (mainPilot != null) mainPilot.OnGUI();
}
there maybe?
Metadata
Metadata
Assignees
Labels
No labels