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:
parent
2576b16869
commit
48df9248b2
5 changed files with 51 additions and 11 deletions
5
gui.cpp
5
gui.cpp
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue