Skip to content

Commit

Permalink
Overlay: implement "hide during online race"
Browse files Browse the repository at this point in the history
hopefully all online modes are detected properly with this...
  • Loading branch information
emoose committed Dec 18, 2024
1 parent 0534b64 commit 15f06f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/overlay/notifications.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class Notifications
{
if (Overlay::NotifyHideMode == Overlay::NotifyHideMode_AllRaces)
return;
// todo: check if connected to lobby & Settings::NotifyHideMode_OnlineRaces

if (Overlay::NotifyHideMode == Overlay::NotifyHideMode_OnlineRaces &&
*Game::SumoNet_CurNetDriver && (*Game::SumoNet_CurNetDriver)->is_online_driver() &&
(*Game::game_mode == 3 || *Game::game_mode == 4))
return;
}

ImVec2 screenSize = ImGui::GetIO().DisplaySize;
Expand Down

0 comments on commit 15f06f0

Please sign in to comment.