Display map name while downloading

This commit is contained in:
def 2014-08-16 01:06:17 +02:00
parent 5f6be4d0bc
commit 1c4fac8afd
3 changed files with 4 additions and 1 deletions

View file

@ -96,6 +96,7 @@ public:
virtual void EnterGame() = 0;
//
virtual const char *MapDownloadName() = 0;
virtual int MapDownloadAmount() = 0;
virtual int MapDownloadTotalsize() = 0;

View file

@ -281,6 +281,7 @@ public:
void ProcessServerPacket(CNetChunk *pPacket);
void ProcessServerPacketDummy(CNetChunk *pPacket);
virtual const char *MapDownloadName() { return m_aMapdownloadName; }
virtual int MapDownloadAmount() { return m_MapdownloadAmount; }
virtual int MapDownloadTotalsize() { return m_MapdownloadTotalsize; }

View file

@ -976,7 +976,8 @@ int CMenus::Render()
pButtonText = Localize("Abort");
if(Client()->MapDownloadTotalsize() > 0)
{
pTitle = Localize("Downloading map");
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Downloading map"), Client()->MapDownloadName());
pTitle = aBuf;
pExtraText = "";
}
}