|
|
@ -57,9 +57,8 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> runner) { |
|
|
|
text("Welcome to...Turing's Tarpit!"), |
|
|
|
text("Welcome to...Turing's Tarpit!"), |
|
|
|
separator(), |
|
|
|
separator(), |
|
|
|
hbox({ |
|
|
|
hbox({ |
|
|
|
text("left") | border | flex , |
|
|
|
text("Your Face") | center | xflex_grow , |
|
|
|
text("middle") | border | flex, |
|
|
|
text("Something Fun") | border | flex, |
|
|
|
text("right") | border | flex, |
|
|
|
|
|
|
|
}) | yflex_grow |
|
|
|
}) | yflex_grow |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -73,12 +72,12 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> runner) { |
|
|
|
|
|
|
|
|
|
|
|
auto component = Renderer(build_log, [&] { |
|
|
|
auto component = Renderer(build_log, [&] { |
|
|
|
return vbox({ |
|
|
|
return vbox({ |
|
|
|
game_stuff->Render() | flex | size(HEIGHT, GREATER_THAN, 20), |
|
|
|
status->Render(), |
|
|
|
separator(), |
|
|
|
separator(), |
|
|
|
build_log->Render() | vscroll_indicator | yframe | yflex_grow, |
|
|
|
build_log->Render() | vscroll_indicator | yframe | yflex_grow, |
|
|
|
separator(), |
|
|
|
separator(), |
|
|
|
status->Render() |
|
|
|
game_stuff->Render() | flex | size(HEIGHT, GREATER_THAN, 20), |
|
|
|
}) | border; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
component |= CatchEvent([&](Event) -> bool { |
|
|
|
component |= CatchEvent([&](Event) -> bool { |
|
|
|