From d84aefb4a30e0ea8d41822056c86cc19a1c5774b Mon Sep 17 00:00:00 2001 From: squee72564 Date: Mon, 1 Jan 2024 14:22:46 -0800 Subject: [PATCH] Added VariableItemList module and changed DialogEx name to menu_screen --- minesweeper.c | 6 +++--- minesweeper.h | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/minesweeper.c b/minesweeper.c index 207fd15..fa5cb29 100644 --- a/minesweeper.c +++ b/minesweeper.c @@ -50,8 +50,8 @@ static MineSweeperApp* app_alloc() { app->game_screen = mine_sweeper_game_screen_alloc(); view_dispatcher_add_view(app->view_dispatcher, MineSweeperGameScreenView, mine_sweeper_game_screen_get_view(app->game_screen)); - app->menu = dialog_ex_alloc(); - view_dispatcher_add_view(app->view_dispatcher, MineSweeperMenuView, dialog_ex_get_view(app->menu)); + app->menu_screen = dialog_ex_alloc(); + view_dispatcher_add_view(app->view_dispatcher, MineSweeperMenuView, dialog_ex_get_view(app->menu_screen)); // Set hardware related values to default app->haptic = 1; @@ -78,7 +78,7 @@ static void app_free(MineSweeperApp* app) { loading_free(app->loading); start_screen_free(app->start_screen); mine_sweeper_game_screen_free(app->game_screen); - dialog_ex_free(app->menu); + dialog_ex_free(app->menu_screen); furi_record_close(RECORD_GUI); furi_record_close(RECORD_NOTIFICATION); diff --git a/minesweeper.h b/minesweeper.h index 50ddd8a..7c786e1 100644 --- a/minesweeper.h +++ b/minesweeper.h @@ -15,6 +15,7 @@ #include #include #include +#include #include "scenes/minesweeper_scene.h" @@ -36,7 +37,8 @@ typedef struct MineSweeperApp { StartScreen* start_screen; Loading* loading; MineSweeperGameScreen* game_screen; - DialogEx* menu; + DialogEx* menu_screen; + VariableItemList* settings_screen; uint32_t haptic; uint32_t speaker; uint32_t led;