From ae53e8b9a245009d7c6b4248796144e68bcae7bb Mon Sep 17 00:00:00 2001 From: megai2 Date: Wed, 30 Sep 2020 01:25:58 +0300 Subject: [PATCH] extras: draw overlay hotkey tip before fps graph --- d912pxy/d912pxy_extras.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/d912pxy/d912pxy_extras.cpp b/d912pxy/d912pxy_extras.cpp index 8bb5ff5..7ce3d97 100644 --- a/d912pxy/d912pxy_extras.cpp +++ b/d912pxy/d912pxy_extras.cpp @@ -415,6 +415,15 @@ void d912pxy_extras::DrawMainWindow() ImGui::Text("%s", d912pxy_s.render.db.psoMTCompiler.getQueueInfoStr()); } + UINT ctick = GetTickCount(); + if (!startupTime) + startupTime = ctick; + else if ((startupTime + hkTipShowTime) > ctick) + { + char keyChar = MapVirtualKeyA(d912pxy_s.config.GetValueUI32(PXY_CFG_EXTRAS_OVERLAY_TOGGLE_KEY), MAPVK_VK_TO_CHAR); + ImGui::Text("Use Ctrl+Alt+%c to toggle overlay mode (hide/show/allow input)", keyChar); + } + if (bShowFpsGraph) { if (!fpsGraph.Data->HaveFreeSpace()) @@ -431,15 +440,6 @@ void d912pxy_extras::DrawMainWindow() bShowConfigEditor = !bShowConfigEditor; } - UINT ctick = GetTickCount(); - if (!startupTime) - startupTime = ctick; - else if ((startupTime + hkTipShowTime) > ctick) - { - char keyChar = MapVirtualKeyA(d912pxy_s.config.GetValueUI32(PXY_CFG_EXTRAS_OVERLAY_TOGGLE_KEY), MAPVK_VK_TO_CHAR); - ImGui::Text("Use Ctrl+Alt+%c to toggle overlay mode (hide/show/allow input)", keyChar); - } - ImGui::End(); }