;@scenario_start
;ここからゲーム本編のスクリプトを書いていってください。

@scenario_start
;■タスクバーに表示されるタイトル
caption "1280×720サイズ―混合サンプル（ＡＤＶ形式推奨）" 
;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@title_logoskip

;■ロゴ
bg "bg\name_960640.png",#f,500

wait 800,1
@title
;■↓表示文の変数用に予約。2000は自由に変えてよい。
for %0=0 to 2000
	text_name[%0]=""
next


if _allclear==1 then
bg "sin_system\title_t_c.png",#f,500	;タイトル画面（クリア後）
bgmplay "bgm\01\01_title.ogg"
else
bg "sin_system\title_t.png",#f,500	;タイトル画面
bgmplay "bgm\00\00_sinkarisozai.ogg"
endif
;bgmplay "bgm\00_201509_ending.ogg"
spset "title",100
;sp "title:logo",{name="sin_system\logo_t.png",x=800-500,y=140,z=0}
;sp "title:logo",{name=":moviealpha(sin_system\logo_t.nmv)",x=800-500,y=100,z=0}
;sp "title:start",{name={"?最初から,menu2","?最初から,menu1"},x=360,y=220,z=0}
;sp "title:load",{name={"?続きから,menu2","?続きから,menu1"},x=360,y=260,z=0}
;sp "title:kaisou",{name={"?おまけ,menu2","?おまけ,menu1"},x=50,y=400,z=0}
;sp "title:config",{name={"?コンフィグ,menu2","?コンフィグ,menu1"},x=360,y=300,z=0}
;sp "title:quit",{name={"?終了する,menu2","?終了する,menu1"},x=360,y=340,z=0}

sp "title:start",{name={"sin_system/title_sel_005/start_off.png","sin_system/title_sel_005/start_on.png"},x=100+0,y=300+80*0,z=0}
sp "title:load",{name={"sin_system/title_sel_005/Load_off.png","sin_system/title_sel_005/Load_on.png"},x=100+0,y=300+80*1,z=0}
sp "title:kaisou",{name={"sin_system/title_sel_005/Extra_off.png","sin_system/title_sel_005/Extra_on.png"},x=100+0,y=300+80*2,z=0}
sp "title:config",{name={"sin_system/title_sel_005/Config_off.png","sin_system/title_sel_005/Config_on.png"},x=100+0,y=300+80*3,z=0}
sp "title:quit",{name={"sin_system/title_sel_005/GameEnd_off.png","sin_system/title_sel_005/GameEnd_on.png"},x=100+0,y=300+80*4,z=0}
;if _allclear==1 then
;	sp "title:logo",{name="sin_system\logo_t.png",x=100,y=500,z=0}
;else
;	sp "title:logo",{name="sin_system\logo_t.png",x=0,y=0,z=0}
;endif



;■20190329-------title_sel_003のサンプル
;%name="sin_system/title_sel_003/start"
;sp "title:start",{name={""+%name+"_off.png",""+%name+"_on.png"},x=20,y=640-60,z=0}
;%name="sin_system/title_sel_003/load"
;sp "title:load",{name={""+%name+"_off.png",""+%name+"_on.png"},x=20+190,y=640-60,z=0}
;%name="sin_system/title_sel_003/omake"
;sp "title:kaisou",{name={""+%name+"_off.png",""+%name+"_on.png"},x=20+190*2,y=640-60,z=0}
;%name="sin_system/title_sel_003/con"
;sp "title:config",{name={""+%name+"_off.png",""+%name+"_on.png"},x=20+190*3,y=640-60,z=0}
;%name="sin_system/title_sel_003/end"
;sp "title:quit",{name={""+%name+"_off.png",""+%name+"_on.png"},x=20+190*4,y=640-60,z=0}
;--------------ここまで----------------------横一列になります。







print #c

btnclear "title"
btn "title:start",{on="S(rpg_sozai\se\sin_click.ogg)"}
btn "title:load",{on="S(rpg_sozai\se\sin_click.ogg)"}
btn "title:kaisou",{on="S(rpg_sozai\se\sin_click.ogg)"}
btn "title:config",{on="S(rpg_sozai\se\sin_click.ogg)"}
btn "title:quit",{on="S(rpg_sozai\se\sin_click.ogg)"}
@title_lp
btnexec %ret,"title",{func=1}
if %ret=="#F1" then gosub @sin_ss
if %ret=="start" then spsetdelete "title" : bgmstop : gosub @sin_novel_00 : goto @game_op	;ADVモードで開始
;if %ret=="start" then spsetdelete "title" : bgmstop : gosub @sin_novel_01 : goto @game_op	;ノベルモードで開始
if %ret=="load" then goto @title_load
if %ret=="kaisou" then goto @omake
if %ret=="config" then goto @title_config
if %ret=="quit" then goto @title_quit
goto @title_lp

@title_quit
yesnobox %ret,"ゲームを終了しますか？","終了確認"
if %ret==0 then spsetdelete "title" : goto @title
quit

@title_config
spsetvisible "title",0
gosub @config
spsetvisible "title",1
print #c
goto @title_lp

@title_load
issave=0
spsetvisible "title",0
gosub @saveload
spsetvisible "title",1
print #c
goto @title_lp


