Testing is almost complete, but now I'm in the area where it's a lot of interaction and probably need mocks or a way to inject keys to the gui.

This commit is contained in:
Zed A. Shaw 2024-12-02 10:57:02 -05:00
parent 2576b16869
commit 48df9248b2
5 changed files with 51 additions and 11 deletions

View file

@ -52,10 +52,9 @@ GUI::GUI(DinkyECS::World &world, Map& game_map) :
}
void GUI::resize_map(int new_size) {
if($renderer.resize_grid(new_size, $map_view)) {
$renderer.resize_grid(new_size, $map_view);
// set canvas to best size
$canvas = Canvas($map_view.width * 2, $map_view.height * 4);
}
$canvas = Canvas($map_view.width * 2, $map_view.height * 4);
}
void GUI::save_world() {