@bgm03
event		"cg\title\title_digitalcutelogo.png"
wait		1000
screen_whiteout	1000
wait		1000
label	mainloop2_0
event		"cg\title\title_gohan.png"
screen_whitein	1000

label	title_loop

	setbutton 0,21,335,0,"cg\title\title_gamestart_over.png","cg\title\title_gamestart.png"
#	setbutton 1,21,378,0,"cg\title\title_load_over.png","cg\title\title_load.png"
#	setbutton 2,21,419,0,"cg\title\title_quickload_over.png","cg\title\title_quickload.png"
#	setbutton 3,21,464,0,"cg\title\title_cgmode_over.png","cg\title\title_cgmode.png"
#	setbutton 4,21,500,0,"cg\title\title_scenemode_over.png","cg\title\title_scenemode.png"
	setbutton 5,21,539,0,"cg\title\title_website_over.png","cg\title\title_website.png"
	setbutton 6,240,539,0,"cg\title\title_quit_over.png","cg\title\title_quit.png"

	getbutton sel
	se	0,"sound\se\NCb.wav",play_once
	clearbutton

	if sel=5 then goto title_website
	if sel=6 then goto title_quit

screen_whiteout	1000
wait		500
	@bg_dining
screen_whitein	1000


layer_load	60,"cg\select\select_whatday.png"
layer_move	60,1000,0,-128,0,0,passtype_tcb
wait	500
#	# setbutton {^ԍ,X,Y,GtFNg
setbutton 1,150,82,0,"cg\select\select_gohan.png","cg\select\select_gohan.png"
setbutton 2,457,82,0,"cg\select\select_birthday.png","cg\select\select_birthday.png"

setbutton 3,150,235,0,"cg\select\select_valentine.png","cg\select\select_valentine.png"
setbutton 4,457,235,0,"cg\select\select_xmas.png","cg\select\select_xmas.png"
	getbutton sel
	se	0,"sound\se\NCb.wav",play_once
	clearbutton

sel1=sel

layer_move	60,500,0,0,0,-128,passtype_tcb
wait	500

layer_load	60,"cg\select\select_who.png"
layer_move	60,1000,0,-128,0,0,passtype_tcb
wait	500

#	# setbutton {^ԍ,X,Y,GtFNg
setbutton 1,150,82,0,"cg\select\select_mikan.png","cg\select\select_mikan.png"
setbutton 2,457,82,0,"cg\select\select_ichigo.png","cg\select\select_ichigo.png"

setbutton 3,150,235,0,"cg\select\select_karin.png","cg\select\select_karin.png"
setbutton 4,457,235,0,"cg\select\select_hikari.png","cg\select\select_hikari.png"
	getbutton sel
	se	0,"sound\se\NCb.wav",play_once
	clearbutton

sel2=sel

layer_move	60,1000,0,0,0,-128,passtype_tcb

screen_whiteout	1000
wait	1000
bgm_stop
screen_whitein	1000
rnd1=GLOBAL(50)
rnd2=GLOBAL(51)
rnd3=GLOBAL(52)
rnd4=GLOBAL(53)

#a
if sel1=2 and sel2=1 then gosub musugoha_mik_bir
if sel1=2 and sel2=2 then gosub musugoha_ich_bir
if sel1=2 and sel2=3 then gosub musugoha_kar_bir
if sel1=2 and sel2=4 then gosub musugoha_hik_bir

#o^C
if sel1=3 and sel2=1 then gosub musugoha_mik_val
if sel1=3 and sel2=2 then gosub musugoha_ich_val
if sel1=3 and sel2=3 then gosub musugoha_kar_val
if sel1=3 and sel2=4 then gosub musugoha_hik_val

#NX}X
if sel1=4 and sel2=1 then gosub musugoha_mik_cri
if sel1=4 and sel2=2 then gosub musugoha_ich_cri
if sel1=4 and sel2=3 then gosub musugoha_kar_cri
if sel1=4 and sel2=4 then gosub musugoha_hik_cri

#ʂ̐H
if sel1=1 and sel2=1 and rnd1=0 then gosub musugoha_mik_mea1
if sel1=1 and sel2=1 and rnd1=1 then gosub musugoha_mik_mea2
if sel1=1 and sel2=1 and rnd1=2 then gosub musugoha_mik_mea3
if sel1=1 and sel2=2 and rnd2=0 then gosub musugoha_ich_mea1
if sel1=1 and sel2=2 and rnd2=1 then gosub musugoha_ich_mea2
if sel1=1 and sel2=2 and rnd2=2 then gosub musugoha_ich_mea3
if sel1=1 and sel2=3 and rnd3=0 then gosub musugoha_kar_mea1
if sel1=1 and sel2=3 and rnd3=1 then gosub musugoha_kar_mea2
if sel1=1 and sel2=3 and rnd3=2 then gosub musugoha_kar_mea3
if sel1=1 and sel2=4 and rnd4=0 then gosub musugoha_hik_mea1
if sel1=1 and sel2=4 and rnd4=1 then gosub musugoha_hik_mea2
if sel1=1 and sel2=4 and rnd4=2 then gosub musugoha_hik_mea3

rnd1=rnd1+1
if rnd1>2 then rnd1=0
rnd2=rnd2+1
if rnd2>2 then rnd2=0
rnd3=rnd3+1
if rnd3>2 then rnd3=0
rnd4=rnd4+1
if rnd4>2 then rnd4=0


GLOBAL(50)=rnd1
GLOBAL(51)=rnd2
GLOBAL(52)=rnd3
GLOBAL(53)=rnd4

@bgm03

goto	mainloop2_0

# EFuy[W
label	title_website
	website	"http://www.digitalcute.com"
	goto	title_loop

label	title_quit
	screen_blackout	1000
	wait	1000
	quit
