From f83c0c7ff91ae8ea0c7e7212adf8aca642bdc385 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 23 Aug 2024 16:06:40 -0400 Subject: [PATCH] Rework the GUI so that I can place my face while I stream. --- gui.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gui.cpp b/gui.cpp index 22a8d3c..4a93f40 100644 --- a/gui.cpp +++ b/gui.cpp @@ -57,9 +57,8 @@ int GUI::main_loop(GameEngine &game, std::function runner) { text("Welcome to...Turing's Tarpit!"), separator(), hbox({ - text("left") | border | flex , - text("middle") | border | flex, - text("right") | border | flex, + text("Your Face") | center | xflex_grow , + text("Something Fun") | border | flex, }) | yflex_grow }); }); @@ -73,12 +72,12 @@ int GUI::main_loop(GameEngine &game, std::function runner) { auto component = Renderer(build_log, [&] { return vbox({ - game_stuff->Render() | flex | size(HEIGHT, GREATER_THAN, 20), + status->Render(), separator(), build_log->Render() | vscroll_indicator | yframe | yflex_grow, separator(), - status->Render() - }) | border; + game_stuff->Render() | flex | size(HEIGHT, GREATER_THAN, 20), + }); }); component |= CatchEvent([&](Event) -> bool {