mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
hide screen also for second custom campaign scen.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include "../../lib/rmg/CMapGenOptions.h"
|
||||
#include "../CGameInfo.h"
|
||||
|
||||
CLobbyScreen::CLobbyScreen(ESelectionScreen screenType, bool fromCampaignSet)
|
||||
CLobbyScreen::CLobbyScreen(ESelectionScreen screenType, bool hideScreen)
|
||||
: CSelectionBase(screenType), bonusSel(nullptr)
|
||||
{
|
||||
OBJECT_CONSTRUCTION;
|
||||
@@ -116,7 +116,7 @@ CLobbyScreen::CLobbyScreen(ESelectionScreen screenType, bool fromCampaignSet)
|
||||
CSH->getGlobalLobby().activateInterface();
|
||||
}, EShortcut::GLOBAL_CANCEL);
|
||||
|
||||
if(fromCampaignSet) // workaround to avoid confusing players by custom campaign list displaying for a few ms -> instead of this draw a black screen while "loading"
|
||||
if(hideScreen) // workaround to avoid confusing players by custom campaign list displaying for a few ms -> instead of this draw a black screen while "loading"
|
||||
{
|
||||
blackScreen = std::make_shared<GraphicalPrimitiveCanvas>(Rect(Point(0, 0), pos.dimensions()));
|
||||
blackScreen->addBox(Point(0, 0), pos.dimensions(), Colors::BLACK);
|
||||
|
||||
Reference in New Issue
Block a user