A bit of cleanup and testing of the panel, then some optimization to avoid re-rendering and multiple wchar converts.
This commit is contained in:
parent
6e848004c4
commit
7d3605f58b
5 changed files with 41 additions and 16 deletions
12
gui.cpp
12
gui.cpp
|
@ -201,9 +201,19 @@ void GUI::shake() {
|
|||
void GUI::render_scene() {
|
||||
$renderer.clear();
|
||||
|
||||
$renderer.draw_text_ui($status_ui);
|
||||
$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.display();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue