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

Bugfix for nebula 0.8.11 #586

Merged
merged 14 commits into from
Oct 19, 2022
Prev Previous commit
Next Next commit
Hide multiplayer menu when update log opens
  • Loading branch information
starfi5h committed Oct 6, 2022
commit c90628ebef6d53d7ed6a611b762691d2a0cc8f14
8 changes: 8 additions & 0 deletions NebulaPatcher/Patches/Dynamic/UIMainMenu_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public static void _OnOpen_Postfix()
AddMultiplayerJoinMenu();
}

[HarmonyPostfix]
[HarmonyPatch(nameof(UIMainMenu.OnUpdateLogButtonClick))]
public static void OnUpdateLogButtonClick_Postfix(UIMainMenu __instance)
{
// Return to main menu when update log is opened
OnMultiplayerBackButtonClick();
}

// Main Menu
private static void AddMultiplayerButton()
{
Expand Down