mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-28 07:52:53 +00:00
racing:: changed the order in the menu
This commit is contained in:
parent
2f1b3562c5
commit
7100dc0de6
22
racing.cpp
22
racing.cpp
@ -833,16 +833,6 @@ struct race_configurer {
|
|||||||
|
|
||||||
dialog::init(XLAT("Racing"));
|
dialog::init(XLAT("Racing"));
|
||||||
|
|
||||||
dialog::addSelItem("track name", editing_track ? dialog::view_edited_string() : new_track, '/');
|
|
||||||
dialog::add_action([this] () {
|
|
||||||
editing_track = !editing_track;
|
|
||||||
if(editing_track) dialog::start_editing(new_track);
|
|
||||||
});
|
|
||||||
dialog::addItem("play the official track", 'o');
|
|
||||||
dialog::add_action([this] () { new_track = "OFFICIAL"; });
|
|
||||||
dialog::addItem("play a random track", 'r');
|
|
||||||
dialog::add_action([this] () { new_track = random_track_name(); });
|
|
||||||
|
|
||||||
if(bounded)
|
if(bounded)
|
||||||
dialog::addInfo("Racing available only in unbounded worlds.", 0xFF0000);
|
dialog::addInfo("Racing available only in unbounded worlds.", 0xFF0000);
|
||||||
else {
|
else {
|
||||||
@ -918,6 +908,18 @@ struct race_configurer {
|
|||||||
|
|
||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
|
|
||||||
|
dialog::addSelItem("track seed", editing_track ? dialog::view_edited_string() : new_track, '/');
|
||||||
|
dialog::add_action([this] () {
|
||||||
|
editing_track = !editing_track;
|
||||||
|
if(editing_track) dialog::start_editing(new_track);
|
||||||
|
});
|
||||||
|
dialog::addItem("play the official seed", 'o');
|
||||||
|
dialog::add_action([this] () { new_track = "OFFICIAL"; });
|
||||||
|
dialog::addItem("play a random seed", 'r');
|
||||||
|
dialog::add_action([this] () { new_track = random_track_name(); });
|
||||||
|
|
||||||
|
dialog::addBreak(100);
|
||||||
|
|
||||||
dialog::addSelItem(XLAT("best scores to show as ghosts"), its(ghosts_to_show), 'g');
|
dialog::addSelItem(XLAT("best scores to show as ghosts"), its(ghosts_to_show), 'g');
|
||||||
dialog::add_action([]() { dialog::editNumber(ghosts_to_show, 0, 100, 1, 5, "best scores to show as ghosts", ""); });
|
dialog::add_action([]() { dialog::editNumber(ghosts_to_show, 0, 100, 1, 5, "best scores to show as ghosts", ""); });
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user