add customcolors option

customcolors (default) and !customcolors toggle whether the
custom colors get applied to the glyphmap.
This commit is contained in:
nhmall
2024-03-24 16:55:23 -04:00
parent f5c3445e80
commit 0b35079acc
8 changed files with 46 additions and 19 deletions

View File

@@ -5229,6 +5229,9 @@ optfn_boolean(
go.opt_need_redraw = TRUE;
go.opt_need_glyph_reset = TRUE;
break;
case opt_customcolors:
go.opt_reset_customizations = TRUE;
break;
case opt_menucolors:
case opt_guicolor:
update_inventory();
@@ -8389,6 +8392,7 @@ doset_simple_menu(void)
go.opt_need_redraw = FALSE;
go.opt_need_glyph_reset = FALSE;
go.opt_reset_customizations = FALSE;
pick_cnt = select_menu(tmpwin, PICK_ONE, &pick_list);
/* note: without the complication of a preselected entry, a PICK_ONE
menu returning pick_cnt > 0 implies exactly 1 */
@@ -8479,7 +8483,11 @@ doset_simple(void)
}
if (go.opt_need_promptstyle)
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
/*
if (go.opt_reset_customizations) {
reset_customizations();
docrt_flags(opt_crt_flags);
}
/*
* I don't think the status window requires updating between
* simplemenu iterations.
if (disp.botl || disp.botlx) {
@@ -8729,6 +8737,10 @@ doset(void) /* changing options via menu by Per Liboriussen */
if (go.opt_need_glyph_reset) {
reset_glyphmap(gm_optionchange);
}
if (go.opt_reset_customizations) {
reset_customizations();
docrt();
}
if (go.opt_need_redraw) {
check_gold_symbol();
reglyph_darkroom();