1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-09-27 16:57:25 +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 current_credits_list_index;
int menuxoff, menuyoff; 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; int menucountdown;
std::string menudest; std::string menudest;