1 #include "cmd-visual/cmd-map.h"
2 #include "autopick/autopick-methods-table.h"
3 #include "autopick/autopick-util.h"
4 #include "io/input-key-acceptor.h"
5 #include "system/player-type-definition.h"
6 #include "term/screen-processor.h"
7 #include "view/display-map.h"
8 #include "window/main-window-util.h"
12 * Display a "small-scale" map of the dungeon for the player
14 * Currently, the "player" is displayed on the map.
16 void do_cmd_view_map(PlayerType *player_ptr)
19 prt(_("お待ち下さい...", "Please wait..."), 0, 0);
25 display_map(player_ptr, &cy, &cx);
26 if (autopick_list.empty() || player_ptr->wild_mode) {
27 const auto &[wid, hgt] = term_get_size();
28 constexpr auto msg = _("何かキーを押すとゲームに戻ります", "Hit any key to continue");
29 const auto center_x = (wid - std::string_view(msg).length()) / 2;
30 put_str(msg, hgt - 1, center_x);
37 display_autopick = ITEM_DISPLAY;
39 const auto &[wid, hgt] = term_get_size();
40 int row_message = hgt - 1;
41 put_str(_("何かキーを押してください('M':拾う 'N':放置 'D':M+N 'K':壊すアイテムを表示)",
42 " Hit M, N(for ~), K(for !), or D(same as M+N) to display auto-picker items."),
48 flag = (DO_AUTOPICK | DO_QUERY_AUTOPICK);
49 } else if ('N' == i) {
51 } else if ('K' == i) {
52 flag = DO_AUTODESTROY;
53 } else if ('D' == i) {
54 flag = (DO_AUTOPICK | DO_QUERY_AUTOPICK | DONT_AUTOPICK);
60 if (~display_autopick & flag) {
61 display_autopick |= flag;
63 display_autopick &= ~flag;
66 display_map(player_ptr, &cy, &cx);