merge new use_menu_glyphs option with menu_objsyms
The two options are very similar but probably mutually exclusive except when using look-here and look-into-container (both via ':') with the default setting for 'sortloot', or with inventory when 'sortpack' has been toggled off. This removes 'use_menu_glyphs' and changes 'menu_objsyms' from a boolean to a compound taking six possible values: | 0: no object symbols in menus, | 1: append object class symbol to object header lines (same as old |menu_objsyms boolean), | 2: include object symbol in menu entry lines for objects (same as |recently added use_menu_glyphs), | 3: both 1 and 2, | 4: display as #2 but only if the menu lacks class header lines, | 5: if header lines are present, display as #1; if headers are not |present, then display as #4 (which will implicitly be #2). Default is #4. Effectively replaces the options portion of pull request #1406 and retains the functionality, but not as default for normal menus. Guidebook.tex is only partially updated. Someone else will need to finish that.
This commit is contained in:
@@ -442,9 +442,9 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
||||
No, Yes, No, No, NoAlias, "jump to the last page in a menu")
|
||||
NHOPTC(menu_next_page, Advanced, 4, opt_in, set_in_config,
|
||||
No, Yes, No, No, NoAlias, "go to the next menu page")
|
||||
NHOPTB(menu_objsyms, Advanced, 0, opt_in, set_in_game,
|
||||
Off, Yes, No, No, NoAlias, &iflags.menu_head_objsym,
|
||||
Term_False, "show object symbols in menus")
|
||||
NHOPTC(menu_objsyms, Advanced, 12, opt_in, set_in_game,
|
||||
Yes, Yes, No, Yes, "use_menu_glyphs",
|
||||
"show object symbols in menus")
|
||||
#ifdef TTY_GRAPHICS
|
||||
NHOPTB(menu_overlay, Advanced, 0, opt_in, set_in_game,
|
||||
On, Yes, No, No, NoAlias, &iflags.menu_overlay, Term_False,
|
||||
@@ -789,9 +789,6 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user