#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	mzAtrDia ;
extern int	mzAtrLy ;
extern int	mzAtrLx ;
extern int	mzAtrBl ;
extern int	mzAtrBh ;
extern int	mzAtrSet ;
extern int	SetMazeAttributeFunc() ;
extern int	mzAtrCancel ;
extern int	mzAtrMes[6] ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMZATR = { "MmiInit",  13, 0 } ;

/* mzAtrDia */

static MMIPACKET d001 = {	&mzAtrDia,
							NULL,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40,
							 210, 100, 469, 340, 8, 7, 8,
							MS_PANELL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* mzAtrLy */

static MMIPACKET d002 = {	&mzAtrLy,
							&mzAtrDia,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d002d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 353, 169, 448, 200, 8,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  20,   5,  32,   1,   0,
							 263, 264
						} ;

/* mzAtrLx */

static MMIPACKET d003 = {	&mzAtrLx,
							&mzAtrDia,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d003d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 353, 124, 448, 155, 8,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  20,   5,  32,   1,   0,
							 263, 264
						} ;

/* mzAtrBl */

static MMIPACKET d004 = {	&mzAtrBl,
							&mzAtrDia,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d004d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 353, 214, 448, 245, 8,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							 500, 300,1000,  10,   0,
							 263, 264
						} ;

/* mzAtrBh */

static MMIPACKET d005 = {	&mzAtrBh,
							&mzAtrDia,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d005d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 353, 259, 448, 290, 8,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							 500, 300,1000,  10,   0,
							 263, 264
						} ;

/* mzAtrSet */

static MMIPACKET d006 = {	&mzAtrSet,
							&mzAtrDia,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 282, 303, 361, 328, 8, 7, 8,
							MS_PANELL40 | MS_FRAMEL40,
							SetMazeAttributeFunc,
							0x800d
						} ;

/* mzAtrCancel */

static MMIPACKET d007 = {	&mzAtrCancel,
							&mzAtrDia,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d007d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 370, 303, 449, 328, 8, 7, 8,
							MS_PANELL40 | MS_FRAMEL40,
							SetMazeAttributeFunc,
							0x8018
						} ;

/* mzAtrMes[4] */

static MMIPACKET d008 = {	&mzAtrMes[4],
							&mzAtrDia,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 287, 304, 357, 327, 8,15,15,
							MS_NONEL40,
							"確定",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* mzAtrMes[5] */

static MMIPACKET d009 = {	&mzAtrMes[5],
							&mzAtrDia,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 375, 304, 445, 327, 8,15,15,
							MS_NONEL40,
							"取消",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* mzAtrMes[0] */

static MMIPACKET d010 = {	&mzAtrMes[0],
							&mzAtrDia,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_RIGHTL40 | MS_DSPONLYL40,
							 226, 129, 325, 152, 0, 0,15,
							MS_NONEL40,
							"迷路長 X",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* mzAtrMes[1] */

static MMIPACKET d011 = {	&mzAtrMes[1],
							&mzAtrDia,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d011d = 	{	MS_RIGHTL40 | MS_DSPONLYL40,
							 226, 174, 325, 197, 0, 0,15,
							MS_NONEL40,
							"迷路長 Y",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* mzAtrMes[2] */

static MMIPACKET d012 = {	&mzAtrMes[2],
							&mzAtrDia,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d012d = 	{	MS_RIGHTL40 | MS_DSPONLYL40,
							 216, 219, 325, 242, 0, 0,15,
							MS_NONEL40,
							"壁の1辺の長さ(cm)",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* mzAtrMes[3] */

static MMIPACKET d013 = {	&mzAtrMes[3],
							&mzAtrDia,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d013d = 	{	MS_RIGHTL40 | MS_DSPONLYL40,
							 226, 264, 325, 287, 0, 0,15,
							MS_NONEL40,
							"壁の高さ(cm)",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

