bool always_small_levels; /* Always create unusually small dungeon levels */
bool empty_levels; /* Allow empty 'on_defeat_arena_monster' levels */
bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
-bool keep_subwindows; /* Show sub-windows even when Hengband is not in focus */
bool last_words; /* Leave last words when your character dies */
bool auto_dump; /* Dump a character record automatically */
bool auto_debug_save; /* Dump a debug savedata every key input */
extern bool always_small_levels; /* Always create unusually small dungeon levels */
extern bool empty_levels; /* Allow empty 'on_defeat_arena_monster' levels */
extern bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
-extern bool keep_subwindows; /* Show sub-windows even when Hengband is not in focus */
extern bool last_words; /* Leave last words when your character dies */
extern bool auto_dump; /* Dump a character record automatically */
extern bool auto_debug_save; /* Dump a debug savedata every key input */
{ &bound_walls_perm, FALSE, OPT_PAGE_GAMEPLAY, 2, 1, "bound_walls_perm", _("ダンジョンの外壁を永久岩にする", "Boundary walls become 'permanent wall'") },
- { &keep_subwindows, TRUE, OPT_PAGE_GAMEPLAY, 4, 8, "keep_subwindows", _("フォーカスが外れてもサブウィンドウを表示する", "Show sub-windows even when Hengband is not in focus") },
-
{ &last_words, TRUE, OPT_PAGE_GAMEPLAY, 0, 28, "last_words", _("キャラクターが死んだ時遺言をのこす", "Leave last words when your character dies") },
{ &auto_dump, FALSE, OPT_PAGE_GAMEPLAY, 4, 5, "auto_dump", _("自動的にキャラクターの記録をファイルに書き出す", "Dump a character record automatically") },
#define IDM_WINDOW_D_HGT_6 276
#define IDM_WINDOW_D_HGT_7 277
+#define IDM_WINDOW_KEEP_SUBWINDOWS 280
+
#define IDM_OPTIONS_NO_GRAPHICS 400
#define IDM_OPTIONS_OLD_GRAPHICS 401
#define IDM_OPTIONS_NEW_GRAPHICS 402
*/
static bool can_use_sound = FALSE;
+/*
+ * Show sub-windows even when Hengband is not in focus
+ */
+static bool keep_subwindows = TRUE;
+
#define SAMPLE_SOUND_MAX 16
/*
* An array of sound file names
WritePrivateProfileString("Angband", "SaveFile", savefile, ini_file);
}
+ strcpy(buf, keep_subwindows ? "1" : "0");
+ WritePrivateProfileString("Angband", "KeepSubwindows", buf, ini_file);
+
for (int i = 0; i < MAX_TERM_DATA; ++i) {
save_prefs_aux(i);
}
strncpy(savefile, tmp, strlen(tmp));
}
+ keep_subwindows = (GetPrivateProfileInt("Angband", "KeepSubwindows", 0, ini_file) != 0);
for (int i = 0; i < MAX_TERM_DATA; ++i) {
load_prefs_aux(i);
}
EnableMenuItem(hm, IDM_WINDOW_D_HGT_0 + i, MF_BYCOMMAND | MF_ENABLED);
}
}
+ EnableMenuItem(hm, IDM_WINDOW_KEEP_SUBWINDOWS, MF_BYCOMMAND | MF_ENABLED);
+ CheckMenuItem(hm, IDM_WINDOW_KEEP_SUBWINDOWS, (keep_subwindows ? MF_CHECKED : MF_UNCHECKED));
EnableMenuItem(hm, IDM_OPTIONS_NO_GRAPHICS, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
EnableMenuItem(hm, IDM_OPTIONS_OLD_GRAPHICS, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
term_window_resize(td);
break;
}
+ case IDM_WINDOW_KEEP_SUBWINDOWS: {
+ keep_subwindows = !keep_subwindows;
+ break;
+ }
case IDM_OPTIONS_NO_GRAPHICS: {
if (!inkey_flag) {
plog("You may not do that right now.");