Add missing hasPrevious check to input overlay

This commit is contained in:
Phillip Stephens 2021-05-30 00:57:51 -07:00
parent d9b7229e79
commit 92f13efbef
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 5 additions and 1 deletions

View File

@ -566,12 +566,15 @@ void ImGuiConsole::ShowDebugOverlay() {
ImGui::Separator();
}
ImGuiStringViewText(fmt::format(FMT_STRING("Resource Objects: {}\n"), g_SimplePool->GetLiveObjects()));
hasPrevious = true;
}
// Code -stolen- borrowed from Practice Mod
if (m_showInput && g_InputGenerator != nullptr) {
auto input = g_InputGenerator->GetLastInput();
if (input.x4_controllerIdx == 0) {
ImGui::Separator();
if (hasPrevious) {
ImGui::Separator();
}
ImDrawList* dl = ImGui::GetWindowDrawList();
ImVec2 p = ImGui::GetCursorScreenPos();
@ -698,6 +701,7 @@ void ImGuiConsole::ShowDebugOverlay() {
}
ImGui::Dummy(ImVec2(270, 130));
hasPrevious = true;
}
}
if (ImGui::BeginPopupContextWindow()) {