Show and change option settings.
Default key is \(oqO\(cq.
Precede with the \(oqm\(cq prefix to show advanced options.
+.lp "#optionsfull"
+Show advanced game option settings.
.lp #overview
Display information you've discovered about the dungeon.
Any visited
Show and change option settings. Default key is `{\tt O}'.
Precede with the {\tt m} prefix to show advanced options.
%.lp
+\item[\tb{\#optionsfull}]
+Show advanced game option settings.
+%.lp
\item[\tb{\#overview}]
Display information you've discovered about the dungeon. Any visited
level (unless forgotten due to amnesia) with an annotation is included,
extern void initoptions_finish(void);
extern boolean parseoptions(char *, boolean, boolean);
extern char *get_option_value(const char *);
+extern int doset_simple(void);
extern int doset(void);
extern int dotogglepickup(void);
extern void option_help(void);
extern int dosh(void); /**/
extern int dodiscovered(void); /**/
extern int doclassdisco(void); /**/
+extern int doset_simple(void); /**/
extern int doset(void); /**/
extern int dotogglepickup(void); /**/
extern int dowhatis(void); /**/
dosacrifice, AUTOCOMPLETE | CMD_M_PREFIX, NULL },
{ 'o', "open", "open a door",
doopen, 0, NULL },
- { 'O', "options", "show option settings, possibly change them",
- doset, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
+ { 'O', "options", "show option settings",
+ doset_simple, IFBURIED | GENERALCMD | CMD_M_PREFIX, NULL },
+ { '\0', "optionsfull", "show all option settings, possibly change them",
+ doset, IFBURIED | GENERALCMD, NULL },
/* #overview used to need autocomplete and has retained that even
after being assigned to ^O [old wizard mode ^O is now #wizwhere] */
{ C('o'), "overview", "show a summary of the explored dungeon",
static int count_menucolors(void);
static boolean parse_role_opts(int, boolean, const char *,
char *, char **);
-static int doset_simple(void);
static unsigned int longest_option_name(int, int);
static void doset_add_menu(winid, const char *, int, int);
static int handle_add_list_remove(const char *, int);
}
/* #options - the user friendly version */
-static int
+int
doset_simple(void)
{
static boolean made_fmtstr = FALSE;
boolean *bool_p;
const char *name;
+ if (iflags.menu_requested)
+ return doset();
+
if (!made_fmtstr) {
Sprintf(fmtstr_doset, "%%s%%-%us [%%s]",
longest_option_name(set_gameview, set_in_game));
return ECMD_OK;
}
-/* the #options command */
+/* the #optionsfull command */
int
doset(void) /* changing options via menu by Per Liboriussen */
{
gavehelp = FALSE, skiphelp = !iflags.cmdassist;
int clr = 0;
- if (!iflags.menu_requested)
- return doset_simple();
-
/* if we offer '?' as a choice and it is the only thing chosen,
we'll end up coming back here after showing the explanatory text */
rerun: