mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #1892 from Dune-jr/add-difficultyinfo
Add difficulty info to the ingame menus
This commit is contained in:
commit
74d05d4969
|
@ -435,6 +435,12 @@ void CMenus::RenderServerInfo(CUIRect MainView)
|
|||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Map"), CurrentServerInfo.m_aMap);
|
||||
UI()->DoLabel(&Label, aBuf, ButtonHeight*ms_FontmodHeight*0.8f, CUI::ALIGN_LEFT);
|
||||
|
||||
GameInfo.HSplitTop(ButtonHeight, &Label, &GameInfo);
|
||||
Label.y += 2.0f;
|
||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Difficulty"), (CurrentServerInfo.m_ServerLevel == 0) ? Localize("Casual") :
|
||||
(CurrentServerInfo.m_ServerLevel == 1 ? Localize("Normal") : Localize("Competitive")));
|
||||
UI()->DoLabel(&Label, aBuf, ButtonHeight*ms_FontmodHeight*0.8f, CUI::ALIGN_LEFT);
|
||||
|
||||
GameInfo.HSplitTop(ButtonHeight, &Label, &GameInfo);
|
||||
Label.y += 2.0f;
|
||||
str_format(aBuf, sizeof(aBuf), "%s: %d", Localize("Score limit"), m_pClient->m_GameInfo.m_ScoreLimit);
|
||||
|
|
Loading…
Reference in a new issue