mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-25 07:58:04 +03:00
74 lines
2.1 KiB
C
74 lines
2.1 KiB
C
/*
|
|
* message.h 文字列表示関係
|
|
*
|
|
* Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
|
|
* 1998- <masaki-c@is.aist-nara.ac.jp>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
*/
|
|
/* $Id: message.h,v 1.22 2002/05/07 21:43:53 chikama Exp $ */
|
|
|
|
#ifndef __MESSAGE__
|
|
#define __MESSAGE__
|
|
|
|
#include "portab.h"
|
|
#include "windowframe.h"
|
|
|
|
struct SDL_Point;
|
|
|
|
extern void msg_init();
|
|
extern void msg_setFontSize(int size);
|
|
extern void msg_putMessage(const char *msg);
|
|
extern void msg_nextLine();
|
|
extern void msg_nextPage(bool clear);
|
|
extern void msg_hitAnyKey();
|
|
extern void msg_openWindow(int W, int C1, int C2, int N, int M);
|
|
extern void msg_setMessageLocation(int x, int y);
|
|
extern void msg_getMessageLocation(struct SDL_Point *loc);
|
|
extern void msg_mg6_command(int cmd);
|
|
|
|
struct __message {
|
|
/* メッセージフォントの大きさ */
|
|
int MsgFontSize;
|
|
|
|
/* 各種色 */
|
|
int MsgFontColor;
|
|
int WinFrameColor;
|
|
int WinBackgroundColor;
|
|
int HitAnyKeyMsgColor;
|
|
int WinBackgroundTransparentColor;
|
|
|
|
bool AutoPageChange;
|
|
int LineIncrement;
|
|
int WinBackgroundTransparent;
|
|
|
|
/* MG command関連 */
|
|
bool mg_getString;
|
|
bool mg_dspMsg;
|
|
int mg_startStrVarNo;
|
|
int mg_curStrVarNo;
|
|
int mg_policyR;
|
|
int mg_policyA;
|
|
|
|
/* メッセージ window */
|
|
int winno;
|
|
Bcom_WindowInfo *win; // points to wininfo[winno - 1]
|
|
Bcom_WindowInfo wininfo[MSGWINMAX];
|
|
};
|
|
typedef struct __message msg_t;
|
|
|
|
#endif /* __MESSAGE__ */
|