#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	judge_dialogId[2] ;
extern int	judge_backbuttonId ;
extern int	igo_judgechk() ;
extern int	judge_buttonId[1] ;
extern int	igo_judgeset() ;
extern int	judge_messageId[4] ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMIJUDGE = { "MmiInit",  10, 0 } ;

/* judge_dialogId[0] */

static MMIPACKET d001 = {	&judge_dialogId[0],
							NULL,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_INVISIBLEL40 | MS_SAVEL40,
							   0,   0, 639, 479, 0, 0, 0,
							MS_NONEL40,
							NULL,   0,   0
						} ;

/* judge_backbuttonId */

static MMIPACKET d002 = {	&judge_backbuttonId,
							&judge_dialogId[0],
							&MJ_BUTTONL40,
							OFFSET(BUTTONL40),
							MS_NONE
						} ;
static BUTTONL40	d002d = {	MS_BTRIGHTL40 | MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_UNHLTL40,
							   0,  20, 639, 479, 0, 0, 0,
							MS_NONEL40,
							igo_judgechk,
							0x0000
						} ;

/* judge_dialogId[1] */

static MMIPACKET d003 = {	&judge_dialogId[1],
							&judge_dialogId[0],
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
							   1,  59, 178, 243, 8, 7, 8,
							MS_SRECTL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* judge_buttonId[0] */

static MMIPACKET d004 = {	&judge_buttonId[0],
							&judge_dialogId[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d004d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							  50, 205, 129, 230, 4,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							igo_judgeset,
							0x0000
						} ;

/* NULL */

static MMIPACKET d005 = {	NULL,
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  10,  71, 169,  94, 0,15, 0,
							MS_NONEL40,
							"形勢判断",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* NULL */

static MMIPACKET d006 = {	NULL,
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d006d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  51, 206, 125, 229, 0,15, 0,
							MS_NONEL40,
							"確認",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* judge_messageId[0] */

static MMIPACKET d007 = {	&judge_messageId[0],
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  12, 101, 171, 121, 0,15, 0,
							MS_NONEL40,
							NULL,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* judge_messageId[1] */

static MMIPACKET d008 = {	&judge_messageId[1],
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  12, 126, 171, 146, 0,15, 0,
							MS_NONEL40,
							NULL,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* judge_messageId[2] */

static MMIPACKET d009 = {	&judge_messageId[2],
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  12, 151, 171, 171, 0,15, 0,
							MS_NONEL40,
							NULL,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* judge_messageId[3] */

static MMIPACKET d010 = {	&judge_messageId[3],
							&judge_dialogId[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  12, 180, 171, 200, 0,15, 0,
							MS_NONEL40,
							NULL,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

