mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Display map name while downloading
Conflicts: src/engine/client.h src/engine/client/client.h
This commit is contained in:
parent
26ab35dab1
commit
f8278ec032
|
@ -92,6 +92,7 @@ public:
|
|||
virtual void EnterGame() = 0;
|
||||
|
||||
//
|
||||
virtual const char *MapDownloadName() = 0;
|
||||
virtual int MapDownloadAmount() const = 0;
|
||||
virtual int MapDownloadTotalsize() const = 0;
|
||||
|
||||
|
|
|
@ -259,6 +259,7 @@ public:
|
|||
void ProcessConnlessPacket(CNetChunk *pPacket);
|
||||
void ProcessServerPacket(CNetChunk *pPacket);
|
||||
|
||||
virtual const char *MapDownloadName() { return m_aMapdownloadName; }
|
||||
virtual int MapDownloadAmount() const { return m_MapdownloadAmount; }
|
||||
virtual int MapDownloadTotalsize() const { return m_MapdownloadTotalsize; }
|
||||
|
||||
|
|
|
@ -1697,7 +1697,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 = "";
|
||||
NumOptions = 5;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue