1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Add Game::option()

This simply adds a menu option to the list of menu options, and is neat
and tidy and not messy.
This commit is contained in:
Misa 2020-04-14 21:12:24 -07:00 committed by Ethan Lee
parent c5db440318
commit a0d2be6362

View File

@ -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;