mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Display map name while downloading
This commit is contained in:
parent
5f6be4d0bc
commit
1c4fac8afd
|
@ -96,6 +96,7 @@ public:
|
|||
virtual void EnterGame() = 0;
|
||||
|
||||
//
|
||||
virtual const char *MapDownloadName() = 0;
|
||||
virtual int MapDownloadAmount() = 0;
|
||||
virtual int MapDownloadTotalsize() = 0;
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue