mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Show X and Y coordinates in map editor
This commit is contained in:
parent
f2444b0de7
commit
a5bd671e55
|
@ -5060,7 +5060,7 @@ void CEditor::RenderMenubar(CUIRect MenuBar)
|
|||
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);
|
||||
str_format(aBuf, sizeof(aBuf), "X: %i, Y: %i, Z: %i, A: %.1f, G: %i %02d:%02d", (int)UI()->MouseWorldX()/32, (int)UI()->MouseWorldY()/32, m_ZoomLevel, m_AnimateSpeed, m_GridFactor, timeinfo->tm_hour, timeinfo->tm_min);
|
||||
UI()->DoLabel(&Info, aBuf, 10.0f, 1, -1);
|
||||
|
||||
static int s_CloseButton = 0;
|
||||
|
|
Loading…
Reference in a new issue