#define DIRTY_MODE 0x04
#define DIRTY_SCREEN 0x08
#define DIRTY_NOT_FOUND 0x10
+#define DIRTY_NO_SEARCH 0x20
/*
* In-game editor of Object Auto-picker/Destoryer
if (edit_mode)
prt("^Q ESC ¤Ç¥³¥Þ¥ó¥É¥â¡¼¥É¤Ø°Ü¹Ô¡¢Ä̾ï¤Îʸ»ú¤Ï¤½¤Î¤Þ¤ÞÆþÎÏ", 0, 0);
else
- prt("q _ ¤Ç½ªÎ»¡¢hjkl2468 ¤Ç°ÜÆ°¡¢^Q a i ¤ÇÆþÎϥ⡼¥É", 0, 0);
+ prt("q _ ¤Ç½ªÎ»¡¢hjkl2468 ¤Ç°ÜÆ°¡¢^Q a i ¤ÇÆþÎϥ⡼¥É¡¢/ n N ¤Ç¸¡º÷", 0, 0);
#else
if (edit_mode)
prt("Press ^Q ESC to command mode, any letters to insert", 0, 0);
else
- prt("Press q _ to quit, hjkl2468 to move, ^Q a i to insert mode", 0, 0);
+ prt(format("Press q _ to quit, %s to move, ^Q a i to insert mode, /nN to find", rogue_like_commands ? "hjkl" : "2468"), 0, 0);
#endif
/* Display current position */
prt (format("(%d,%d)", cx, cy), 0, 70);
/* Display information when updated */
- if (old_cy != cy || (dirty_flags & (DIRTY_ALL | DIRTY_NOT_FOUND)) || dirty_line == cy)
+ if (old_cy != cy || (dirty_flags & (DIRTY_ALL | DIRTY_NOT_FOUND | DIRTY_NO_SEARCH)) || dirty_line == cy)
{
/* Clear information line */
Term_erase(0, hgt - 3 + 1, wid);
prt(format("Pattern not found: %s", search_str), hgt - 3 + 1, 0);
#endif
}
+ else if (dirty_flags & DIRTY_NO_SEARCH)
+ {
+#ifdef JP
+ prt("¸¡º÷Ãæ¤Î¥Ñ¥¿¡¼¥ó¤¬¤¢¤ê¤Þ¤»¤ó('/'¤Ç¸¡º÷)¡£", hgt - 3 + 1, 0);
+#else
+ prt("No pattern to search. (Press '/' to search.)", hgt - 3 + 1, 0);
+#endif
+ }
else if (lines_list[cy][0] == '#')
{
#ifdef JP
{
if (!search_for_string(lines_list, search_str, &cx, &cy, TRUE)) dirty_flags |= DIRTY_NOT_FOUND;
}
+ else
+ {
+ dirty_flags |= DIRTY_NO_SEARCH;
+ }
break;
case 'N':
if (search_o_ptr)
{
if (!search_for_string(lines_list, search_str, &cx, &cy, FALSE)) dirty_flags |= DIRTY_NOT_FOUND;
}
+ else
+ {
+ dirty_flags |= DIRTY_NO_SEARCH;
+ }
break;
}
}