|
|
|
@ -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 { |
|
|
|
|