mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Added GameInstance class
- available as global GAME - integrates LOCPLINT (CPlayerInterface) - integrates CGI->mh (CMapHandler) - integrates CSH (CServerHandler)
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
|
||||
#include "../CPlayerInterface.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../GameInstance.h"
|
||||
#include "../windows/CMessage.h"
|
||||
#include "../windows/InfoWindows.h"
|
||||
#include "../adventureMap/CInGameConsole.h"
|
||||
@ -546,8 +547,8 @@ void CGStatusBar::show(Canvas & to)
|
||||
|
||||
void CGStatusBar::clickPressed(const Point & cursorPosition)
|
||||
{
|
||||
if(LOCPLINT && LOCPLINT->cingconsole->isActive())
|
||||
LOCPLINT->cingconsole->startEnteringText();
|
||||
if(GAME->interface() && GAME->interface()->cingconsole->isActive())
|
||||
GAME->interface()->cingconsole->startEnteringText();
|
||||
}
|
||||
|
||||
void CGStatusBar::activate()
|
||||
@ -561,7 +562,7 @@ void CGStatusBar::deactivate()
|
||||
ENGINE->setStatusbar(nullptr);
|
||||
|
||||
if (enteringText)
|
||||
LOCPLINT->cingconsole->endEnteringText(false);
|
||||
GAME->interface()->cingconsole->endEnteringText(false);
|
||||
|
||||
CIntObject::deactivate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user