From a0d2be6362b4021d253f8961558d166c6a497ba9 Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 14 Apr 2020 21:12:24 -0700 Subject: [PATCH] Add Game::option() This simply adds a menu option to the list of menu options, and is neat and tidy and not messy. --- desktop_version/src/Game.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index dc390a38..95a07f78 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -169,6 +169,14 @@ public: int current_credits_list_index; int menuxoff, menuyoff; + void inline option(std::string text, bool active = true) + { + MenuOption menuoption; + menuoption.text = text; + menuoption.active = active; + menuoptions.push_back(menuoption); + } + int menucountdown; std::string menudest;