'm #overview' enhancement
When using the 'm' prefix with #overview to get a menu of visited levels and then picking one to annotate, replace the generic prompt "what do you want to call this dungeon level?" with more specific location information. Location details are visible while within the menu but as soon as you choose something that goes away.
This commit is contained in:
@@ -2650,7 +2650,29 @@ query_annotation(d_level *lev)
|
||||
getlin(tmpbuf, nbuf);
|
||||
} else
|
||||
#endif
|
||||
getlin("What do you want to call this dungeon level?", nbuf);
|
||||
{
|
||||
char qbuf[QBUFSZ], lbuf[QBUFSZ]; /* level description */
|
||||
|
||||
if (!lev || on_level(&u.uz, lev)) {
|
||||
Strcpy(lbuf, "this dungeon level");
|
||||
} else {
|
||||
int dflgs = (lev->dnum == u.uz.dnum) ? 0 : 2;
|
||||
d_level save_uz = u.uz;
|
||||
|
||||
u.uz = *lev;
|
||||
(void) describe_level(lbuf, dflgs);
|
||||
u.uz = save_uz;
|
||||
|
||||
(void) strsubst(lbuf, "Dlvl:", "level ");
|
||||
/* even though we've told describe_level() not to append
|
||||
a trailing space (by not including '1' in dflgs), the
|
||||
level number is formatted with %-2d so single digit
|
||||
values will end up with one anyway; remove it */
|
||||
(void) trimspaces(lbuf);
|
||||
}
|
||||
Snprintf(qbuf, sizeof qbuf, "What do you want to call %s?", lbuf);
|
||||
getlin(qbuf, nbuf);
|
||||
}
|
||||
|
||||
/* empty input or ESC means don't add or change annotation;
|
||||
space-only means discard current annotation without adding new one */
|
||||
|
||||
Reference in New Issue
Block a user