add chat gui, probably works

This commit is contained in:
2023-07-28 18:03:45 +02:00
parent 5a9aacc603
commit 4cd295065b
5 changed files with 558 additions and 1 deletions

View File

@ -13,7 +13,8 @@ MainScreen::MainScreen(SDL_Renderer* renderer_, std::string save_path) :
tcm(cr, tc, tc),
tmm(rmm, cr, tcm, tc, tc),
ttm(rmm, cr, tcm, tc, tc),
sdlrtu(renderer_)
sdlrtu(renderer_),
cg(rmm, cr, sdlrtu)
{
tel.subscribeAll(tc);
@ -61,6 +62,8 @@ Screen* MainScreen::poll(bool& quit) {
pm.tick(time_delta);
cg.render();
{
bool open = !quit;
ImGui::ShowDemoWindow(&open);