#include "angband.h"
#include "cmd-pet.h"
+#include "world.h"
+#include "player-status.h"
/*
{
int day, hour, min;
FILE *fff = NULL;
- char file_name[80];
+ GAME_TEXT file_name[MAX_NLEN];
char buf[1024];
cptr note_level = "";
bool do_level = TRUE;
}
case NIKKI_RAND_QUEST_C:
{
- char name[80];
+ GAME_TEXT name[MAX_NLEN];
strcpy(name, r_name+r_info[quest[num].r_idx].name);
fprintf(fff, _(" %2d:%02d %20s ランダムクエスト(%s)を達成した。\n",
" %2d:%02d %20s completed random quest '%s'\n"), hour, min, note_level, name);
}
case NIKKI_RAND_QUEST_F:
{
- char name[80];
+ GAME_TEXT name[MAX_NLEN];
strcpy(name, r_name+r_info[quest[num].r_idx].name);
fprintf(fff, _(" %2d:%02d %20s ランダムクエスト(%s)から逃げ出した。\n",
" %2d:%02d %20s ran away from quest '%s'.\n"), hour, min, note_level, name);
static void do_cmd_disp_nikki(void)
{
char nikki_title[256];
- char file_name[80];
+ GAME_TEXT file_name[MAX_NLEN];
char buf[1024];
char tmp[80];
#ifdef JP
*/
static void do_cmd_erase_nikki(void)
{
- char file_name[80];
+ GAME_TEXT file_name[MAX_NLEN];
char buf[256];
FILE *fff = NULL;
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save the screen */
screen_save();
/* Interact until done */
while (1)
{
- /* Clear screen */
Term_clear();
/* Ask for a choice */
bell();
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
}
p_ptr->notice |= (PN_COMBINE | PN_REORDER);
- /* Update torch */
p_ptr->update |= (PU_TORCH);
-
p_ptr->update |= (PU_BONUS | PU_HP | PU_MANA | PU_SPELLS);
-
- /* Forget lite/view */
p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
-
- /* Update lite/view */
p_ptr->update |= (PU_VIEW | PU_LITE | PU_MON_LITE);
-
- /* Update monsters */
p_ptr->update |= (PU_MONSTERS);
- /* Redraw everything */
p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL | PW_PLAYER);
-
p_ptr->window |= (PW_MESSAGE | PW_OVERHEAD | PW_DUNGEON | PW_MONSTER | PW_OBJECT);
update_playtime();
- /* Hack -- update */
handle_stuff();
if (p_ptr->prace == RACE_ANDROID) calc_android_exp();
/* Activate */
Term_activate(angband_term[j]);
-
- /* Redraw */
Term_redraw();
-
- /* Refresh */
Term_fresh();
-
- /* Restore */
Term_activate(old);
}
}
char tmp[160];
-
- /* Save the screen */
screen_save();
/* Forever */
{
mode++;
}
-
else
{
bell();
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
-
- /* Redraw everything */
p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
handle_stuff();
*/
void do_cmd_message_one(void)
{
- /* Recall one message XXX XXX XXX */
+ /* Recall one message */
prt(format("> %s", message_str(0)), 0, 0);
}
int wid, hgt;
int num_lines;
- /* Get size */
Term_get_size(&wid, &hgt);
/* Number of message lines in a screen */
/* Start on first message */
i = 0;
-
- /* Save the screen */
screen_save();
-
- /* Clear screen */
Term_clear();
/* Process requests until done */
Term_erase(0, num_lines + 1 - j, 255);
}
- /* Display header XXX XXX XXX */
+ /* Display header */
/* translation */
prt(format(_("以前のメッセージ %d-%d 全部で(%d)", "Message Recall (%d-%d of %d)"),
i, i + j - 1, n), 0, 0);
prt(_("[ 'p' で更に古いもの, 'n' で更に新しいもの, '/' で検索, ESC で中断 ]",
"[Press 'p' for older, 'n' for newer, ..., or ESCAPE]"), hgt - 1, 0);
- /* Get a command */
skey = inkey_special(TRUE);
/* Exit on Escape */
}
else strcpy(shower_str, back_str);
- /* Okay */
continue;
/* Hack -- handle find */
/* Hack -- Error of some kind */
if (i == j) bell();
}
-
- /* Restore the screen */
screen_load();
}
char ch;
int i, k = 0, n = CHEAT_MAX;
char buf[80];
-
- /* Clear screen */
Term_clear();
/* Interact with the player */
{
DIRECTION dir;
- /* Prompt XXX XXX XXX */
+ /* Prompt */
sprintf(buf, _("%s ( リターンで次へ, y/n でセット, ESC で決定 )", "%s (RET to advance, y/n to set, ESC to accept) "), info);
prt(buf, 0, 0);
*/
static void do_cmd_options_autosave(cptr info)
{
- char ch;
-
- int i, k = 0, n = 2;
-
- char buf[80];
-
+ char ch;
+ int i, k = 0, n = 2;
+ char buf[80];
- /* Clear screen */
Term_clear();
/* Interact with the player */
while (TRUE)
{
- /* Prompt XXX XXX XXX */
+ /* Prompt */
sprintf(buf, _("%s ( リターンで次へ, y/n でセット, F で頻度を入力, ESC で決定 ) ",
"%s (RET to advance, y/n to set, 'F' for frequency, ESC to accept) "), info);
/* Display the option text */
sprintf(buf, "%-48s: %s (%s)",
- autosave_info[i].o_desc,
- (*autosave_info[i].o_var ? _("はい ", "yes") : _("いいえ", "no ")),
- autosave_info[i].o_text);
+ autosave_info[i].o_desc,
+ (*autosave_info[i].o_var ? _("はい ", "yes") : _("いいえ", "no ")),
+ autosave_info[i].o_text);
c_prt(a, buf, i + 2, 0);
}
prt(format(_("自動セーブの頻度: %d ターン毎", "Timed autosave frequency: every %d turns"), autosave_freq), 5, 0);
/* Notice options on this "page" */
if (option_info[i].o_page == page) opt[n++] = i;
}
-
-
- /* Clear screen */
Term_clear();
/* Interact with the player */
{
DIRECTION dir;
- /* Prompt XXX XXX XXX */
+ /* Prompt */
sprintf(buf, _("%s (リターン:次, %sESC:終了, ?:ヘルプ) ", "%s (RET:next, %s, ?:help) "),
info, browse_only ? _("", "ESC:exit") : _("y/n:変更, ", "y/n:change, ESC:accept"));
prt(buf, 0, 0);
old_flag[j] = window_flag[j];
}
-
- /* Clear screen */
Term_clear();
/* Interact */
while (go)
{
- /* Prompt XXX XXX XXX */
+ /* Prompt */
prt(_("ウィンドウ・フラグ (<方向>で移動, tでチェンジ, y/n でセット, ESC)", "Window Flags (<dir>, t, y, n, ESC) "), 0, 0);
/* Display the windows */
/* Activate */
Term_activate(angband_term[j]);
-
- /* Erase */
Term_clear();
-
- /* Refresh */
Term_fresh();
-
- /* Restore */
Term_activate(old);
}
}
char k;
int d, skey;
TERM_LEN i, y = 0;
-
- /* Save the screen */
screen_save();
/* Interact */
/* Does not list cheat option when cheat option is off */
if (!p_ptr->noscore && !allow_debug_opts) n--;
-
- /* Clear screen */
Term_clear();
/* Why are we here */
}
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
/* Hack - Redraw equippy chars */
* Ask for a "user pref line" and process it
* @return なし
* @details
- * XXX XXX XXX Allow absolute file names?
+ * Allow absolute file names?
*/
void do_cmd_pref(void)
{
int n = 0;
char tmp[1024];
- /* Flush */
flush();
/* Do not process macros */
/* Terminate */
buf[n] = '\0';
- /* Flush */
flush();
-
/* Convert the trigger */
ascii_to_text(tmp, buf);
* @details
* <pre>
* Note that both "flush()" calls are extremely important. This may
- * no longer be true, since "util.c" is much simpler now. XXX XXX XXX
+ * no longer be true, since "util.c" is much simpler now.
* </pre>
*/
static void do_cmd_macro_aux_keymap(char *buf)
{
char tmp[1024];
-
- /* Flush */
flush();
-
/* Get a key */
buf[0] = inkey();
buf[1] = '\0';
-
/* Convert to ascii */
ascii_to_text(tmp, buf);
/* Hack -- display the trigger */
Term_addstr(-1, TERM_WHITE, tmp);
-
- /* Flush */
flush();
}
* <pre>
* Note that the macro "action" must be defined before the trigger.
*
- * Could use some helpful instructions on this page. XXX XXX XXX
+ * Could use some helpful instructions on this page.
* </pre>
*/
void do_cmd_macros(void)
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save screen */
screen_save();
/* Process requests until done */
while (1)
{
- /* Clear screen */
Term_clear();
-
- /* Describe */
prt(_("[ マクロの設定 ]", "Interact with Macros"), 2, 0);
/* Describe that action */
/* Prompt */
prt(_("コマンド: ", "Command: "), 16, 0);
- /* Get a command */
i = inkey();
/* Leave */
bell();
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Load screen */
screen_load();
}
char tmp[160];
char buf[1024];
bool need_redraw = FALSE;
- const char *empty_symbol = "<< ? >>";
+ cptr empty_symbol = "<< ? >>";
if (use_bigtile) empty_symbol = "<< ?? >>";
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save the screen */
screen_save();
/* Interact until done */
while (1)
{
- /* Clear screen */
Term_clear();
/* Ask for a choice */
/* Dump objects */
for (k_idx = 0; k_idx < max_k_idx; k_idx++)
{
- char o_name[80];
+ GAME_TEXT o_name[MAX_NLEN];
object_kind *k_ptr = &k_info[k_idx];
/* Skip non-entries */
Term_putstr(0, 22, -1, TERM_WHITE,
_("コマンド (n/N/^N/a/A/^A/c/C/^C/v/V/^V): ", "Command (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "));
- /* Get a command */
i = inkey();
/* All done */
break;
case 'v':
do_cmd_knowledge_monsters(&need_redraw, TRUE, r);
-
- /* Clear screen */
Term_clear();
print_visuals_menu(choice_msg);
break;
Term_putstr(0, 22, -1, TERM_WHITE,
_("コマンド (n/N/^N/a/A/^A/c/C/^C/v/V/^V): ", "Command (n/N/^N/a/A/^A/c/C/^C/v/V/^V): "));
- /* Get a command */
i = inkey();
/* All done */
break;
case 'v':
do_cmd_knowledge_objects(&need_redraw, TRUE, k);
-
- /* Clear screen */
Term_clear();
print_visuals_menu(choice_msg);
break;
"Command (n/N/^N/a/A/^A/c/C/^C/l/L/^L/d/D/^D/v/V/^V): ");
#endif
- /* Get a command */
i = inkey();
/* All done */
break;
case 'v':
do_cmd_knowledge_features(&need_redraw, TRUE, f, &lighting_level);
-
- /* Clear screen */
Term_clear();
print_visuals_menu(choice_msg);
break;
break;
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
if (need_redraw) do_cmd_redraw();
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save the screen */
screen_save();
/* Interact until done */
while (1)
{
- /* Clear screen */
Term_clear();
/* Ask for a choice */
Term_putstr(0, 14, -1, TERM_WHITE,
_("コマンド (n/N/k/K/r/R/g/G/b/B): ", "Command (n/N/k/K/r/R/g/G/b/B): "));
-
- /* Get a command */
i = inkey();
/* All done */
bell();
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
}
return;
}
-
- /* Save the screen */
screen_save();
-
- /* Clear the screen */
Term_clear();
-
/* Load the screen */
for (y = 0; okay; y++)
{
flush();
inkey();
-
- /* Restore the screen */
screen_load();
}
/* XTRA HACK RESLIST */
static void do_cmd_knowledge_inven_aux(FILE *fff, object_type *o_ptr, int *j, OBJECT_TYPE_VALUE tval, char *where)
{
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
BIT_FLAGS flgs[TR_FLAG_SIZE];
if (!o_ptr->k_idx) return;
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
store_type *st_ptr;
do_cmd_knowledge_inven_aux(fff, &st_ptr->stock[i], &j, tval, where);
}
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
return;
}
-
- /* Save the screen */
- if (message)
- screen_save();
+ if (message) screen_save();
/* Build the filename */
path_build(buf, sizeof(buf), ANGBAND_DIR_USER, "htmldump.prf");
msg_print(_("画面(記念撮影)をファイルに書き出しました。", "Screen dump saved."));
msg_print(NULL);
}
-
- /* Restore the screen */
if (message)
screen_load();
}
{
use_graphics = FALSE;
reset_visuals();
-
- /* Redraw everything */
p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
-
- /* Hack -- update */
handle_stuff();
}
return;
}
-
- /* Save the screen */
screen_save();
/* Skip a line */
fprintf(fff, "\n");
-
/* Close it */
my_fclose(fff);
msg_print(_("画面(記念撮影)をファイルに書き出しました。", "Screen dump saved."));
msg_print(NULL);
-
- /* Restore the screen */
screen_load();
}
{
use_graphics = TRUE;
reset_visuals();
-
- /* Redraw everything */
p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
-
- /* Hack -- update */
handle_stuff();
}
}
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
- char base_name[MAX_NLEN];
+ GAME_TEXT base_name[MAX_NLEN];
bool *okay;
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
-
- /* Acquire object */
o_ptr = &o_list[this_o_idx];
/* Acquire next object */
{
object_type forge;
object_type *q_ptr;
-
- /* Get local object */
q_ptr = &forge;
/* Create fake object */
/* Free the "okay" array */
C_KILL(okay, max_a_idx, bool);
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
int n_alive[10];
int n_alive_surface = 0;
if (!fff)
{
- msg_format(_("一時ファイル %s を作成できませんでした。", "Failed to create temporary file %s."), file_name);
- msg_print(NULL);
- return;
+ msg_format(_("一時ファイル %s を作成できませんでした。", "Failed to create temporary file %s."), file_name);
+ msg_print(NULL);
+ return;
}
/* Allocate the "who" array */
{
monster_race *r_ptr = &r_info[who[k]];
- /* Print a message */
fprintf(fff, _(" %s (レベル%d)\n", " %s (level %d)\n"), r_name + r_ptr->name, (int)r_ptr->level);
}
/* Free the "who" array */
C_KILL(who, max_r_idx, s16b);
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
char tmp[30];
/* Open a new file */
}
}
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
FILE *fff;
const magic_type *s_ptr;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
fprintf(fff, "\n");
}
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
FILE *fff;
- char file_name[1024];
- char skill_name[3][20]={_("マーシャルアーツ", "Martial Arts "),
+ GAME_TEXT file_name[1024];
+ GAME_TEXT skill_name[3][20]={_("マーシャルアーツ", "Martial Arts "),
_("二刀流 ", "Dual Wielding "),
_("乗馬 ", "Riding ")};
if (cheat_xtra) fprintf(fff, " %d", skill_exp);
fprintf(fff, "\n");
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
int i;
FILE *fff;
monster_type *m_ptr;
- char pet_name[80];
+ GAME_TEXT pet_name[MAX_NLEN];
int t_friends = 0;
int show_upkeep = 0;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
/* Open a new file */
#endif
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
* @brief 現在のペットを表示するコマンドのメインルーチン /
* Total kill count
* @return なし
- * @note the player ghosts are ignored. XXX XXX XXX
+ * @note the player ghosts are ignored.
*/
static void do_cmd_knowledge_kill_count(void)
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
s32b Total = 0;
if (dead)
{
- /* Print a message */
- fprintf(fff, " %s\n",
- (r_name + r_ptr->name));
+ fprintf(fff, " %s\n", (r_name + r_ptr->name));
Total++;
}
}
#ifdef JP
fprintf(fff," 合計: %lu 体を倒した。\n", (unsigned long int)Total);
#else
- fprintf(fff," Total: %lu creature%s killed.\n",
- (unsigned long int)Total, (Total == 1 ? "" : "s"));
+ fprintf(fff," Total: %lu creature%s killed.\n", (unsigned long int)Total, (Total == 1 ? "" : "s"));
#endif
/* Free the "who" array */
C_KILL(who, max_r_idx, s16b);
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
* @param grp_top 現在の選択リスト最上部ID
* @return なし
*/
-static void display_group_list(int col, int row, int wid, int per_page,
- IDX grp_idx[], cptr group_text[], int grp_cur, int grp_top)
+static void display_group_list(int col, int row, int wid, int per_page, IDX grp_idx[], cptr group_text[], int grp_cur, int grp_top)
{
int i;
int grp = grp_idx[grp_top + i];
/* Choose a color */
- byte attr = (grp_top + i == grp_cur) ? TERM_L_BLUE : TERM_WHITE;
+ TERM_COLOR attr = (grp_top + i == grp_cur) ? TERM_L_BLUE : TERM_WHITE;
/* Erase the entire line */
Term_erase(col, row + i, wid);
int browser_rows;
int wid, hgt;
- /* Get size */
Term_get_size(&wid, &hgt);
browser_rows = hgt - 8;
static bool visual_mode_command(char ch, bool *visual_list_ptr,
int height, int width,
TERM_COLOR *attr_top_ptr, byte *char_left_ptr,
- TERM_COLOR *cur_attr_ptr, byte *cur_char_ptr, bool *need_redraw)
+ TERM_COLOR *cur_attr_ptr, SYMBOL_CODE *cur_char_ptr, bool *need_redraw)
{
static TERM_COLOR attr_old = 0;
- static byte char_old = 0;
+ static SYMBOL_CODE char_old = 0;
switch (ch)
{
/* Display lines until done */
for (i = 0; i < per_page && (mon_idx[mon_top + i] >= 0); i++)
{
- byte attr;
+ TERM_COLOR attr;
/* Get the race index */
MONRACE_IDX r_idx = mon_idx[mon_top + i] ;
BIT_FLAGS8 mode;
- /* Get size */
Term_get_size(&wid, &hgt);
browser_rows = hgt - 8;
{
/* Mega Hack -- track this monster race */
if (mon_cnt) monster_race_track(mon_idx[mon_cur]);
-
- /* Hack -- handle stuff */
handle_stuff();
}
/* Display lines until done */
for (i = 0; i < per_page && (object_idx[object_top + i] >= 0); i++)
{
- char o_name[80];
+ GAME_TEXT o_name[MAX_NLEN];
TERM_COLOR a;
byte c;
object_kind *flavor_k_ptr;
object_kind *k_ptr = &k_info[k_idx];
/* Choose a color */
- byte attr = ((k_ptr->aware || visual_only) ? TERM_WHITE : TERM_SLATE);
+ TERM_COLOR attr = ((k_ptr->aware || visual_only) ? TERM_WHITE : TERM_SLATE);
byte cursor = ((k_ptr->aware || visual_only) ? TERM_L_BLUE : TERM_BLUE);
{
object_type *o_ptr;
object_type object_type_body;
-
- /* Get local object */
o_ptr = &object_type_body;
-
- /* Wipe the object */
object_wipe(o_ptr);
/* Create the artifact */
/* Hack - mark as fake */
/* term_obj_real = FALSE; */
-
- /* Hack -- Handle stuff */
handle_stuff();
if (!screen_object(o_ptr, SCROBJ_FAKE_OBJECT | SCROBJ_FORCE_DETAIL))
byte mode;
- /* Get size */
Term_get_size(&wid, &hgt);
browser_rows = hgt - 8;
/* The "current" object changed */
if (object_old != object_idx[object_cur])
{
- /* Hack -- handle stuff */
handle_stuff();
/* Remember the "current" object */
/* Display lines until done */
for (i = 0; i < per_page && (feat_idx[feat_top + i] >= 0); i++)
{
- byte attr;
+ TERM_COLOR attr;
/* Get the index */
FEAT_IDX f_idx = feat_idx[feat_top + i];
int wid, hgt;
TERM_COLOR attr_old[F_LIT_MAX];
- byte char_old[F_LIT_MAX];
+ SYMBOL_CODE char_old[F_LIT_MAX];
TERM_COLOR *cur_attr_ptr;
- byte *cur_char_ptr;
+ SYMBOL_CODE *cur_char_ptr;
(void)C_WIPE(attr_old, F_LIT_MAX, byte);
(void)C_WIPE(char_old, F_LIT_MAX, byte);
- /* Get size */
Term_get_size(&wid, &hgt);
browser_rows = hgt - 8;
int i;
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
/* Open a new file */
fprintf(fff,"\n%s\n", _("賞金首はもう残っていません。", "There is no more wanted monster."));
}
}
-
- /* Close the file */
- my_fclose(fff);
+ my_fclose(fff);
/* Display the file contents */
show_file(TRUE, file_name, _("賞金首の一覧", "Wanted monsters"), 0, 0);
*/
static void do_cmd_knowledge_virtues(void)
{
- FILE *fff;
-
- char file_name[1024];
-
-
+ FILE *fff;
+ GAME_TEXT file_name[1024];
+
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
if (!fff) {
fprintf(fff, _("現在の属性 : %s\n\n", "Your alighnment : %s\n\n"), your_alignment());
dump_virtues(fff);
}
-
- /* Close the file */
- my_fclose(fff);
+ my_fclose(fff);
/* Display the file contents */
show_file(TRUE, file_name, _("八つの徳", "Virtues"), 0, 0);
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
int i;
-
-
+
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
if (!fff) {
fprintf(fff, _("%c%-12s : %3d 階\n", "%c%-16s : level %3d\n"), seiha ? '!' : ' ', d_name + d_info[i].name, (int)max_dlv[i]);
}
}
-
- /* Close the file */
- my_fclose(fff);
+ my_fclose(fff);
/* Display the file contents */
show_file(TRUE, file_name, _("今までに入ったダンジョン", "Dungeon"), 0, 0);
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
int percent, v_nr;
/* Open a new file */
}
dump_yourself(fff);
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
{
char tmp_str[120];
char rand_tmp_str[120] = "\0";
- char name[80];
+ GAME_TEXT name[MAX_NLEN];
monster_race *r_ptr;
IDX i;
int rand_level = 100;
static void do_cmd_knowledge_quests(void)
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
IDX *quest_num;
int dummy;
IDX i;
fputc('\n', fff);
do_cmd_knowledge_quests_wiz_random(fff);
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
FILE *fff;
int i;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
store_type *st_ptr;
- char o_name[MAX_NLEN];
+ GAME_TEXT o_name[MAX_NLEN];
cptr paren = ")";
process_dungeon_file("w_info.txt", 0, 0, max_wild_y, max_wild_x);
fprintf(fff, "\n\n");
}
}
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
{
int k;
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
{
tmp = _("拾う", "Pickup");
}
- else /* if (act & DO_QUERY_AUTOPICK) */ /* Obvious */
+ else
{
tmp = _("確認", "Query");
}
string_free(tmp);
fprintf(fff, "\n");
}
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
show_file(TRUE, file_name, _("自動拾い/破壊 設定リスト", "Auto-picker/Destroyer"), 0, 0);
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save the screen */
screen_save();
/* Interact until done */
while (1)
{
- /* Clear screen */
Term_clear();
/* Ask for a choice */
-#ifdef JP
- prt(format("%d/2 ページ", (p+1)), 2, 65);
- prt("現在の知識を確認する", 3, 0);
-#else
- prt(format("page %d/2", (p+1)), 2, 65);
- prt("Display current knowledge", 3, 0);
-#endif
+ prt(format(_("%d/2 ページ", "page %d/2"), (p+1)), 2, 65);
+ prt(_("現在の知識を確認する", "Display current knowledge"), 3, 0);
/* Give some choices */
#ifdef JP
}
#endif
/* Prompt */
-#ifdef JP
- prt("-続く-", 17, 8);
- prt("ESC) 抜ける", 21, 1);
- prt("SPACE) 次ページ", 21, 30);
+ prt(_("-続く-", "-more-"), 17, 8);
+ prt(_("ESC) 抜ける", "ESC) Exit menu"), 21, 1);
+ prt(_("SPACE) 次ページ", "SPACE) Next page"), 21, 30);
/*prt("-) 前ページ", 21, 60);*/
- prt("コマンド:", 20, 0);
-#else
- prt("-more-", 17, 8);
- prt("ESC) Exit menu", 21, 1);
- prt("SPACE) Next page", 21, 30);
- /*prt("-) Previous page", 21, 60);*/
- prt("Command: ", 20, 0);
-#endif
-
- /* Prompt */
+ prt(_("コマンド:", "Command: "), 20, 0);
i = inkey();
if (i == ESCAPE) break;
bell();
}
- /* Flush messages */
- msg_print(NULL);
+ msg_erase();
}
-
- /* Restore the screen */
screen_load();
if (need_redraw) do_cmd_redraw();
{
/* File type is "TEXT" */
FILE_TYPE(FILE_TYPE_TEXT);
-
- /* Save the screen */
screen_save();
/* Quest info */
do_cmd_knowledge_quests();
-
- /* Restore the screen */
screen_load();
}
}
msg_print(desc);
-
- /* Close the file */
my_fclose(fff);
}