Skip to content

F2 does not hide the UI #12

@ncanceill

Description

@ncanceill

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions