noextra=0 // extra不要の時は1
//GLOBAL(0)　１だとプロローグ通過済
// 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\V04_警告.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_0107.ogg")	//リリー
if cv=1 then voice.play(0,"voice\V02_0055.ogg")	//シュガー
if cv=2 then voice.play(0,"voice\V03_0190.ogg")	//スピカ
if cv=3 then voice.play(0,"voice\V04_0226.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()

// ボイスを鳴らす
if cv=0 then voice.play(0,"voice\V01_0108.ogg")	//リリー
if cv=1 then voice.play(0,"voice\V02_0056.ogg")	//シュガー
if cv=2 then voice.play(0,"voice\V03_0191.ogg")	//スピカ
if cv=3 then voice.play(0,"voice\V04_0227.ogg")	//モルテ

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

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

goto	title_loop

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

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

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

// ボイスを鳴らす
cv=random.get(0,3)
if cv=0 then voice.play(0,"voice\V01_0108.ogg")	//リリー
if cv=1 then voice.play(0,"voice\V02_0056.ogg")	//シュガー
if cv=2 then voice.play(0,"voice\V03_0191.ogg")	//スピカ
if cv=2 then voice.play(0,"voice\V04_0227.ogg")	//モルテ

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

// BGM
//プロローグ未通過　ゲーム初起動時
if GLOBAL(0)=0 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ\Power of Symphonic　魔法戦士シンフォニックナイツ～女神を継ぐ乙女たち～.ogg")
//プロローグ通過済
if GLOBAL(0)=1 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ2\04_未来へのシンフォニア_Short.ogg")

// 背景

//プロローグ未通過　ゲーム初起動時
if GLOBAL(0)=0 then layer.load.legacy(0,"system\menu\title\メインメニュー背景.png",0,0)
//プロローグ通過済
if GLOBAL(0)=1 then  layer.load.legacy(0,"system\menu\title\メインメニュー背景2.png",0,0)
//if noextra=0 then  layer.load.legacy(0,"system\menu\title\メインメニュー背景2.png",0,0)
//if noextra=1 then  layer.load.legacy(0,"system\menu\title\メインメニュー背景_trial.png",0,0)

//本編スタートとプロローグスタートがあるボタンへ
if GLOBAL(0)=1 then goto title_loop3

//プロローグ未通過　ゲーム初起動時
label	title_loop2

addButton	7,94,637,"system\menu\title\メインメニューボタン7暗.png","system\menu\title\メインメニューボタン7明.png"
addButton	2,338,636,"system\menu\title\メインメニューボタン2暗.png","system\menu\title\メインメニューボタン2明.png"
addButton	3,568,637,"system\menu\title\メインメニューボタン3暗.png","system\menu\title\メインメニューボタン3明.png"
addButton	4,705,636,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
//if noextra=0 then  addButton	4,705,636,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
//if noextra=1 then  addDisableButton	4,705,636,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
addButton	5,867,636,"system\menu\title\メインメニューボタン5暗.png","system\menu\title\メインメニューボタン5明.png"
addButton	6,1060,636,"system\menu\title\メインメニューボタン6暗.png","system\menu\title\メインメニューボタン6明.png"
getButton	sel

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
if sel=7 then goto title_prologue
goto title_start

//プロローグ通過済
//本編スタートとプロローグスタートがあるボタン
label	title_loop3

addButton	1,14,636,"system\menu\title\メインメニューボタン1暗.png","system\menu\title\メインメニューボタン1明.png"
addButton	7,176,637,"system\menu\title\メインメニューボタン7暗.png","system\menu\title\メインメニューボタン7明.png"
addButton	2,420,636,"system\menu\title\メインメニューボタン2暗.png","system\menu\title\メインメニューボタン2明.png"
addButton	3,650,637,"system\menu\title\メインメニューボタン3暗.png","system\menu\title\メインメニューボタン3明.png"
addButton	4,787,636,"system\menu\title\メインメニューボタン4暗.png","system\menu\title\メインメニューボタン4明.png"
addButton	5,949,636,"system\menu\title\メインメニューボタン5暗.png","system\menu\title\メインメニューボタン5明.png"
addButton	6,1142,636,"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
if sel=7 then goto title_prologue
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)
	
//プロローグ未通過　ゲーム初起動時
	if GLOBAL(0)=0 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ\Power of Symphonic　魔法戦士シンフォニックナイツ～女神を継ぐ乙女たち～.ogg")
//プロローグ通過済
	if GLOBAL(0)=1 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ2\04_未来へのシンフォニア_Short.ogg")
	goto	title_loop

// 設定 ---------------------------------
label title_config
	bgm.fadeout(30)
	wait.frame(30)
	
	bgm.play("bgm\02日常\穏やか\穏やか01レム2新.ogg")
	configSystem
	bgm.fadeout(30)
	wait.frame(30)
	
//プロローグ未通過　ゲーム初起動時
	if GLOBAL(0)=0 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ\Power of Symphonic　魔法戦士シンフォニックナイツ～女神を継ぐ乙女たち～.ogg")
//プロローグ通過済
	if GLOBAL(0)=1 then bgm.play("bgm\01テーマ曲\シンフォニックナイツ2\04_未来へのシンフォニア_Short.ogg")
	goto	title_loop

// エキストラ -----------------------
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 sik201_01_01
	if noextra=1 then goto sik201_01_01

// プロローグ -----------------------------
label title_prologue
	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()

	//プロローグ冒頭シナリオ
	goto SIK101_EP01

reset
