1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

battlewindow

This commit is contained in:
Michael 2023-08-29 22:43:37 +02:00 committed by GitHub
parent 40c7ddcaf4
commit 1d6469ab36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@
#include "../windows/CCastleInterface.h"
#include "../windows/CHeroWindow.h"
#include "../windows/CKingdomInterface.h"
#include "../battle/BattleWindow.h"
#include "../CGameInfo.h"
#include "../gui/CursorHandler.h"
#include "../gui/CGuiHandler.h"
@ -171,7 +172,8 @@ void AdventureMapInterface::dim(Canvas & to)
{
if(!GH.windows().findWindows<CCastleInterface>().empty() ||
!GH.windows().findWindows<CHeroWindow>().empty() ||
!GH.windows().findWindows<CKingdomInterface>().empty())
!GH.windows().findWindows<CKingdomInterface>().empty() ||
!GH.windows().findWindows<BattleWindow>().empty())
to.drawColor(Rect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y), ColorRGBA(0, 0, 0, 128));
}