^X tabbed field support

This commit is contained in:
nethack.allison
2003-09-27 22:37:52 +00:00
parent 9f0949394f
commit d024c09602
2 changed files with 10 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ poles and grappling hook worked thru walls when wearing Eyes of the Overworld
more tweaks to fog cloud behavior more tweaks to fog cloud behavior
when dismounting by choice and unimpaired, try not to land on a boulder when dismounting by choice and unimpaired, try not to land on a boulder
casting stone-to-flesh on self while wielding a statue caused problems casting stone-to-flesh on self while wielding a statue caused problems
add tab support to menu strings for control-x minimal_enlightenment()
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes

View File

@@ -1134,9 +1134,16 @@ minimal_enlightenment()
anything any; anything any;
int genidx, n; int genidx, n;
char buf[BUFSZ], buf2[BUFSZ]; char buf[BUFSZ], buf2[BUFSZ];
static const char fmtstr[] = "%-15s: %-12s"; static const char untabbed_fmtstr[] = "%-15s: %-12s";
static const char deity_fmtstr[] = "%-17s%s"; static const char untabbed_deity_fmtstr[] = "%-17s%s";
static const char tabbed_fmtstr[] = "%s:\t%-12s";
static const char tabbed_deity_fmtstr[] = "%s\t%s";
static const char *fmtstr;
static const char *deity_fmtstr;
fmtstr = iflags.menu_tab_sep ? tabbed_fmtstr : untabbed_fmtstr;
deity_fmtstr = iflags.menu_tab_sep ?
tabbed_deity_fmtstr : untabbed_deity_fmtstr;
any.a_void = 0; any.a_void = 0;
buf[0] = buf2[0] = '\0'; buf[0] = buf2[0] = '\0';
tmpwin = create_nhwindow(NHW_MENU); tmpwin = create_nhwindow(NHW_MENU);