mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
vr:: emptyscreen() so that VR knows what to do if there is no screen
This commit is contained in:
parent
198decfd64
commit
9844125d78
@ -2790,6 +2790,7 @@ void list_setting::show_edit_option(char key) {
|
|||||||
dialog::addSelItem(XLAT(menu_item_name), XLAT(options[get_value()].first), key);
|
dialog::addSelItem(XLAT(menu_item_name), XLAT(options[get_value()].first), key);
|
||||||
dialog::add_action_push([this] {
|
dialog::add_action_push([this] {
|
||||||
add_to_changed(this);
|
add_to_changed(this);
|
||||||
|
gamescreen(2);
|
||||||
dialog::init(XLAT(menu_item_name));
|
dialog::init(XLAT(menu_item_name));
|
||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
int q = isize(options);
|
int q = isize(options);
|
||||||
|
@ -667,6 +667,7 @@ EX namespace dialog {
|
|||||||
EX void drawColorDialog() {
|
EX void drawColorDialog() {
|
||||||
cmode = sm::NUMBER | dialogflags;
|
cmode = sm::NUMBER | dialogflags;
|
||||||
if(cmode & sm::SIDE) gamescreen(0);
|
if(cmode & sm::SIDE) gamescreen(0);
|
||||||
|
else emptyscreen();
|
||||||
|
|
||||||
dcenter = vid.xres/2;
|
dcenter = vid.xres/2;
|
||||||
dwidth = vid.xres;
|
dwidth = vid.xres;
|
||||||
@ -875,6 +876,7 @@ EX namespace dialog {
|
|||||||
cmode = sm::NUMBER | dialogflags;
|
cmode = sm::NUMBER | dialogflags;
|
||||||
if(numberdark < DONT_SHOW)
|
if(numberdark < DONT_SHOW)
|
||||||
gamescreen(numberdark);
|
gamescreen(numberdark);
|
||||||
|
else emptyscreen();
|
||||||
init(ne.title);
|
init(ne.title);
|
||||||
addInfo(ne.s);
|
addInfo(ne.s);
|
||||||
if(ne.intval && ne.sc.direct == &identity_f)
|
if(ne.intval && ne.sc.direct == &identity_f)
|
||||||
@ -1267,6 +1269,7 @@ EX namespace dialog {
|
|||||||
cmode = sm::NUMBER | dialogflags;
|
cmode = sm::NUMBER | dialogflags;
|
||||||
if(numberdark < DONT_SHOW)
|
if(numberdark < DONT_SHOW)
|
||||||
gamescreen(numberdark);
|
gamescreen(numberdark);
|
||||||
|
else emptyscreen();
|
||||||
init(ne.title);
|
init(ne.title);
|
||||||
addInfo(view_edited_string());
|
addInfo(view_edited_string());
|
||||||
addBreak(100);
|
addBreak(100);
|
||||||
|
Loading…
Reference in New Issue
Block a user