1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 06:45:59 +00:00

do not use emptyscreen. Use gamescreen but with NOSCR

This commit is contained in:
Zeno Rogue
2025-08-25 21:51:57 +02:00
parent 02ba3ee404
commit 6b30441ea1
9 changed files with 29 additions and 35 deletions

View File

@@ -334,8 +334,7 @@ string fname = "horizontal.nrl";
ld total_stars = 0;
void pick_level() {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT("select the track"), 0xC0C0FFFF, 150, 100);
ld cur_stars = 0;
for(auto l: all_levels) {
@@ -388,8 +387,7 @@ void pick_level() {
void layer_selection_screen() {
poly_outline = 0xFF;
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT("layer selection"), 0xC0C0FFFF, 150, 100);
dialog::addBreak(50);
auto layers = curlev->gen_layer_list();
@@ -404,8 +402,7 @@ void layer_selection_screen() {
void pick_game() {
clearMessages();
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init();
poly_outline = 0xFF;
dialog::addBigItem(curlev->name, 't');
@@ -456,8 +453,7 @@ void nil_set_perspective() {
}
void nil_projection() {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT("projection of Nil"), 0xC0C0FFFF, 150, 100);
dialog::addBoolItem("geodesics", pmodel == mdGeodesic, 'g');
dialog::add_action([] { popScreen(); nil_set_geodesic(); });
@@ -472,8 +468,7 @@ void nil_projection() {
}
void settings() {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT("settings"), 0xC0C0FFFF, 150, 100);
add_edit(aimspeed_key_x);
add_edit(aimspeed_key_y);
@@ -530,8 +525,7 @@ template<class T, class U, class V> void replays_of_type(vector<T>& v, const U&
dialog::addItem(r.name, 'a');
dialog::add_action([&v, i, loader, ghost_loader] {
pushScreen([&v, i, loader, ghost_loader] {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT(planning_mode ? "saved plan" : "replay"), 0xC0C0FFFF, 150, 100);
dialog::addInfo(v[i].name);
@@ -567,8 +561,7 @@ template<class T, class U, class V> void replays_of_type(vector<T>& v, const U&
#if CAP_SAVE
void replays() {
cmode = sm::VR_MENU;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT(planning_mode ? "saved plans" : "replays"), 0xC0C0FFFF, 150, 100);
if(!planning_mode) replays_of_type(curlev->manual_replays, [] (manual_replay& r) {
view_replay = false;
@@ -666,9 +659,8 @@ void help_instruments() {
void main_menu() {
clearMessages();
cmode = sm::VR_MENU;
poly_outline = 0xFF;
emptyscreen();
cmode = sm::VR_MENU | sm::NOSCR; gamescreen();
dialog::init(XLAT("Nil Rider"), 0xC0C0FFFF, 150, 100);
dialog::addItem("continue", 'c');