Files
UnleashedRecomp-hedge-dev/UnleashedRecomp/ui/reddog/windows/window_list.cpp
Hyper 2f68ee5df2 Implemented mock reddog window manager
Requires micross.ttf font in game root and ENABLE_IM_FONT_ATLAS_SNAPSHOT undefined, not currently in the font atlas.
2025-01-17 20:14:50 +00:00

22 lines
463 B
C++

#include "window_list.h"
static WindowList g_window;
void WindowList::Draw()
{
if (Begin())
{
for (auto& pWindow : Reddog::GetWindows())
{
auto pTrueWindow = (Reddog::Window*)pWindow;
if ((pTrueWindow->Flags & Reddog::eWindowFlags_NoListEntry) != 0)
continue;
if (ImGui::Button(pTrueWindow->Name, { 190, 26 }))
pTrueWindow->SetVisible();
}
}
End();
}