mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
ads-game:: more settings
This commit is contained in:
parent
6ea3cc4bcc
commit
29ed17410b
@ -54,6 +54,7 @@ bool view_proper_times = false;
|
||||
const char *tformat = "%.2f";
|
||||
|
||||
void game_menu();
|
||||
void restart();
|
||||
|
||||
/** all the missiles and objects currently displayed */
|
||||
vector<struct ads_object*> displayed;
|
||||
|
@ -2,13 +2,37 @@ namespace hr {
|
||||
|
||||
namespace ads_game {
|
||||
|
||||
void edit_difficulty() {
|
||||
dialog::init(XLAT("AdS game parameters"), 0xC0C0FFFF, 150, 100);
|
||||
add_edit(simspeed);
|
||||
add_edit(accel);
|
||||
add_edit(how_much_invincibility);
|
||||
|
||||
dialog::addBreak(100);
|
||||
edit_rsrc();
|
||||
|
||||
dialog::addBreak(100);
|
||||
dialog::addBack();
|
||||
dialog::display();
|
||||
}
|
||||
|
||||
void game_menu() {
|
||||
dialog::init(XLAT("AdS game settings"), 0xC0C0FFFF, 150, 100);
|
||||
|
||||
add_edit(simspeed);
|
||||
add_edit(accel);
|
||||
dialog::addItem(XLAT("set game parameters"), 'm');
|
||||
dialog::add_action_push(edit_difficulty);
|
||||
|
||||
add_edit(pause_speed);
|
||||
add_edit(view_proper_times);
|
||||
add_edit(time_unit);
|
||||
add_edit(auto_rotate);
|
||||
add_edit(auto_angle);
|
||||
|
||||
dialog::addItem(XLAT("restart game"), 'r');
|
||||
dialog::add_action([] { ads_game::restart(); popScreen(); });
|
||||
|
||||
dialog::addItem(XLAT("refill cheat"), 'R');
|
||||
dialog::add_action([] { init_rsrc(); popScreen(); });
|
||||
|
||||
dialog::addItem("configure keys", 'k');
|
||||
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
|
||||
@ -18,7 +42,7 @@ void game_menu() {
|
||||
add_edit(musicvolume);
|
||||
#endif
|
||||
|
||||
dialog::addItem("RogueViz settings", 'r');
|
||||
dialog::addItem("RogueViz settings", 'v');
|
||||
dialog::add_key_action('r', [] {
|
||||
pushScreen(showSettings);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user