| 258 | Lemon::GUI::WindowMenu gameMenu = {{"Game"}, {{MenuEasy, "Play Easy"}, {MenuMedium, "Play Medium"}, {MenuHard, "Play Hard"}}}; |
| 259 | |
| 260 | void UpdateWindowSize(){ // Update window size according to the map size |
| 261 | vector2i_t mapSize = difficultySizes[game.GetDifficulty()]; |
| 262 | |
| 263 | mapSize.x *= 16; |
| 264 | mapSize.y = (mapSize.y * 16) + window->rootContainer.GetFixedBounds().y; // Account for menu bar |
| 265 | |
| 266 | window->Resize(mapSize); |
| 267 | } |
| 268 | |
| 269 | int main(int argc, char** argv){ |
| 270 | window = new Lemon::GUI::Window("Minesweeper", {160, 160}, 0, Lemon::GUI::GUI); |
no test coverage detected