Rewrote the ansi parser to exactly callback on color setting, so now just need to clean this all up and fix a few little bugs.
This commit is contained in:
parent
96ee16e598
commit
89a70f398a
9 changed files with 274 additions and 126 deletions
16
gui.cpp
16
gui.cpp
|
@ -202,7 +202,7 @@ void GUI::shake() {
|
|||
int x = Random::uniform<int>(-20,20);
|
||||
int y = Random::uniform<int>(-20,20);
|
||||
// add x/y back to draw screen
|
||||
$renderer.draw_screen($map_view, x, y);
|
||||
$renderer.draw_grid($map_view, x, y);
|
||||
$renderer.display();
|
||||
std::this_thread::sleep_for(1ms);
|
||||
}
|
||||
|
@ -211,18 +211,8 @@ void GUI::shake() {
|
|||
void GUI::render_scene() {
|
||||
$renderer.clear();
|
||||
|
||||
$renderer.draw_text_ui($status_ui, true);
|
||||
$renderer.draw_screen($map_view);
|
||||
|
||||
/*
|
||||
Panel prompt(30, 10, GAME_MAP_POS + 30, 200);
|
||||
prompt.set_renderer([&] {
|
||||
return hbox({
|
||||
hflow(vbox(text("GOLD!")))
|
||||
});
|
||||
});
|
||||
$renderer.draw_text_ui(prompt, true);
|
||||
*/
|
||||
$renderer.draw_text($status_ui);
|
||||
$renderer.draw_grid($map_view);
|
||||
|
||||
$renderer.display();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue