github issue #481 - highlighting for #overview
Report states that the dungeon overview menu doesn't honor the 'menu_headings' option. However, dungeon overview is not a menu. Despite that, switch its hardcoded use of bold and inverse to use the option value instead. It doesn't really need two different highlights and this allows user to control which video attribute gets used. If someone wants different highlighting for overview than for menus, they're out of luck. Fixes #481
This commit is contained in:
@@ -3257,7 +3257,7 @@ print_mapseen(winid win, mapseen *mptr,
|
||||
Sprintf(buf, "%s: levels %d to %d",
|
||||
g.dungeons[dnum].dname, depthstart,
|
||||
depthstart + g.dungeons[dnum].dunlev_ureached - 1);
|
||||
putstr(win, !final ? ATR_INVERSE : 0, buf);
|
||||
putstr(win, !final ? iflags.menu_headings : 0, buf);
|
||||
}
|
||||
|
||||
/* calculate level number */
|
||||
@@ -3282,7 +3282,7 @@ print_mapseen(winid win, mapseen *mptr,
|
||||
(!final || (final == 1 && how == ASCENDED)) ? "are"
|
||||
: (final == 1 && how == ESCAPED) ? "left from"
|
||||
: "were");
|
||||
putstr(win, !final ? ATR_BOLD : 0, buf);
|
||||
putstr(win, !final ? iflags.menu_headings : 0, buf);
|
||||
|
||||
if (mptr->flags.forgot)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user