Support switching to campaign mode
This commit is contained in:
parent
a4b1319ea8
commit
067edf5b23
1 changed files with 5 additions and 0 deletions
|
|
@ -2725,6 +2725,11 @@ namespace gmtk
|
|||
menu_buttons_.push_back({"Paused", {}});
|
||||
menu_buttons_.push_back({"Continue", [this]{ in_escape_menu_ = false; }});
|
||||
menu_buttons_.push_back({"Restart", [this]{ start_new_game(is_challenge_mode_, is_sandbox_mode_, false); }});
|
||||
if (is_challenge_mode_)
|
||||
menu_buttons_.push_back({"Campaign mode", [this]{ is_challenge_mode_ = false; in_escape_menu_ = false;
|
||||
for (auto type : card_type_values())
|
||||
map_.cards[type] = 1000000;
|
||||
}});
|
||||
menu_buttons_.push_back({"Main menu", [this]{ set_start_menu(); }});
|
||||
menu_buttons_.push_back({is_windowed_ ? "Windowed" : "Fullscreen", [this]{ is_windowed_ ^= true; context_.windowed(is_windowed_); set_escape_menu_buttons(); }});
|
||||
menu_buttons_.push_back({"Exit", [this]{ stop(); }});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue