mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-29 07:58:30 +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:
parent
c5db440318
commit
a0d2be6362
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user