mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
show animation/grid/zoom level in the map editor. Closes #780
This commit is contained in:
parent
bafd22ebe7
commit
f8b895181a
|
@ -3596,10 +3596,15 @@ void CEditor::RenderMenubar(CUIRect MenuBar)
|
||||||
(void)0;
|
(void)0;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
CUIRect Info;
|
||||||
MenuBar.VSplitLeft(40.0f, 0, &MenuBar);
|
MenuBar.VSplitLeft(40.0f, 0, &MenuBar);
|
||||||
|
MenuBar.VSplitLeft(MenuBar.w*0.75f, &MenuBar, &Info);
|
||||||
char aBuf[128];
|
char aBuf[128];
|
||||||
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);
|
||||||
|
UI()->DoLabel(&Info, aBuf, 10.0f, 1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CEditor::Render()
|
void CEditor::Render()
|
||||||
|
|
Loading…
Reference in a new issue