Rework the GUI so that I can place my face while I stream.

master
Zed A. Shaw 3 months ago
parent 07677068ab
commit f83c0c7ff9
  1. 11
      gui.cpp

@ -57,9 +57,8 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> 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<bool()> 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 {

Loading…
Cancel
Save