mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
test command in custom land list
This commit is contained in:
parent
5f8d250940
commit
3e30a7ded1
12
landlock.cpp
12
landlock.cpp
@ -826,7 +826,7 @@ EX const int walls_when = 388;
|
||||
EX void mark_tamper() { cheater++; }
|
||||
|
||||
EX void customize_land_in_list(eLand l) {
|
||||
cmode = sm::DARKEN; gamescreen();
|
||||
cmode = sm::SIDE | sm::MAYDARK; gamescreen();
|
||||
|
||||
dialog::init(XLATN(linf[l].name), linf[l].color);
|
||||
|
||||
@ -859,12 +859,20 @@ EX void customize_land_in_list(eLand l) {
|
||||
dialog::get_ne().reaction = mark_tamper;
|
||||
});
|
||||
|
||||
gen_landvisited();
|
||||
if(landvisited[l]) {
|
||||
dialog::addItem(XLAT("test"), 'T');
|
||||
dialog::add_action([l] {
|
||||
stop_game(); firstland = specialland = l; start_game();
|
||||
});
|
||||
}
|
||||
|
||||
dialog::addBack();
|
||||
dialog::display();
|
||||
}
|
||||
|
||||
EX void customize_land_list() {
|
||||
cmode = sm::DARKEN; gamescreen();
|
||||
cmode = sm::SIDE | sm::MAYDARK; gamescreen();
|
||||
dialog::init(XLAT("custom land list"));
|
||||
if(dialog::infix != "") mouseovers = dialog::infix;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user