mirror of https://github.com/AxioDL/metaforce.git
Add missing hasPrevious check to input overlay
This commit is contained in:
parent
d9b7229e79
commit
92f13efbef
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue