//DF402偺儊僀儞儊僯儏乕
//嵟弶偺夋柺昞帵僄僼僃僋僩
//-----------------------------------------------------------------------------+
* Start;
DF 402;
CALL DF402/LOAD.txt,L_LOAD_0;//婲摦帪//儘乕僪夋柺
CALL DF402/set.txt,INITIALIZE;//嶌昳偺奐巒
CALL DF402/set.txt,L_setDIM;

//-----------------------------------------------------------------------------+
* top;
INI seen;

//弶婜僆僾僔儑儞夋柺偱偺丄僒僂儞僪崅晧壸抶墑懳嶔
Sound LOAD,push05.wav;
Sound PLAY,false;
Sound STOP,false;

Voice ID,0;
Voice CLS_Buffer;


SetMozaiku NULL,OFF;
XFile4_ID 1,false;
XFile4_ID 2,false;
XFile4_ID 3,false;
XFile4_ID 4,false;
XFile4_ID 5,false;
XFile4_ID 0,false;
SetViewLimit ALL;



//-----------------------------------------------------------------------------+
* L_top_0;//俫偐傜暅婣偟偨応崌偼僐僢僠偵栠傞
Set_SitenType false;//帇揰屌掕丅H僔乕儞偱抝惈帇揰偵偝傟偨応崌偺懳嶔
Set_View 1.569,0.919,-3.981,-0.3688,-0.0814,0.9259,-0.030,0.996,0.075,0.319;


//------------------------------------------------------------------------------
* L_top;//奺崁栚偐傜僩僢僾傊棃偨傜僐僐偵栠傞

CALL DF402/set_BGM.txt,L_MENU1;//僩僢僾儊僯儏乕

//Sound LOAD,.\\DF401\4Y\v001_01.wav;//1 倕儌乕僔儑儞
//Sound PLAY,false;

Voice ID,0;
Voice CLS_Buffer;

XFile4_ID 0,true;
Motion_Load DF402/stand01.txt,true,,;//寞踢巔惃


Menu_INI ;//儊僯儏乕偺愝掕傪僋儕傾偡傞
Menu_SetPos 270,250;
Menu_Sprite DF402/top_menu_2.png;
Menu_SetType 0,120,30,22;



//Set_MapColor RGB,255,255,255;
Load_BG_SiriteFile DF402/TOP_BG01.png;
Load_FG_SiriteFile DF402/TOP_FG01.png;


//------------------------------------------------------------------------------
//愢柧
//------------------------------------------------------------------------------
MSG_Cls ;
//GOTO L_愢柧END;//愢柧傪昞帵偟側偄

switch rand,6;  MSG3_Print 仭俤俽俠僉乕偱廔椆偟傑偡;
switch case,2;  MSG3_Print 仭俿俙俛僉乕偱夋柺崁栚傪塀偟傑偡;
switch case,3;  MSG3_Print 仭僀儀儞僩僔乕儞偼僗儁乕僗僉乕偱憗憲傝偱偒傑偡;
switch case,4;  MSG3_Print 仭Ctrl+Q偱儗儞僟儕儞僌僆僾僔儑儞偑奐偒傑偡;
switch case,5;  MSG3_Print 仭menu僉乕偱僆僾僔儑儞偑奐偒傑偡;
switch case,6;  MSG3_Print 仭F5偱儕僙僢僩偱偡;

switch end;

* L_愢柧END;


Loop_4_Work ;//昞帵偟側偄撪晹張棟

//弶婜埵抲偱僉儍儔AE偑儘僢僋偡傞帇揰偵

//------------------------------------------------------------------------------
//僙儞僞乕儊僯儏乕
* L_menu;
//MSG_Cls ;
IconDELL ;



//CALL DF402/set.txt,SAVE;//曄悢曐懚丅僋儕傾忣曬側偳傪曐懚


Menu_CLS Menu;
Menu_ADD 僗僞乕僩,,0;
//Menu_ADD 攚宨,,1;
//Menu_ADD 扙偑偡,,2;
//Menu_ADD 帒椏,,1;
Menu_ADD 愝掕,,3;
Menu_ADD 廔椆,,4;
Loop_4_menu false;


MSG_Cls ;
IconDELL ;//辈狠傪徚偟偰奐曻
MapBool ,,,false;//FG徚嫀


CALL DF402/LOAD.txt,L_LOAD_1;//儘乕僪夋柺

Goto@ @RetMenu,0,L_MAIN;
Goto@ @RetMenu,1,L_TEXT;
//Goto@ @RetMenu,1,L_MAP;
//Goto@ @RetMenu,2,L_NUGU;
Goto@ @RetMenu,3,仴僔僗僥儉;
Goto@ @RetMenu,4,L_menu_end;
GOTO top;


//-----------------------------------------------------------------------------+
* L_MAIN;
CALL DF402/FPS_Action.txt;
GOTO L_top_0;


//-----------------------------------------------------------------------------+
* L_TEXT;
GOTO L_top_0;


//-----------------------------------------------------------------------------+
* L_MAP;
GOTO L_top;



//-----------------------------------------------------------------------------+
* L_NUGU;

Menu_CLS Menu;
Menu_ADD 堖暈,,0;
Menu_ADD 僲乕僽儔,,3;
Menu_ADD 壓拝巔,,1;
Menu_ADD 慡棁,,2;
Loop_4_menu false;

Goto@ @RetMenu,0,L_NUGU_0;
Goto@ @RetMenu,1,L_NUGU_1;
Goto@ @RetMenu,2,L_NUGU_2;
Goto@ @RetMenu,3,L_NUGU_3;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* L_NUGU_0;
CALL DF402/set.txt,暈拝傞;
GOTO L_top;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* L_NUGU_1;
CALL DF402/set.txt,壓拝偵;
GOTO L_top;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* L_NUGU_2;
CALL DF402/set.txt,棁偵;
GOTO L_top;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* L_NUGU_3;
XFile4_b add,true,4;
XFile4_b add,false,3;
GOTO L_top;





//-----------------------------------------------------------------------------+
* 仴僔僗僥儉;
//CALL DF401_set.txt,撉崬夋柺;
Load_BG_SiriteFile DF35_titol_sys.jpg;
Set_View -3.806,3.491,-7.188,0.0009,0.9999,0.0009,-0.000,-0.000,1.000,0.518;
* 仴僔僗僥儉Loop;
MenuGB_MenuSetID 0;
MenuGB_SetPos 0,20;
MenuGB_Titol 僔僗僥儉儊僯儏乕;
MenuGB_ADD 婲摦愝掕;
MenuGB_ADD 夝憸搙愝掕;
MenuGB_ADD 夋幙愝掕;
MenuGB_ADD 僔僗僥儉壒;
MenuGB_ADD 僆僾僔儑儞;
MenuGB_ADD 儌僯僞乕妋擣;
MenuGB_ADD 僋儗僕僢僩;
MenuGB_ADD 僎乕儉弶婜壔;
MenuGB_ADD 愝掕偍傢傝;
Loop_GBmenu ;
//Select@ @RetMenu,GOTO,,,,,,,,,top;
//Select@ @RetMenu,GOSUB,仴婲摦儌乕僪,仴夝憸搙,仴夋幙,仴sys_SE,仴OP,仴AEG,仴ACV,仴DTini;
//GOTO 仴僔僗僥儉Loop;

Goto@ @RetMenu,8,top;
GOSUB 仴僔僗僥儉_gosub;//栠偭偰棃偨帪丄嵞僸僢僩偟側偄條偵僒僽儖乕僠儞撪偱張棟
GOTO 仴僔僗僥儉Loop;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴僔僗僥儉_gosub;//gosub撪偱GOTO偟偰屇傃愭偱return偝偣傞丅
Goto@ @RetMenu,0,仴婲摦儌乕僪;
Goto@ @RetMenu,1,仴夝憸搙;
Goto@ @RetMenu,2,仴夋幙;
Goto@ @RetMenu,3,仴sys_SE;
Goto@ @RetMenu,4,仴OP;
Goto@ @RetMenu,5,仴AEG;
Goto@ @RetMenu,6,仴ACV;
Goto@ @RetMenu,7,仴DTini;
RETURN ;





// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴OP;
Loop_Option ;
RETURN ;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴婲摦儌乕僪;
MenuGB_MenuSetID 1;
MenuGB_SetPos 80,40;
MenuGB_Titol 婲摦儌乕僪愝掕;
MenuGB_ADD 僂傿儞僪僂;
MenuGB_ADD 僼儖僗僋儕乕儞;
Loop_GBmenu ;
Select@ @RetMenu,GOSUB,婲摦儌乕僪-WINDOW,婲摦儌乕僪-FULL;
MenuGB_MenuSetID 2;
MenuGB_SetPos 220,200;
MenuGB_Sprite menu_07.png,menu_07t.png;
MenuGB_Titol 丂師夞婲摦帪傛傝桳岠偵惉傝傑偡;
MenuGB_ADD 俷俲;
Loop_GBmenu ;
RETURN ;

* 婲摦儌乕僪-WINDOW;
Set_INI Window,true;
RETURN ;

* 婲摦儌乕僪-FULL;
Set_INI Window,false;
RETURN ;


// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴夋幙;
MenuGB_MenuSetID 1;
MenuGB_SetPos 80,60;
MenuGB_Titol 夝憸搙愝掕;
MenuGB_ADD 儘乕;//512亊512
MenuGB_ADD 僲乕儅儖;//1024亊512 僲乕儅儖丂掅
MenuGB_ADD 僴僀儗僝;//1024亊1024 僴僀儗僝丂昗弨
MenuGB_ADD 僗乕僷乕;//2048亊1024 僗乕僷乕丂崅偄
MenuGB_ADD 僂儖僩儔;//2048亊2048 僂儖僩儔丂嵟崅
Loop_GBmenu ;
Select@ @RetMenu,GOSUB,夋幙1,夋幙2,夋幙3,夋幙4,夋幙5;
MSG_Cls ;
//G_Print 仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩;
MSG_Print 僔僗僥儉愝掕偑曄峏偝傟傑偟偨;
MSG_Print 師夞婲摦帪傛傝桳岠偵惉傝傑偡;
MSG_Print 摦嶌傪埨掕偝偣傞偨傔偵;
MSG_Print 僜僼僩儕僙僢僩偱偼側偔倕倶倕傪嵞婲摦傪偟偰壓偝偄;
MenuGB_MenuSetID 2;
MenuGB_SetPos 220,200;
MenuGB_Sprite menu_07.png,menu_07t.png;
MenuGB_Titol 丂嵞婲摦偟偰偔偩偝偄;
MenuGB_ADD 俷俲;
Loop_GBmenu ;
RETURN ;

* 夋幙1;
Set_INI AE_SizeX,512;
Set_INI AE_SizeY,512;
RETURN ;

* 夋幙2;
Set_INI AE_SizeX,1024;
Set_INI AE_SizeY,512;
RETURN ;

* 夋幙3;
Set_INI AE_SizeX,1024;
Set_INI AE_SizeY,1024;
RETURN ;

* 夋幙4;
Set_INI AE_SizeX,2048;
Set_INI AE_SizeY,1024;
RETURN ;

* 夋幙5;
Set_INI AE_SizeX,2048;
Set_INI AE_SizeY,2048;
RETURN ;





// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴夝憸搙;
MenuGB_MenuSetID 1;
MenuGB_SetPos 80,60;
MenuGB_Titol 夝憸搙愝掕;
MenuGB_ADD 640亊480;
//MenuGB_ADD 640亊480A;
MenuGB_ADD 800亊600;
//MenuGB_ADD 800亊600A;
MenuGB_ADD 1024亊768;
MenuGB_ADD 1280亊960;
Loop_GBmenu ;
//Select@ @RetMenu,GOSUB,夝憸搙-640,夝憸搙-640A,夝憸搙-800,夝憸搙-800A,夝憸搙-1024;
Select@ @RetMenu,GOSUB,夝憸搙-640,夝憸搙-800,夝憸搙-1024,夝憸搙-1280;
MSG_Cls ;
//G_Print 仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩;
MSG_Print 僔僗僥儉愝掕偑曄峏偝傟傑偟偨;
MSG_Print 師夞婲摦帪傛傝桳岠偵惉傝傑偡;
MSG_Print 摦嶌傪埨掕偝偣傞偨傔偵;
MSG_Print 僜僼僩儕僙僢僩偱偼側偔倕倶倕傪嵞婲摦傪偟偰壓偝偄;
MenuGB_MenuSetID 2;
MenuGB_SetPos 220,200;
MenuGB_Sprite menu_07.png,menu_07t.png;
MenuGB_Titol 丂嵞婲摦偟偰偔偩偝偄;
MenuGB_ADD 俷俲;
Loop_GBmenu ;
RETURN ;

* 夝憸搙-640;
Set_INI Graphic,640;
Set_INI WindowSize,640;
RETURN ;
* 夝憸搙-640A;
Set_INI Graphic,1024;
Set_INI WindowSize,640;
RETURN ;
* 夝憸搙-800;
Set_INI Graphic,800;
Set_INI WindowSize,800;
RETURN ;
* 夝憸搙-800A;
Set_INI Graphic,1024;
Set_INI WindowSize,800;
RETURN ;
* 夝憸搙-1024;
Set_INI Graphic,1024;
Set_INI WindowSize,1024;
RETURN ;

* 夝憸搙-1280;
Set_INI Graphic_X,1280;
Set_INI Graphic_Y,960;
Set_INI WindowSize_X,1280;
Set_INI WindowSize_Y,960;
RETURN ;


//AE_SizeX



// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴sys_SE;
MenuGB_MenuSetID 1;
MenuGB_SetPos 80,80;
MenuGB_Titol 僔僗僥儉壒愝掕;
MenuGB_ADD 寛掕壒;
MenuGB_ADD 僉儍儞僙儖壒;
MenuGB_ADD 慖戰壒;
MenuGB_ADD 愝掕偍傢傝;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,L_sys_SE1,L_sys_SE2,L_sys_SE3,L_sys_SE_ret;
GOTO 仴sys_SE;

* L_sys_SE_ret;
RETURN ;

* L_sys_SE1;
MenuGB_MenuSetID 2;
MenuGB_SetPos 160,100;
MenuGB_Titol 寛掕壒;
//MenuGB_ADD 1_2003擭崰偺壒;
//MenuGB_ADD 2_2006擭崰偺壒;
//MenuGB_ADD 3_2006乣16擭;
//MenuGB_ADD 4_404埲崀;
MenuGB_ADD TYPE1;
MenuGB_ADD TYPE2;
MenuGB_ADD TYPE3;
MenuGB_ADD TYPE4[昗弨];
MenuGB_ADD 愝掕偍傢傝;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,,,,,仴sys_SE;
Select@ @RetMenu,GOSUB,L_sys_SE1_1,L_sys_SE1_2,L_sys_SE1_3,L_sys_SE1_4;
Set_INI sys_SE,test,1;//僒僂儞僪僥僗僩
GOTO L_sys_SE1;

* L_sys_SE2;
MenuGB_MenuSetID 2;
MenuGB_SetPos 160,100;
MenuGB_Titol 僉儍儞僙儖壒;
MenuGB_ADD TYPE1;
MenuGB_ADD TYPE2;
MenuGB_ADD TYPE3[昗弨];
MenuGB_ADD 愝掕偍傢傝;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,,,,仴sys_SE;
Select@ @RetMenu,GOSUB,L_sys_SE2_1,L_sys_SE2_2,L_sys_SE2_3;
Set_INI sys_SE,test,2;//僒僂儞僪僥僗僩
GOTO L_sys_SE2;

* L_sys_SE3;
MenuGB_MenuSetID 2;
MenuGB_SetPos 160,100;
MenuGB_Titol 慖戰壒;
MenuGB_ADD TYPE1[昗弨];
MenuGB_ADD 愝掕偍傢傝;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,,仴sys_SE;
Select@ @RetMenu,GOSUB,L_sys_SE3_1;
Set_INI sys_SE,test,3;//僒僂儞僪僥僗僩
GOTO L_sys_SE3;

* L_sys_SE1_1;
Set_INI sys_SE,file,1,.\wave\sys\cursor07.wav;//寛掕壒
RETURN ;

* L_sys_SE1_2;
Set_INI sys_SE,file,1,.\wave\sys\cursor28.wav;//寛掕壒
RETURN ;

* L_sys_SE1_3;
Set_INI sys_SE,file,1,.\wave\sys\cursor29.wav;//寛掕壒
RETURN ;

* L_sys_SE1_4;
Set_INI sys_SE,file,1,.\wave\sys\kachi42_3_01.wav;//寛掕壒
RETURN ;

* L_sys_SE2_1;
Set_INI sys_SE,file,2,.\wave\sys\fm005.wav;//僉儍儞僙儖壒
RETURN ;

* L_sys_SE2_2;
Set_INI sys_SE,file,2,.\wave\sys\cursor03.wav;//僉儍儞僙儖壒
RETURN ;

* L_sys_SE2_3;
Set_INI sys_SE,file,2,.\wave\sys\hit52_01.wav;//僉儍儞僙儖壒
RETURN ;

* L_sys_SE3_1;
Set_INI sys_SE,file,2,.\wave\sys\kachi00_s.wav;//慖戰壒丒僗儔僀僟乕偺堏摦
RETURN ;



// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴AEG;
Load_BG_SiriteFile DF402/AEG_Check_BG01.png;
Load_FG_SiriteFile DF402/AEG_Check_FG01.png;
//MenuGB_MenuSetID 1;
//MenuGB_SetPos 80,120;
//MenuGB_Titol 儌僯僞乕昞帵妋擣;
//MenuGB_ADD 妋擣偍傢傝;
//Loop_GBmenu ;
MSG_Cls ;
//G_Print 仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩;
MSG_Print 儌僯僞乕偺昞帵傪妋擣偟傑偡;
MSG_Print 柧傞偄応強傗埫偄応強偑尒偊傞偐妋擣偟偰偔偩偝偄;
MSG_Print 廔椆偡傞偵偼儊僢僙乕僕僂傿儞僪僂傪僋儕僢僋偟偰偔偩偝偄;
Loop_MSG false;
RETURN ;




// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴ACV;
Loop_TextFile ,./script/DF402_ACV/ENDROLL.txt;

//Loop_4_FileMenu ./script/DF401_ACV,*[A-Z]*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,[a-zA-Z0-9]*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,[AENDROLZ]*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,###ROLL.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,[AENDROLZ]*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,[a-zA-Z0-9]*.txt,VIEW;

//Loop_4_FileMenu ./script/DF401_ACV,~_*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,:a*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,[a-z]*.txt,VIEW;
//Loop_4_FileMenu ./script/DF401_ACV,*.txt,VIEW;
RETURN ;



// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* 仴DTini;
MenuGB_MenuSetID 1;
MenuGB_SetPos 80,140;
MenuGB_Titol 僎乕儉僨乕僞弶婜壔;
MenuGB_ADD 拞巭;
MenuGB_ADD 弶婜壔偡傞;
MenuGB_ADD 僠乕僩偡傞;//仠懱尡斉
MSG_Cls ;
//G_Print 仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩仩;
MSG_Print 僎乕儉偺僾儗僀僨乕僞傪弶婜壔偟傑偡;
MSG_Print 僆僾僔儑儞偺愝掕傗僉儍儔僋僞乕僇僗僞儉忣曬偼巆傝傑偡;
Loop_GBmenu ;
MSG_Cls ;
Select@ @RetMenu,GOTO,DTini_1,DTini_2,DTini_3;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* DTini_1;
RETURN ;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* DTini_2;

FPS ini;
FPS Set_CharMAX,2;
CALL DF402/FPS_Action_char_set.txt,FPS_庡恖岞;
CALL DF402/FPS_Action_char_set.txt,FPS_DF40_僸儘僀儞1;

CALL DF402/set.txt,DIM_ini;//曄悢弶婜壔丅僎乕儉僾儗僀帪偺弶婜壔丅
CALL DF402/set_BGM.txt,L_GAME_ini;//嬋偺弶婜壔丅
CALL DF402/set.txt,SAVE;//曄悢曐懚丅僋儕傾忣曬側偳傪曐懚
Music STOP;
RETURN ;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
* DTini_3;

FPS ini;
FPS Set_CharMAX,2;
CALL DF402/FPS_Action_char_set.txt,FPS_庡恖岞;
CALL DF402/FPS_Action_char_set.txt,FPS_DF40_僸儘僀儞1;

CALL DF402/set.txt,DIM_ini;//曄悢弶婜壔丅僎乕儉僾儗僀帪偺弶婜壔丅
CALL DF402/set_BGM.txt,L_GAME_ini;//嬋偺弶婜壔丅
CALL DF402/set.txt,DIM_ini_cheat;//曄悢弶婜壔丅僠乕僩
CALL DF402/set.txt,SAVE;//曄悢曐懚丅僋儕傾忣曬側偳傪曐懚
Music STOP;
RETURN ;




//-----------------------------------------------------------------------------+
* 仴廔椆;
* L_menu_end;
RETURN ;//iMENU
END ;


//-----------------------------------------------------------------------------+


