noextra=1 // extra不要の時は1
// ADVメニューをオフ
adv.menu.off()
screen.black()

// 警告 ---------------------------------------------------------------------------
screen.black.in(30)

// ボイスを鳴らす
cv=random.get(0,3)
if cv=0 then voice.play(0,"voice\V01_警告.ogg")	//デルフィ
if cv=1 then voice.play(0,"voice\V02_警告.ogg")	//ルピナス
if cv=2 then voice.play(0,"voice\V03_警告.ogg")	//サイネリア
if cv=3 then voice.play(0,"voice\V03_警告サタナスサイネリア.ogg")	//サタナスサイネリア

cg		"system\menu\title\waring.png"
//wait.key.frame(120)
wait.voice()
//wait.key.frame(30)
screen.white.out(30)
wait.frame(30)
layer.release.all()

// ロゴ ---------------------------------------------------------------------------
// ボイスを鳴らす
if cv=0 then voice.play(0,"voice\V01_1325.ogg")	//デルフィ
if cv=1 then voice.play(0,"voice\V02_1249.ogg")	//ルピナス
if cv=2 then voice.play(0,"voice\V03_1389.ogg")	//サイネリア
if cv=3 then voice.play(0,"voice\V03_1390.ogg")	//サタナスサイネリア

screen.white.in(30)
cg		"system\menu\title\brand_Triangle.png"
wait.key.frame(120)
screen.white.out(30)
wait.key.frame(30)
layer.release.all()

// タイトル -----------------------------------------------------------------------
//voice.play(0,"voice\V01_sin_NIF_SYS_02.ogg")
//screen.white.in(30)
//if noextra=0 then  layer.load.legacy(0,"system\menu\title\title.png",0,0)
//if noextra=1 then  layer.load.legacy(0,"system\menu\title\title.png",0,0)

//wait.key.frame(90)
//screen.white.out(30)
//wait.key.frame(30)
//layer.release.all()

// OP -----------------------------------------------------------------------------
//screen.white.in(30)
//layer.movie.play(50,"movie\op.ogv")
//screen.white.out(30)
//wait.frame(30)
//layer.release.all()


// メインメニュー -----------------------------------------------------------------
label	title

noextra=1 // extra不要の時は1

scenetitle	""
adv.menu.off()
screen.white.out(0)
screen.white.in(60)

// ボイスを鳴らす
if cv=0 then voice.play(0,"voice\V01_1326.ogg")	//デルフィ
if cv=1 then voice.play(0,"voice\V02_1250.ogg")	//ルピナス
if cv=2 then voice.play(0,"voice\V03_1391.ogg")	//サイネリア
if cv=3 then voice.play(0,"voice\V03_1392.ogg")	//サタナスサイネリア

label	title_loop
//network.white.open("http://...",0,670,24)

// BGM
bgm.play("bgm\01テーマ曲\ソルシエルナイツ\04_Ray of Pride_Short.ogg")

// 背景
if noextra=0 then  layer.load.legacy(0,"system\menu\title\メインメニュー背景.png",0,0)
if noextra=1 then  layer.load.legacy(0,"system\menu\title\メインメニュー背景_パッケージ版購入者全員.png",0,0)


label	title_loop2

addButton	1,90,635,"system\menu\title\メインメニューボタン1暗.png","system\menu\title\メインメニューボタン1明.png"
addButton	2,273,635,"system\menu\title\メインメニューボタン2暗.png","system\menu\title\メインメニューボタン2明.png"
addButton	3,522,635,"system\menu\title\メインメニューボタン3暗.png","system\menu\title\メインメニューボタン3明.png"
if noextra=0 then  addButton	4,682,635,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
if noextra=1 then  addDisableButton	4,682,635,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
addButton	5,866,635,"system\menu\title\メインメニューボタン5暗.png","system\menu\title\メインメニューボタン5明.png"
addButton	6,1085,635,"system\menu\title\メインメニューボタン6暗.png","system\menu\title\メインメニューボタン6明.png"
getButton	sel

if sel=1 then goto title_start
if sel=2 then goto title_continue
if sel=3 then goto title_load
if sel=4 then goto title_extra
if sel=5 then goto title_config
if sel=6 then goto title_exit
goto title_start

// コンティニュー -----------------------
label title_continue
	bgm.fadeout(60)
	screen.black.out(60)
	wait.frame(120)

	//network.news.close()
	autoLoadSystem
	screen.black.in(60)
	goto	title

// ロード -------------------------------
label title_load
	bgm.fadeout(30)
	wait.frame(30)
	
	bgm.play("bgm\02日常\穏やか\穏やか01レム2新.ogg")
	loadsystem
	bgm.fadeout(30)
	wait.frame(30)
	
	bgm.play("bgm\01テーマ曲\ソルシエルナイツ\04_Ray of Pride_Short.ogg")
	goto	title_loop2

// 設定 ---------------------------------
label title_config
	bgm.fadeout(30)
	wait.frame(30)
	
	bgm.play("bgm\02日常\穏やか\穏やか01レム2新.ogg")
	configSystem
	bgm.fadeout(30)
	wait.frame(30)
	
	bgm.play("bgm\01テーマ曲\ソルシエルナイツ\04_Ray of Pride_Short.ogg")
	goto	title_loop2

// エキストラ -----------------------
label title_extra
	bgm.fadeout(60)
	screen.white.out(60)
	wait.frame(60)
	
	//network.news.close()
	goto extra
	screen.white.in(60)
	goto	title

// クイックロード -----------------------
label title_quickload
	bgm.fadeout(60)
	screen.black.out(60)
	wait.frame(120)
	
	//network.news.close()
	qLoadSystem
	screen.white.in(60)
	goto	title

// 終了 ---------------------------------
label title_exit
	system.quit()
	goto	title


// スタート -----------------------------
label title_start
	bgm.fadeout(60)
	screen.black.out(60)
	wait.frame(120)
	voice.stop()

	// すべてのレイヤを消す
	layer.release.all()
	network.news.close()
	screen.black.in(60)
	
	// ADVメニューをオン
	adv.menu.on()

	//それぞれスタート位置に飛ばす
	if noextra=0 then goto SOK9_16_EX06
	if noextra=1 then goto SOK9_16_EX06


reset
