Display local time in editor so that mappers don't lose track of it

This commit is contained in:
def 2015-07-01 16:38:17 +02:00
parent e20be248f0
commit d11f1b0b38

View file

@ -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;