mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-27 04:52:50 +00:00
dialog::DONT_SHOW to prevent showing the map in number dialogs
This commit is contained in:
parent
e58e3c9bcb
commit
392611045a
@ -740,6 +740,7 @@ namespace dialog {
|
|||||||
|
|
||||||
void drawNumberDialog() {
|
void drawNumberDialog() {
|
||||||
cmode = sm::NUMBER | dialogflags;
|
cmode = sm::NUMBER | dialogflags;
|
||||||
|
if(numberdark < DONT_SHOW)
|
||||||
gamescreen(numberdark);
|
gamescreen(numberdark);
|
||||||
init(ne.title);
|
init(ne.title);
|
||||||
addInfo(ne.s);
|
addInfo(ne.s);
|
||||||
@ -1126,6 +1127,7 @@ namespace dialog {
|
|||||||
|
|
||||||
void string_edit_dialog() {
|
void string_edit_dialog() {
|
||||||
cmode = sm::NUMBER | dialogflags;
|
cmode = sm::NUMBER | dialogflags;
|
||||||
|
if(numberdark < DONT_SHOW)
|
||||||
gamescreen(numberdark);
|
gamescreen(numberdark);
|
||||||
init(ne.title);
|
init(ne.title);
|
||||||
addInfo(view_edited_string());
|
addInfo(view_edited_string());
|
||||||
|
3
hyper.h
3
hyper.h
@ -2048,6 +2048,9 @@ namespace dialog {
|
|||||||
inline reaction_t add_confirmation(const reaction_t& act) {
|
inline reaction_t add_confirmation(const reaction_t& act) {
|
||||||
return [act] { do_if_confirmed(act); };
|
return [act] { do_if_confirmed(act); };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int numberdark;
|
||||||
|
static const int DONT_SHOW = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkStunKill(cell *dest);
|
void checkStunKill(cell *dest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user