mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 00:10:26 -06:00
Requires micross.ttf font in game root and ENABLE_IM_FONT_ATLAS_SNAPSHOT undefined, not currently in the font atlas.
22 lines
463 B
C++
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();
|
|
}
|