use_menu_glyphs

This commit is contained in:
Kestrel
2025-04-03 19:49:39 -05:00
committed by PatR
parent 31e03f1c68
commit 9e1e032ea8
7 changed files with 21 additions and 9 deletions

View File

@@ -334,6 +334,7 @@ struct instance_flags {
boolean tux_penalty; /* True iff hero is a monk and wearing a suit */
boolean use_background_glyph; /* use background glyph when appropriate */
boolean use_menu_color; /* use color in menus; only if wc_color */
boolean use_menu_glyphs; /* use object glyphs in menus, if the port supports it */
#ifdef STATUS_HILITES
long hilite_delta; /* number of moves to leave a temp hilite lit */
long unhilite_deadline; /* time when oldest temp hilite should be unlit */

View File

@@ -789,6 +789,9 @@ static int optfn_##a(int, int, boolean, char *, char *);
NHOPTB(use_inverse, Advanced, 0, opt_out, set_in_game,
On, Yes, No, No, NoAlias, &iflags.wc_inverse, Term_False,
"display detected monsters in inverse")
NHOPTB(use_menu_glyphs, Advanced, 0, opt_out, set_in_game,
On, Yes, No, No, NoAlias, &iflags.use_menu_glyphs,
Term_False, "show object glyphs in menu items")
NHOPTB(use_truecolor, Advanced, 0, opt_in, set_in_config,
Off, Yes, No, No, "use_truecolour",
&iflags.use_truecolor, Term_False,

View File

@@ -34,6 +34,7 @@ typedef struct tty_mi {
anything identifier; /* user identifier */
long count; /* user count */
char *str; /* description string (including accelerator) */
glyph_info glyphinfo; /* glyph */
int attr; /* string attribute */
int color; /* string color */
boolean selected; /* TRUE if selected by user */