mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Display local time in editor so that mappers don't lose track of it
This commit is contained in:
parent
e20be248f0
commit
d11f1b0b38
|
@ -4699,7 +4699,12 @@ void CEditor::RenderMenubar(CUIRect MenuBar)
|
||||||
str_format(aBuf, sizeof(aBuf), "File: %s", m_aFileName);
|
str_format(aBuf, sizeof(aBuf), "File: %s", m_aFileName);
|
||||||
UI()->DoLabel(&MenuBar, aBuf, 10.0f, -1, -1);
|
UI()->DoLabel(&MenuBar, aBuf, 10.0f, -1, -1);
|
||||||
|
|
||||||
str_format(aBuf, sizeof(aBuf), "Z: %i, A: %.1f, G: %i", m_ZoomLevel, m_AnimateSpeed, m_GridFactor);
|
time_t rawtime;
|
||||||
|
struct tm *timeinfo;
|
||||||
|
time(&rawtime);
|
||||||
|
timeinfo = localtime(&rawtime);
|
||||||
|
|
||||||
|
str_format(aBuf, sizeof(aBuf), "Z: %i, A: %.1f, G: %i %02d:%02d", m_ZoomLevel, m_AnimateSpeed, m_GridFactor, timeinfo->tm_hour, timeinfo->tm_min);
|
||||||
UI()->DoLabel(&Info, aBuf, 10.0f, 1, -1);
|
UI()->DoLabel(&Info, aBuf, 10.0f, 1, -1);
|
||||||
|
|
||||||
static int s_CloseButton = 0;
|
static int s_CloseButton = 0;
|
||||||
|
|
Loading…
Reference in a new issue