LoadingMSG DF37_カスタムLoad1.png;
INI seen;
CALL DF37_map_set.txt,DF37-ホームA1;

Music STOP;
//Music LOAD,bid.mid;
Music LOAD,kyouki_xg.mid;
Music PLAY,true;
SetViewLimit ALL;


//SetPar_ADDcs P01;//着せ替えアイテムフラグを追加する


//▼ｾﾚｸﾀﾌﾞﾙﾛｰﾄﾞ
//CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
//CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01;
//CALL DF37_char_set.txt,SET_MEGA-CS;//●2:メガネ
//CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
//CALL DF37_char_set.txt,SET_Layer4_CS;//●服
//CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛
//CALL DF37_char_set.txt,SET_LayerEX1_CS;
//CALL DF37_char_set.txt,SET_LayerEX2_CS;
CALL DF37_char_set.txt,SET_LayerALL_CS;

//080103 追加カスタムの解除は通常カスタム時に行う。01235 4服6男7アイテム


* 服装MENU;
Load_BG_SiriteFile 着せ替え画面2.jpg;
IconDELL ;
XFile4_ID 0,true;

Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Mov_View -0.059,0.787,-3.298,-0.0458,0.0064,0.9989,0.000,0.999,-0.006,0.256;
//Set_View -0.062,0.850,-3.295,0.0121,-0.0129,0.9998,0.000,0.999,0.012,0.256;
//Mov_View 0.003,0.785,-3.296,-0.0478,0.0071,0.9988,0.000,0.999,-0.007,0.256;
//Set_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Mov_View 4.265,0.533,1.219,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View MoveTime,30;//視点移動時間指定
GOSUB ﾓｰｼｮﾝ;
CALL DF37_char_set.txt,カメラ目線OFF;
CALL DF37_char_set.txt,表情-可動;

GOSUB 設定更新;

//Load_FG_SiriteFile DF37_カスタムFG1.png;
Load_FG_SiriteFile DF40_カスタム_MenuFG.png;
//1:Type,処理タイプ
//2:TotalTime,表示時間
//3:InOutTime,入りと出の時間(合計で２倍)
//4:ListNo,分割数
//5:OffsetTime,分割時の遅延時間
//6:Move,移動量
Set_FG_SiritePar 4,60,30,1,1,-300;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

//ロード待ち撮影用
//Set_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Set_FG_SiritePar -1;//常に非表示

//GOSUB CAS_MENU;//2007/05/26 ディレクトリメニューのテスト



MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs DF40_CASmenuT_EXIT.png,EXIT　　,, 40, 70;
IconADDcs DF40_CASmenuT_OLDmenu.png,OLD-MENU,,120,110;
IconADDcs DF40_CASmenuT_LOAD.png,LOAD　　,, 40,440;
IconADDcs DF40_CASmenuT_SAVE.png,SAVE　　,,120,440;
IconADDcs DF40_CASmenuT_PREV.png,PREV　　,,600,440;

IconADDcs DF40_CASmenuT_CUSTOM.png,CUSTOM,, 40,230;
IconADDcs DF40_CASmenuT_パレット.png,COLLAR,, 40,310;
IconADDcs DF40_CASmenuT_Zorder.png,Z-ORDER,,120,310;
IconADDcs DF40_CASmenuT_体型.png,FIGURE,,120,230;
//座標は中心。幅64間隔80で指定

IconMSG 0,着せ替え編集を終了します;
IconMSG 1,従来の痴漢鉄着せ替え機能を表示します;
IconMSG 2,キャラクターカスタムをロードします;
IconMSG 3,キャラクターカスタムをセーブします;
IconMSG 4,キャラクターを確認表示します;
IconMSG 5,キャラクターモデルやアイテムを組み替えます;
IconMSG 6,カラーを編集します;
IconMSG 7,Ｚオーダーを変更します;
IconMSG 8,体型を編集します;

Loop_GBmenu ;

IconDELL ;

Goto@ @RetMenu,0,保存終了;

//Mov_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Mov_View -0.062,0.850,-3.295,0.0121,-0.0129,0.9998,0.000,0.999,0.012,0.256;
Mov_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Set_FG_SiritePar 4,60,30,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;

Gosub@ @RetMenu,1,服装MENU_OLD;
Gosub@ @RetMenu,2,BACKUP_MENU_復元;
Gosub@ @RetMenu,3,BACKUP_MENU_保存;
Gosub@ @RetMenu,4,確認表示;

Gosub@ @RetMenu,5,CAS_MENU;
Gosub@ @RetMenu,6,カラーC;
Gosub@ @RetMenu,7,表示順序;
Gosub@ @RetMenu,8,メッシュC;

GOTO 服装MENU;






* 服装MENU_OLD;
Load_BG_SiriteFile 着せ替え画面2.jpg;
IconDELL ;
XFile4_ID 0,true;

Set_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View 4.265,0.533,1.219,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Motion_Load DF37_seen2_ホーム_A01立ち.txt,true,,;
Motion_SetSpeed 0.3;
Motion_KeyType 1;
CALL DF37_char_set.txt,カメラ目線OFF;
CALL DF37_char_set.txt,表情-可動;

GOSUB 設定更新;

Load_FG_SiriteFile DF37_カスタムFG1.png;
Set_FG_SiritePar 4,60,30,1,1,-300;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

Menu_CLS ;
Menu_Titol メニュー;
Menu_ADD 編集終了;
Menu_ADD 下着・水着変更;
Menu_ADD メガネ変更;
Menu_ADD 髪型変更;
Menu_ADD 瞳カラー;
Menu_ADD 陰毛設定;
Menu_ADD ボディTYPE;
Menu_ADD 顔TYPE;
Menu_ADD カラーカスタム;
Menu_ADD オッパイ;
Menu_ADD 確認表示;
Menu_ADD 追加カスタム;
Menu_ADD CAS-BACKUP;
Loop_4_menu false;

Mov_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Set_FG_SiritePar 4,60,30,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;

Goto@ @RetMenu,0,保存終了_OLD;
Gosub@ @RetMenu,1,下水着変更;
Gosub@ @RetMenu,2,メガネ変更;
Gosub@ @RetMenu,3,髪型変更;
Gosub@ @RetMenu,4,瞳変更;
Gosub@ @RetMenu,5,陰毛;
Gosub@ @RetMenu,6,BODYTYPE;
Gosub@ @RetMenu,7,顔C;
Gosub@ @RetMenu,8,カラーC;
Gosub@ @RetMenu,9,胸C;
Gosub@ @RetMenu,10,確認表示;
Gosub@ @RetMenu,11,CAS_MENU;
Gosub@ @RetMenu,12,BACKUP_MENU;

GOTO 服装MENU_OLD;



* 保存終了_OLD;
DataSave3 G_save0.txt;
Set_FG_SiritePar -1;//常に非表示
RETURN ;




* 破棄終了;
DataLoad3 G_save0.txt;
RETURN ;


* 保存終了;
DataSave3 G_save0.txt;
//Motion_Load DF37_seen2_ホーム_A01立ち_バイバイ.txt,true,,;
GOSUB ﾗｽﾄﾓｰｼｮﾝ;
//Mov_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Set_FG_SiritePar 4,60,30,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;

Load_FG_SiriteFile DF37_カスタムFG2.png;
Set_FG_SiritePar 5,120,30,1,1,480;//エフェクト指定
Loop_4_ft -,30,1.0;
Set_FG_SiritePar -1;//常に非表示

RETURN ;


* 確認表示;
//Set_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Mov_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
GOSUB ﾓｰｼｮﾝ;
//CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01-困1;//表情-困1;
CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01c;//カメラ目線・口閉じ
IconDELL ;
IconADD 録画;
IconADD オプション;
IconADD 隠蔽スイッチ;
IconADD カメラ;
IconADD 速度;
IconADD OPB;
Menu_CLS ;

* 確認表示_2;
Menu_CLS Menu;
Menu_Titol メニュー;
Menu_ADD 戻る;
Menu_ADD 服on;
Menu_ADD 服off;
Menu_ADD 下着on;
Menu_ADD 下着off;
Menu_ADD 男on;
Menu_ADD 男off;
Menu_ADD 動き1;
Menu_ADD 動き2;
Menu_ADD ポーズ1;
Menu_ADD ポーズ2;
Menu_ADD ポーズ3;
Menu_ADD ポーズ4;
Menu_ADD ポーズ5;
Menu_ADD 男ポーズ1;
Menu_ADD 男ポーズ2;
Menu_ADD 男ポーズ3;
Menu_ADD 男ポーズ4;
Menu_ADD 男ポーズ5;
Menu_LastPage ;//前回ページ位置を復元する
Loop_4_menu true;
//Select_GOTO ,ani01,ani02;
Goto@ @RetMenu,1,確認表示_服on;
Goto@ @RetMenu,2,確認表示_服off;
Goto@ @RetMenu,3,確認表示_下着on;
Goto@ @RetMenu,4,確認表示_下着off;
Goto@ @RetMenu,5,確認表示_男on;
Goto@ @RetMenu,6,確認表示_男off;
Goto@ @RetMenu,7,ani01;
Goto@ @RetMenu,8,ani02;
Goto@ @RetMenu,9,確認表示_ポーズ1;
Goto@ @RetMenu,10,確認表示_ポーズ2;
Goto@ @RetMenu,11,確認表示_ポーズ3;
Goto@ @RetMenu,12,確認表示_ポーズ4;
Goto@ @RetMenu,13,確認表示_ポーズ5;
Goto@ @RetMenu,14,確認表示_男ポーズ1;
Goto@ @RetMenu,15,確認表示_男ポーズ2;
Goto@ @RetMenu,16,確認表示_男ポーズ3;
Goto@ @RetMenu,17,確認表示_男ポーズ4;
Goto@ @RetMenu,18,確認表示_男ポーズ5;
RETURN ;



* 確認表示_服on;
CALL DF37_char_set.txt,SET_Layer4_CS;//●服
XFile4_ID 0,true;
Motion_SP1Reset ;//慣性リセット
GOTO 確認表示_2;

* 確認表示_服off;
XFile4_ID 4,false;
XFile4_ID 0,true;
GOTO 確認表示_2;

* 確認表示_下着on;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
XFile4_ID 0,true;
Motion_SP1Reset ;//慣性リセット
GOTO 確認表示_2;

* 確認表示_下着off;
XFile4_ID 3,false;
XFile4_ID 0,true;
GOTO 確認表示_2;

* 確認表示_男on;
CALL DF37_char_set.txt,SET_Layer6_CS;
XFile4_ID 0,true;
Motion_SP1Reset ;//慣性リセット
GOTO 確認表示_2;

* 確認表示_男off;
XFile4_ID 6,false;
XFile4_ID 0,true;
GOTO 確認表示_2;



* ani01;
Motion_Load DF37_seen1_車内3_A01抵抗.txt;
Motion_KeyType 2;
Set_View 0.283,-1.182,1.183,-0.4317,0.6586,-0.6162,0.220,0.739,0.635,0.256;
GOTO 確認表示_2;

* ani02;
Motion_Load h4_S08_t4-服装ポーズ(1-2.txt,ture;
Motion_KeyType 2;
Motion_SetSpeed 0.08;
Set_View -0.042,1.190,-4.860,0.0071,-0.1116,0.9937,0.000,0.993,0.111,0.256;
GOTO 確認表示_2;


* 確認表示_ポーズ1;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_01立ち.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_ポーズ2;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_02ポーズ1.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_ポーズ3;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_03ポーズ2.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_ポーズ4;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_04ポーズ3.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_ポーズ5;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_05ポーズ4.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_男ポーズ1;
Set_View 0.049,0.934,-5.101,-0.0057,-0.0234,0.9997,-0.000,0.999,0.023,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_10男ポーズ1.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_男ポーズ2;
Set_View 0.049,0.934,-5.101,-0.0057,-0.0234,0.9997,-0.000,0.999,0.023,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_11男ポーズ2.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_男ポーズ3;
Set_View 0.049,0.934,-5.101,-0.0057,-0.0234,0.9997,-0.000,0.999,0.023,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_12男ポーズ3.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_男ポーズ4;
Set_View 0.049,0.934,-5.101,-0.0057,-0.0234,0.9997,-0.000,0.999,0.023,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_13男ポーズ4.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;

* 確認表示_男ポーズ5;
Set_View 0.049,0.934,-5.101,-0.0057,-0.0234,0.9997,-0.000,0.999,0.023,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_14男ポーズ5.txt,true,,;
Motion_SetSpeed 1.0;
Motion_KeyType 1;
GOTO 確認表示_2;






* RET;
RETURN ;

* 設定更新;
XFile4_ID 0,true;
Motion_SP1Reset ;//慣性リセット
SetLoop SpecialBone,b頭2,0;//カメラ目線解除
RETURN ;


* 下水着変更;
Motion_Load DF37_seen2_ホーム_A01立ち_回転.txt,true,,;
//Motion_Load DF37_ｶｽﾀﾑ画面_06ポーズ4回転.txt,true,,;
Motion_SetSpeed 0.05;
Motion_KeyType 0;
Move_View 4.199,0.654,1.588,-0.9975,0.0504,-0.0490,0.050,0.998,0.002,0.256;
CALL DF37_char_set.txt,カメラ目線ON;

Load_FG_SiriteFile DF37_カスタム_下着FG.png;
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,60,2.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.05;
Motion_SP1Reset ;//慣性リセット

XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;
MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-ret.png,戻る,,420,80;
IconADDcs menu_icon_mmDF37CS-00.png,なし,,420,120;
// 480 520 560 600
IconADDcs menu_icon_mmDF37CS-Shorts_0000.png,ワンピー,,480, 80;
IconADDcs menu_icon_mmDF37CS-Shorts_0001.png,ビキニ　,,480,120;
IconADDcs menu_icon_mmDF37CS-Shorts_0034.png,スク水小,,480,160;
IconADDcs menu_icon_mmDF37CS-Shorts_0008.png,スク水旧,,480,200;
IconADDcs menu_icon_mmDF37CS-Shorts_0024.png,スク水新,,480,240;
IconADDcs menu_icon_mmDF37CS-Shorts_0031.png,スク新Ｈ,,480,280;
IconADDcs menu_icon_mmDF37CS-Shorts_0021.png,スク競泳,,480,320;
IconADDcs menu_icon_mmDF37CS-Shorts_0022.png,競泳ＲＸ,,480,360;
IconADDcs menu_icon_mmDF37CS-Shorts_0025.png,競泳ＶＸ,,480,400;
IconADDcs menu_icon_mmDF37CS-Shorts_0026.png,スポブラ,,480,440;

IconADDcs menu_icon_mmDF37CS-Shorts_0007.png,ワンピー,,600, 80;
IconADDcs menu_icon_mmDF37CS-Shorts_0009.png,ビキニ　,,600,120;
IconADDcs menu_icon_mmDF37CS-Shorts_0010.png,スク水小,,600,160;
IconADDcs menu_icon_mmDF37CS-Shorts_0011.png,スク水旧,,600,200;
IconADDcs menu_icon_mmDF37CS-Shorts_0013.png,スク水新,,600,240;
IconADDcs menu_icon_mmDF37CS-Shorts_0014.png,スク新Ｈ,,600,280;
IconADDcs menu_icon_mmDF37CS-Shorts_0017.png,スク競泳,,600,320;
IconADDcs menu_icon_mmDF37CS-Shorts_0018.png,競泳ＲＸ,,600,360;
IconADDcs menu_icon_mmDF37CS-Shorts_0020.png,競泳ＶＸ,,600,400;
IconADDcs menu_icon_mmDF37CS-Shorts_0019.png,スポブラ,,600,440;

IconADDcs menu_icon_mmDF37CS-Shorts_0027.png,ワンピー,,520, 80;
IconADDcs menu_icon_mmDF37CS-Shorts_0004.png,ビキニ　,,520,120;
IconADDcs menu_icon_mmDF37CS-Shorts_0016.png,スク水小,,520,160;
IconADDcs menu_icon_mmDF37CS-Shorts_0028.png,スク水旧,,520,200;
IconADDcs menu_icon_mmDF37CS-Shorts_0029.png,スク水新,,520,240;
IconADDcs menu_icon_mmDF37CS-Shorts_0030.png,スク新Ｈ,,520,280;
IconADDcs menu_icon_mmDF37CS-Shorts_0032.png,スク競泳,,520,320;
IconADDcs menu_icon_mmDF37CS-Shorts_0003.png,競泳ＲＸ,,520,360;
IconADDcs menu_icon_mmDF37CS-Shorts_0033.png,競泳ＶＸ,,520,400;
IconADDcs menu_icon_mmDF37CS-Shorts_0012.png,スポブラ,,520,440;

IconADDcs menu_icon_mmDF37CS-Shorts_0023.png,ワンピー,,560, 80;
IconADDcs menu_icon_mmDF37CS-Shorts_0035.png,ビキニ　,,560,120;
IconADDcs menu_icon_mmDF37CS-Shorts_0036.png,スク水小,,560,160;
IconADDcs menu_icon_mmDF37CS-Shorts_0037.png,スク水旧,,560,200;
IconADDcs menu_icon_mmDF37CS-Shorts_0038.png,スク水新,,560,240;
IconADDcs menu_icon_mmDF37CS-Shorts_0039.png,スク新Ｈ,,560,280;
IconADDcs menu_icon_mmDF37CS-Shorts_0002.png,スク競泳,,560,320;
IconADDcs menu_icon_mmDF37CS-Shorts_0005.png,競泳ＲＸ,,560,360;
IconADDcs menu_icon_mmDF37CS-Shorts_0015.png,競泳ＶＸ,,560,400;
IconADDcs menu_icon_mmDF37CS-Shorts_0006.png,スポブラ,,560,440;


* 下水着変更-Loop;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,下水着変更-RET;
SetCS p3,@RetMenu;
Set_csDir 3,false,;//3の追加カスタムを無効に
MatColorCHANGE_OFF 水着の色1;//マテリアルカラー変更設定を破棄
MatColorCHANGE_OFF 水着の色2;//読み込む前にリセット
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
GOSUB 設定更新;
GOTO 下水着変更-Loop;


* 下水着変更-RET;
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
RETURN ;





* 髪型変更;
Mov_View 2.492,0.878,1.422,-0.9927,0.0804,-0.0888,0.078,0.996,0.028,0.256;

Load_FG_SiriteFile DF37_カスタム_髪FG.png;
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-ret.png,戻る,,420,80;
IconADDcs menu_icon_mmDF37CS-Hair01a.png,髪型１,,480, 80;
IconADDcs menu_icon_mmDF37CS-Hair01c.png,髪型１,,520, 80;
IconADDcs menu_icon_mmDF37CS-Hair01b.png,髪型１,,560, 80;
IconADDcs menu_icon_mmDF37CS-Hair01d.png,髪型１,,600, 80;

IconADDcs menu_icon_mmDF37CS-Hair02a.png,髪型２,,480,120;
IconADDcs menu_icon_mmDF37CS-Hair02b.png,髪型２,,520,120;
IconADDcs menu_icon_mmDF37CS-Hair02c.png,髪型２,,560,120;
IconADDcs menu_icon_mmDF37CS-Hair02d.png,髪型２,,600,120;

IconADDcs menu_icon_mmDF37CS-Hair03a.png,髪型３,,480,160;
IconADDcs menu_icon_mmDF37CS-Hair03b.png,髪型３,,520,160;
IconADDcs menu_icon_mmDF37CS-Hair03c.png,髪型３,,560,160;
IconADDcs menu_icon_mmDF37CS-Hair03d.png,髪型３,,600,160;

IconADDcs menu_icon_mmDF37CS-Hair04a.png,髪型４,,480,200;
IconADDcs menu_icon_mmDF37CS-Hair04b.png,髪型４,,520,200;
IconADDcs menu_icon_mmDF37CS-Hair04c.png,髪型４,,560,200;
IconADDcs menu_icon_mmDF37CS-Hair04d.png,髪型４,,600,200;

IconADDcs menu_icon_mmDF37CS-Hair05.png,髪型５,,480,240;
IconADDcs menu_icon_mmDF37CS-Hair05b.png,髪型５,,520,240;
IconADDcs menu_icon_mmDF37CS-Hair05c.png,髪型５,,560,240;
IconADDcs menu_icon_mmDF37CS-Hair05d.png,髪型５,,600,240;



* 髪型変更-Loop;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,髪型変更-RET;
SetCS p5,@RetMenu;
Set_csDir 5,false,;//5の追加カスタムを無効に
//モデルを読み込む前にカラーリセット！
MatColorCHANGE_OFF 髪の毛の色;//マテリアルカラー変更設定を破棄
CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛
GOSUB 設定更新;
GOTO 髪型変更-Loop;

* 髪型変更-RET;
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;




* メガネ変更;
Mov_View 2.492,0.878,1.422,-0.9927,0.0804,-0.0888,0.078,0.996,0.028,0.256;
Load_FG_SiriteFile DF37_カスタム_メガネFG.png;
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-ret.png,戻る,,420,80;
IconADDcs menu_icon_mmDF37CS-00.png,なし,,420,120;
IconADDcs menu_icon_mmDF37CS-MEGA_0000.png,メガネ１,,480, 80;
IconADDcs menu_icon_mmDF37CS-MEGA_0001.png,メガネ１,,520, 80;
IconADDcs menu_icon_mmDF37CS-MEGA_0002.png,メガネ１,,560, 80;

IconADDcs menu_icon_mmDF37CS-MEGA_0003.png,四角,,480,120;
IconADDcs menu_icon_mmDF37CS-MEGA_0004.png,四角,,520,120;
IconADDcs menu_icon_mmDF37CS-MEGA_0005.png,四角,,560,120;

IconADDcs menu_icon_mmDF37CS-MEGA_0006.png,ツリ目,,480,160;
IconADDcs menu_icon_mmDF37CS-MEGA_0007.png,ツリ目,,520,160;
IconADDcs menu_icon_mmDF37CS-MEGA_0008.png,ツリ目,,560,160;

IconADDcs menu_icon_mmDF37CS-MEGA_0009.png,丸レンズ,,480,200;
IconADDcs menu_icon_mmDF37CS-MEGA_0010.png,丸レンズ,,520,200;
IconADDcs menu_icon_mmDF37CS-MEGA_0011.png,丸レンズ,,560,200;

IconADDcs menu_icon_mmDF37CS-MEGA_0012.png,リムレス,,480,240;
IconADDcs menu_icon_mmDF37CS-MEGA_0013.png,リムレス,,520,240;
IconADDcs menu_icon_mmDF37CS-MEGA_0014.png,リムレス,,560,240;

* メガネ変更-Loop;
Loop_GBmenu ;
Select@ @RetMenu,GOTO,メガネ変更-RET;
SetCS p2,@RetMenu;
Set_csDir 2,false,;//2の追加カスタムを無効に
CALL DF37_char_set.txt,SET_MEGA-CS;//●2:メガネ
GOSUB 設定更新;
GOTO メガネ変更-Loop;

* メガネ変更-RET;
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;




* 瞳変更;
Mov_View 2.492,0.878,1.422,-0.9927,0.0804,-0.0888,0.078,0.996,0.028,0.256;

Mov_View MoveTime,30;//視点移動時間指定
Load_FG_SiriteFile DF37_カスタム_目FG.png;
//1:Type,処理タイプ
//2:TotalTime,表示時間
//3:InOutTime,入りと出の時間(合計で２倍)
//4:ListNo,分割数
//5:OffsetTime,分割時の遅延時間
//6:Move,移動量
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-ret.png,戻る,,420,80;
IconADDcs menu_icon_mmDF37CS-eye01.png,標準　　,,480, 80;
IconADDcs menu_icon_mmDF37CS-eye02.png,イエロー,,520, 80;
IconADDcs menu_icon_mmDF37CS-eye03.png,エメラル,,560, 80;
IconADDcs menu_icon_mmDF37CS-eye04.png,クリアブ,,600, 80;

IconADDcs menu_icon_mmDF37CS-eye05.png,グレー　,,480,120;
IconADDcs menu_icon_mmDF37CS-eye06.png,ゴールド,,520,120;
IconADDcs menu_icon_mmDF37CS-eye07.png,ブラッド,,560,120;
IconADDcs menu_icon_mmDF37CS-eye08.png,ブルー　,,600,120;

IconADDcs menu_icon_mmDF37CS-eye09.png,マゼンダ,,480,160;
IconADDcs menu_icon_mmDF37CS-eye10.png,ライトブ,,520,160;
IconADDcs menu_icon_mmDF37CS-eye11.png,黄色,,560,160;
IconADDcs menu_icon_mmDF37CS-eye12.png,黒,,600,160;

IconADDcs menu_icon_mmDF37CS-eye13.png,青,,480,200;
IconADDcs menu_icon_mmDF37CS-eye14.png,赤,,520,200;
IconADDcs menu_icon_mmDF37CS-eye15.png,緑,,560,200;
//IconADDcs menu_icon_mmDF37CS-HAIR_0003.png,髪型４,,600,200;

* 瞳変更-Loop;
Loop_GBmenu ;
Goto@ @RetMenu,0,瞳-RET;
Gosub@ @RetMenu,1,瞳-デフォルト;
Gosub@ @RetMenu,2,瞳-イエロー;
Gosub@ @RetMenu,3,瞳-エメラルド;
Gosub@ @RetMenu,4,瞳-クリアブルー;
Gosub@ @RetMenu,5,瞳-グレー;
Gosub@ @RetMenu,6,瞳-ゴールド;
Gosub@ @RetMenu,7,瞳-ブラッド;
Gosub@ @RetMenu,8,瞳-ブルー;
Gosub@ @RetMenu,9,瞳-マゼンダ;
Gosub@ @RetMenu,10,瞳-ライトブルー;
Gosub@ @RetMenu,11,瞳-黄色;
Gosub@ @RetMenu,12,瞳-黒;
Gosub@ @RetMenu,13,瞳-青;
Gosub@ @RetMenu,14,瞳-赤;
Gosub@ @RetMenu,15,瞳-緑;

XFile4_ID 0,true;//一度ダミーを読み込んでメッシュ情報をクリアにする
XFile4_Load DF37_Dummy.x,DF37_Dummy-Rmat.txt;
XFile4_ID 1,true;
XFile4_Load DF37_Dummy.x,DF37_Dummy-Rmat.txt;
CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01;
CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛//陰毛の色を再設定する為。

GOSUB 設定更新;
GOTO 瞳変更-Loop;

* 瞳-RET;
Mov_View MoveTime,30;//視点移動時間指定
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;

* 瞳-デフォルト;
FileCopy mdl\CPFT-01_tex01_デフォルト.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-イエロー;
FileCopy mdl\CPFT-01_tex01_イエロー.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-エメラルド;
FileCopy mdl\CPFT-01_tex01_エメラルド.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-クリアブルー;
FileCopy mdl\CPFT-01_tex01_クリアブルー.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-グレー;
FileCopy mdl\CPFT-01_tex01_グレー.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-ゴールド;
FileCopy mdl\CPFT-01_tex01_ゴールド.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-ブラッド;
FileCopy mdl\CPFT-01_tex01_ブラッド.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-ブルー;
FileCopy mdl\CPFT-01_tex01_ブルー.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-マゼンダ;
FileCopy mdl\CPFT-01_tex01_マゼンダ.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-ライトブルー;
FileCopy mdl\CPFT-01_tex01_ライトブルー.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-黄色;
FileCopy mdl\CPFT-01_tex01_黄色.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-黒;
FileCopy mdl\CPFT-01_tex01_黒.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-青;
FileCopy mdl\CPFT-01_tex01_青.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-赤;
FileCopy mdl\CPFT-01_tex01_赤.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-緑;
FileCopy mdl\CPFT-01_tex01_緑.png,mdl\CPFT-01_tex01.png;
RETURN ;

* 瞳-;
FileCopy mdl\CPFT-01_tex01_.png,mdl\CPFT-01_tex01.png;
RETURN ;




* 陰毛;
Mov_View 2.157,0.514,1.346,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Load_FG_SiriteFile DF37_カスタム_陰毛FG.png;
Set_FG_SiritePar 5,60,30,1,1,-300;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

XFile4_ID 3,false;//下着を消す
XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;
MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-ret.png,戻る,,420,80;
IconADDcs menu_icon_mmDF37CS-UnderHair01.png,無毛　　,,480, 80;
IconADDcs menu_icon_mmDF37CS-UnderHair02.png,陰毛−小,,520, 80;
IconADDcs menu_icon_mmDF37CS-UnderHair03.png,陰毛−中,,560, 80;
IconADDcs menu_icon_mmDF37CS-UnderHair04.png,陰毛−大,,600, 80;

* 陰毛-Loop;
Loop_GBmenu ;
Goto@ @RetMenu,0,陰毛-RET;
Gosub@ @RetMenu,1,陰毛-無;
Gosub@ @RetMenu,2,陰毛-小;
Gosub@ @RetMenu,3,陰毛-中;
Gosub@ @RetMenu,4,陰毛-大;

XFile4_ID 0,true;//一度ダミーを読み込んでメッシュ情報をクリアにする
XFile4_Load DF37_Dummy.x,DF37_Dummy-Rmat.txt;
CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
MatColorCopy 5,髪1,0,陰毛;

GOSUB 設定更新;
GOTO 陰毛-Loop;


* 陰毛-RET;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
//脱がしたので、もう一度着せる

CALL DF37_char_set.txt,SET_Layer4_CS;//●服

Set_FG_SiritePar 5,60,30,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;


* 陰毛-無;
FileCopy mdl\CPFT-01_tex17_0.png,mdl\CPFT-01_tex17.png;
RETURN ;

* 陰毛-小;
FileCopy mdl\CPFT-01_tex17_1.png,mdl\CPFT-01_tex17.png;
RETURN ;

* 陰毛-中;;
FileCopy mdl\CPFT-01_tex17_2.png,mdl\CPFT-01_tex17.png;
RETURN ;

* 陰毛-大;
FileCopy mdl\CPFT-01_tex17_3.png,mdl\CPFT-01_tex17.png;
RETURN ;




* カラーC;
Load_FG_SiriteFile DF37_カラーアセンBG.png;
//1:Type,処理タイプ
//2:TotalTime,表示時間
//3:InOutTime,入りと出の時間(合計で２倍)
//4:ListNo,分割数
//5:OffsetTime,分割時の遅延時間
//6:Move,移動量
Set_FG_SiritePar 1,120,30,6,5,1200;//エフェクト指定
Loop_4_ft 0,60,1.0;

//XFile4_ID 4,false;//服を消す
//XFile4_ID 0,true;


Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Load_BG_SiriteFile DF37_カラーアセンBG.png;
//Motion_Load DF37_seen2_ホーム_A01立ち_回転.txt,true,,;
Motion_Load DF37_ｶｽﾀﾑ画面_06ポーズ4回転.txt,true,,;
Motion_SetSpeed 0.05;
Motion_KeyType 0;

Loop_4_ft 0,120,2.0;
Motion_SetSpeed 0.05;

Load_FG_SiriteFile DF37_カラーアセン1.png;
Set_FG_SiritePar 0;//常に表示
* カラーC-Loop;
//GOTO カラーC-追加;//090902 常に追加カスタムのみを使用する
Menu_CLS ;
Menu_Titol カラーカスタマイズ;
Menu_ADD ＯＫ;
Menu_ADD 髪の毛;
Menu_ADD 下着/水着ﾒｲﾝｶﾗｰ;
Menu_ADD 下着/水着ｻﾌﾞｶﾗｰ;
Menu_ADD ｶﾗｰ解除-髪の毛;
Menu_ADD ｶﾗｰ解除-下着;
Menu_ADD 追加カラーカスタム;
Loop_4_menu true;
Select_GOTO ,カラーC-1,カラーC-2,カラーC-3,カラーC-解除-髪,カラーC-解除-下着;
Goto@ @RetMenu,6,カラーC-追加;


//* カラーC-Exit;
Load_FG_SiriteFile DF37_カラーアセン3.png;
Set_FG_SiritePar 4,120,20,6,5,700;//エフェクト指定
Loop_4_ft -,120,2.0;
Set_FG_SiritePar -1;//常に非表示

CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
RETURN ;




* カラーC-追加;
  //Load_FG_SiriteFile DF40_カラーアセン4.png;
  Set_FG_SiritePar 0;//常に表示
Loop_MatColorCHANGE12 ;//080522マテリアルカラーの変更・追加拡張領域
  Set_FG_SiritePar -1;//常に非表示
//Goto@ @RetMenu,0,カラーC-Exit;
GOTO カラーC-Loop;


* カラーC-解除-髪;
MatColorCHANGE_OFF 髪の毛の色;//マテリアルカラー変更設定を破棄
CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛
GOTO カラーC-Loop;

* カラーC-解除-下着;
MatColorCHANGE_OFF 水着の色1;//マテリアルカラー変更設定を破棄
MatColorCHANGE_OFF 水着の色2;//読み込む前にリセット
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOTO カラーC-Loop;


* カラーC-1;
Load_FG_SiriteFile DF37_カラーアセン2.png;
Set_FG_SiritePar 0;//常に表示
//
Loop_MatColorCHANGE 5,髪1,5,髪2,髪の毛の色;
MatColorCHANGE 5,髪1,5,髪2,髪の毛の色;
//
Set_FG_SiritePar -1;//常に非表示
GOTO カラーC-Loop;


* カラーC-2;
Load_FG_SiriteFile DF37_カラーアセン2.png;
Set_FG_SiritePar 0;//常に表示
//
Loop_MatColorCHANGE 3,下着1,,-1,水着の色1;
MatColorCHANGE 3,下着1,,-1,水着の色1;
//
Set_FG_SiritePar -1;//常に非表示
GOTO カラーC-Loop;


* カラーC-3;
Load_FG_SiriteFile DF37_カラーアセン2.png;
Set_FG_SiritePar 0;//常に表示
//
Loop_MatColorCHANGE 3,下着2,,-1,水着の色2;
MatColorCHANGE 3,下着2,,-1,水着の色2;
//
Set_FG_SiritePar -1;//常に非表示
GOTO カラーC-Loop;




* BODYTYPE;
XFile4_ID 3,false;//下着を消す
XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;

Menu_CLS ;
Menu_Titol ボディー設定;
Menu_ADD 戻る;
Menu_ADD ノーマル;
Menu_ADD ハイポリゴン;
Loop_4_menu false;
Select_GOTO ,BODYTYPE-1,BODYTYPE-2;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
RETURN ;

* BODYTYPE-1;
SetCS p4,0;
Set_csDir 0,false,;//0の追加カスタムを無効に
CALL DF37_char_set.txt,SET_BODY-CS;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
RETURN ;


* BODYTYPE-2;
SetCS p4,1;
Set_csDir 0,false,;//0の追加カスタムを無効に
CALL DF37_char_set.txt,SET_BODY-CS;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
RETURN ;




* 顔C;
Mov_View 2.492,0.878,1.422,-0.9927,0.0804,-0.0888,0.078,0.996,0.028,0.256;

Mov_View MoveTime,30;//視点移動時間指定
Load_FG_SiriteFile DF37_カスタム_顔FG.png;
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;

MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs menu_icon_mmDF37CS-Face01.png,標準　　,,520,140;
IconADDcs menu_icon_mmDF37CS-Face02.png,吊り眼　,,520,300;

* 顔C-Loop;
Loop_GBmenu ;
Gosub@ @RetMenu,0,顔C-1;
Gosub@ @RetMenu,1,顔C-2;
CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01;
GOSUB 設定更新;

Mov_View MoveTime,30;//視点移動時間指定
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;


* 顔C-1;
SetCS p1,1;
Set_csDir 1,false,;//1の追加カスタムを無効に
RETURN ;

* 顔C-2;
SetCS p1,3;
Set_csDir 1,false,;//1の追加カスタムを無効に
RETURN ;





//------------------------------------------------------------------------------
* メッシュC;
Load_BG_SiriteFile DF40_形状カス_MenuBG.png;
Load_FG_SiriteFile DF40_形状カス_MenuFG.png;
Set_FG_SiritePar 4,999999,30,1,1,-300;//エフェクト指定080621
//Set_View 3.282,0.754,0.074,-0.9263,0.0692,0.3703,0.064,0.997,-0.025,0.256;
Set_View 0.013,0.915,-2.256,-0.0381,0.0074,0.9992,0.000,0.999,-0.007,0.256;
Motion_Load DF37_ｶｽﾀﾑ画面_06ポーズ4回転.txt,true,,;
Motion_SetSpeed 0.0;

Menu_CLS ;
Menu_Titol モデル形状のカスタム;
Menu_ADD 戻る;
Menu_ADD 胸カスタム;
Menu_ADD 体型カスタム;
Loop_4_menu false;

Set_FG_SiritePar 4,30,15,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,15,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.0;

Goto@ @RetMenu,0,メッシュC-RET;
Gosub@ @RetMenu,1,胸C;
Gosub@ @RetMenu,2,体型C;
GOTO メッシュC;

//------------------------------------------------------------------------------
* メッシュC-RET;
RETURN ;

//------------------------------------------------------------------------------
* 胸C;
Load_FG_SiriteFile DF37_パイカス_FG1.png;
Set_FG_SiritePar 1,120,30,6,5,1200;//エフェクト指定
Loop_4_ft -,60,1.0;

XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;

Load_BG_SiriteFile DF37_パイカス_BG.png;
//Motion_Load DF37_seen2_ホーム_A01立ち_回転.txt,true,,;
Motion_Load DF37_ｶｽﾀﾑ画面_06ポーズ4回転.txt,true,,;
Motion_SetSpeed 0.05;
Motion_SetSpeed 0.0;
Motion_KeyType 0;
//Set_View 1.899,0.908,1.716,-0.8532,-0.0687,-0.5169,-0.065,0.997,-0.024,0.256;
Set_View -0.548,0.935,1.052,0.5197,-0.0660,-0.8517,0.034,0.997,-0.056,0.256;
Loop_4_ft 0,60,1.0;
Motion_SetSpeed 0.05;
Motion_SetSpeed 0.0;

Load_FG_SiriteFile DF37_パイカス_FG.png;
Set_FG_SiritePar 0;//常に表示
* 胸C-Loop;
Loop_OpaiCNV ;//バストサイズのカスタマイズ

Load_FG_SiriteFile DF37_パイカス_FG1.png;
Set_FG_SiritePar 4,120,20,6,5,700;//エフェクト指定
Loop_4_ft -,60,1.0;
Set_FG_SiritePar -1;//常に非表示

//モデル変形時の精度の問題の為、再度読み込む
CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛　//陰毛色の為
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
RETURN ;



//------------------------------------------------------------------------------
* 体型C;
Load_FG_SiriteFile DF37_パイカス_FG1.png;
Set_FG_SiritePar 1,120,30,6,5,1200;//エフェクト指定
Loop_4_ft -,60,1.0;

//Set_View 5.975,0.302,1.261,-0.9927,0.0804,-0.0888,0.080,0.996,0.007,0.256;
Set_View 0.092,0.753,-5.419,-0.0888,-0.0209,0.9958,-0.001,0.999,0.020,0.256;
Motion_SetSpeed 0.1;
Load_BG_SiriteFile DF40_体型カス_BG.png;
Load_FG_SiriteFile DF40_体型カス_FG.png;
Set_FG_SiritePar 0;//常に表示

* 体型C-Loop;
Loop_FigureCNV ;//080731 体型変更。通称ロリコンスライダー

Load_FG_SiriteFile DF37_パイカス_FG1.png;
Set_FG_SiritePar 4,120,20,6,5,700;//エフェクト指定
Loop_4_ft -,60,1.0;
Set_FG_SiritePar -1;//常に非表示
RETURN ;






//------------------------------------------------------------------------------
* CAS_MENU;
Load_BG_SiriteFile 着せ替え画面2.jpg;
IconDELL ;
//Set_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Set_View 0.092,0.823,-3.693,-0.0478,0.0071,0.9988,0.000,0.999,-0.007,0.256;
Set_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;


* CAS_MENU_Loop;
XFile4_ID 0,true;
GOSUB ﾓｰｼｮﾝ;//090117 男でモーションを変更する為、この時点で再度読み込んで変更する
//Mov_View 4.265,0.533,1.219,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
//Mov_View 0.175,0.779,-3.110,-0.0988,0.0108,0.9950,0.001,0.999,-0.010,0.256;
Mov_View -0.059,0.787,-3.298,-0.0458,0.0064,0.9989,0.000,0.999,-0.006,0.256;
Mov_View MoveTime,30;//視点移動時間指定
CALL DF37_char_set.txt,カメラ目線OFF;
//CALL DF37_char_set.txt,表情-可動;//080621 ﾌﾟﾚﾋﾞｭｰより速度優先

GOSUB 設定更新;

Load_FG_SiriteFile DF40_追加カスタム_MenuFG.png;
//Set_FG_SiritePar 4,60,30,1,1,-300;//エフェクト指定
//Loop_4_ft 0,30,1.0;
//Set_FG_SiritePar 0;//常に表示
Set_FG_SiritePar 4,999999,30,1,1,-300;//エフェクト指定080621
Motion_SetSpeed 0.3;

//旧仕様
//Menu_CLS ;
//Menu_Titol 追加カスタム;
//Menu_ADD 追加カスタム終了;
//Menu_ADD レイヤー０体;
//Menu_ADD レイヤー１顔;//(顔!;
//Menu_ADD レイヤー２眼鏡/ﾌﾞﾗ;//眼鏡;
//Menu_ADD レイヤー３下着/ﾊﾟﾝﾂ;
//Menu_ADD レイヤー４服;//(服!;
//Menu_ADD レイヤー５髪;
//Menu_ADD レイヤー６男;//(男!;
//Menu_ADD レイヤー７(ｱｲﾃﾑ!;
//Menu_ADD レイヤーEX1;
//Menu_ADD レイヤーEX2;
//Menu_ADD レイヤーEX3;
//Menu_ADD レイヤーEX4;
//Menu_ADD レイヤーEX5;
//Loop_4_menu false;

//(は本編では適応されない。

MenuGB_MenuSetID -1;
IconDELL ;
IconADDcs DF40_CASmenu_01.png,戻る　　,, 40, 70;
IconADDcas  0,体　,, 40,230;
IconADDcas  1,顔　,, 40,150;
IconADDcas  2,ﾒｶﾞﾈ,,120,190;
IconADDcas  3,下着,,120,270;
IconADDcas  4,衣類,,200,230;
IconADDcas  5,髪　,,120,110;
IconADDcas  6,男　,, 40,360;
IconADDcas  7,ｱｲﾃﾑ,,120,360;
IconADDcas  8,EX1 ,, 40,440;
IconADDcas  9,EX2 ,,120,440;
IconADDcas 10,EX3 ,,200,440;
IconADDcas 11,EX4 ,,280,440;
IconADDcas 12,EX5 ,,360,440;

IconMSG 0,編集を終了します;
IconMSG 1,体のモデルを選択します;
IconMSG 2,顔のモデルを選択します;
IconMSG 3,メガネのモデルを選択します;
IconMSG 4,下着・水着のモデルを選択します;
IconMSG 5,衣類のモデルを選択します;
IconMSG 6,髪のモデルを選択します;
IconMSG 7,男性のモデルを選択します;
IconMSG 8,アイテムのモデルを選択します;
IconMSG 9,EXアイテムのモデルを選択します;
IconMSG 10,EXアイテムのモデルを選択します;
IconMSG 11,EXアイテムのモデルを選択します;
IconMSG 12,EXアイテムのモデルを選択します;
IconMSG 13,EXアイテムのモデルを選択します;

Loop_GBmenu ;


//Mov_View 4.242,0.530,1.478,-0.9927,0.0804,-0.0888,0.079,0.996,0.019,0.256;
Mov_View 0.039,0.820,-3.291,-0.0058,-0.0035,0.9999,-0.000,0.999,0.003,0.256;
Mov_View MoveTime,15;//視点移動時間指定
Set_FG_SiritePar 4,30,15,1,1,300;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,15,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;

Goto@ @RetMenu,0,RET;
Gosub@ @RetMenu,1,CAS_0;
Gosub@ @RetMenu,2,CAS_1;
Gosub@ @RetMenu,3,CAS_2;
Gosub@ @RetMenu,4,CAS_3;
Gosub@ @RetMenu,5,CAS_4;
Gosub@ @RetMenu,6,CAS_5;
Gosub@ @RetMenu,7,CAS_6;
Gosub@ @RetMenu,8,CAS_7;
Gosub@ @RetMenu,9,CAS_EX1;
Gosub@ @RetMenu,10,CAS_EX2;
Gosub@ @RetMenu,11,CAS_EX3;
Gosub@ @RetMenu,12,CAS_EX4;
Gosub@ @RetMenu,13,CAS_EX5;
//GOTO CAS_MENU;
GOTO CAS_MENU_Loop;//080621

//フ７ﾌ7


//------------------------------------------------------------------------------
* CAS_0;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
//Mov_View -0.109,0.827,-4.698,0.1724,-0.0019,0.9850,0.000,0.999,0.001,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
XFile4_ID 3,false;//下着を消す
XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;
GOSUB CAS_画面移行汎用_前;
//DirMenuはカスタム以外で使用しないと考え、
//パラメーターの変更も全て同時に内部処理する

* CAS_0_MENU;
Loop_4_DirMenu 0;
Goto@ @RetMenu,0,CAS_0_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOTO CAS_0_MENU;

* CAS_0_RET;
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOSUB CAS_画面移行汎用_後;
RETURN ;

//------------------------------------------------------------------------------
* CAS_1;
//Move_View 4.199,0.654,1.588,-0.9975,0.0504,-0.0490,0.050,0.998,0.002,0.256;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_1_MENU;
Loop_4_DirMenu 1;
Goto@ @RetMenu,0,CAS_1_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
//CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01;
CALL DF37_char_set.txt,SET_Layer1_CS;
GOTO CAS_1_MENU;

* CAS_1_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
* CAS_2;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_2_MENU;
Loop_4_DirMenu 2;
Goto@ @RetMenu,0,CAS_2_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_MEGA-CS;//●2:メガネ
XFile4_ID 0,true;//慣性リセットADD071214
//Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_2_MENU;

* CAS_2_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
* CAS_3;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
XFile4_ID 4,false;//服を消す
XFile4_ID 0,true;
GOSUB CAS_画面移行汎用_前;

* CAS_3_MENU;
Loop_4_DirMenu 3;
Goto@ @RetMenu,0,CAS_3_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
MatColorCHANGE_OFF 水着の色1;//マテリアルカラー変更設定を破棄
MatColorCHANGE_OFF 水着の色2;//読み込む前にリセット
CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOTO CAS_3_MENU;

* CAS_3_RET;
CALL DF37_char_set.txt,SET_Layer4_CS;//●服//脱がしたので、もう一度着せる
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
* CAS_4;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_4_MENU;
Loop_4_DirMenu 4;
Goto@ @RetMenu,0,CAS_4_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_Layer4_CS;
XFile4_ID 0,true;//慣性リセット
Motion_SP1Reset ;//慣性リセット
GOTO CAS_4_MENU;

* CAS_4_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
* CAS_5;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_5_MENU;
Loop_4_DirMenu 5;
Goto@ @RetMenu,0,CAS_5_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
MatColorCHANGE_OFF 髪の毛の色;//マテリアルカラー変更設定を破棄
CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_5_MENU;

* CAS_5_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
* CAS_6;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
//Mov_View -1.881,-1.093,-5.502,0.4167,0.0049,0.9089,0.011,0.999,-0.010,0.256;
//Mov_View 2.605,1.041,-2.809,-0.5697,-0.0416,0.8207,-0.023,0.999,0.034,0.256;
GOSUB 男ﾓｰｼｮﾝ;
//Mov_View 1.336,1.099,-3.061,-0.2446,-0.0705,0.9670,-0.017,0.997,0.068,0.256;
Mov_View 0.252,0.744,-5.264,0.0628,-0.0003,0.9980,0.000,0.999,0.000,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_6_MENU;
Loop_4_DirMenu 6;
Goto@ @RetMenu,0,CAS_6_RET;
//GOSUB CAS_画面移行汎用_着替え汎用;
//Set_View -1.881,-1.093,-5.502,0.4167,0.0049,0.9089,0.011,0.999,-0.010,0.256;
//Set_View 1.336,1.099,-3.061,-0.2446,-0.0705,0.9670,-0.017,0.997,0.068,0.256;
Set_View 0.252,0.744,-5.264,0.0628,-0.0003,0.9980,0.000,0.999,0.000,0.256;
CALL DF37_char_set.txt,SET_Layer6_CS;
XFile4_ID 0,true;//慣性リセットADD080502
Motion_SP1Reset ;//慣性リセットADD080502
GOTO CAS_6_MENU;

* CAS_6_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
//7追加アイテム
* CAS_7;
CALL DF37_char_set.txt,SET_Layer7_CS;
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
GOSUB CAS_画面移行汎用_前;

* CAS_7_MENU;
Loop_4_DirMenu 7;
Goto@ @RetMenu,0,CAS_7_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_Layer7_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_7_MENU;

* CAS_7_RET;
GOSUB CAS_画面移行汎用_後;
RETURN ;


//------------------------------------------------------------------------------
//EX1(8)
* CAS_EX1;
GOSUB CAS_画面移行汎用_前;

* CAS_EX1_MENU;
//Mov_View 6.384,0.671,1.827,-0.9997,-0.0051,-0.0226,-0.005,0.999,-0.000,0.256;
Mov_View 0.149,0.711,-5.404,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;//EXｱｲﾃﾑは靴や帽子も扱うので全身が入る様に
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_DirMenu 8,EX;//ﾚｲﾔｰ8番編集ﾒﾆｭｰ。移動ﾌｫﾙﾀﾞ任意指定(未指定時はﾚｲﾔｰ番号)
Goto@ @RetMenu,0,CAS_EX_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_LayerEX1_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_EX1_MENU;

* CAS_EX_RET;//EXの汎用
GOSUB CAS_画面移行汎用_後;
RETURN ;

//------------------------------------------------------------------------------
//EX2(9)
* CAS_EX2;
GOSUB CAS_画面移行汎用_前;

* CAS_EX2_MENU;
Mov_View 0.149,0.711,-5.404,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_DirMenu 9,EX;//ﾚｲﾔｰ8番編集ﾒﾆｭｰ。移動ﾌｫﾙﾀﾞ任意指定(未指定時はﾚｲﾔｰ番号)
Goto@ @RetMenu,0,CAS_EX_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_LayerEX2_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_EX2_MENU;

//------------------------------------------------------------------------------
//EX3(10)
* CAS_EX3;
GOSUB CAS_画面移行汎用_前;

* CAS_EX3_MENU;
Mov_View 0.149,0.711,-5.404,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_DirMenu 10,EX;//ﾚｲﾔｰ8番編集ﾒﾆｭｰ。移動ﾌｫﾙﾀﾞ任意指定(未指定時はﾚｲﾔｰ番号)
Goto@ @RetMenu,0,CAS_EX_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_LayerEX3_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_EX3_MENU;

//------------------------------------------------------------------------------
//EX4(11)
* CAS_EX4;
GOSUB CAS_画面移行汎用_前;

* CAS_EX4_MENU;
Mov_View 0.149,0.711,-5.404,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_DirMenu 11,EX;//ﾚｲﾔｰ8番編集ﾒﾆｭｰ。移動ﾌｫﾙﾀﾞ任意指定(未指定時はﾚｲﾔｰ番号)
Goto@ @RetMenu,0,CAS_EX_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_LayerEX4_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_EX4_MENU;

//------------------------------------------------------------------------------
//EX5(12)
* CAS_EX5;
GOSUB CAS_画面移行汎用_前;

* CAS_EX5_MENU;
Mov_View 0.149,0.711,-5.404,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_DirMenu 12,EX;//ﾚｲﾔｰ8番編集ﾒﾆｭｰ。移動ﾌｫﾙﾀﾞ任意指定(未指定時はﾚｲﾔｰ番号)
Goto@ @RetMenu,0,CAS_EX_RET;
GOSUB CAS_画面移行汎用_着替え汎用;
CALL DF37_char_set.txt,SET_LayerEX5_CS;
XFile4_ID 0,true;//慣性リセットADD071214
Motion_SP1Reset ;//慣性リセットADD071214
GOTO CAS_EX5_MENU;




//------------------------------------------------------------------------------

* CAS_画面移行汎用_前;//080621 DF40ｺﾒﾝﾄ画面演出の並列化で高速化
Load_FG_SiriteFile DF40_追加カスタム_DirFG.png;
Set_FG_SiritePar 4,999999,30,1,1,400;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Motion_SetSpeed 0.3;
RETURN ;

//従来
Load_FG_SiriteFile DF37_追加カスタム_DirFG.png;
Set_FG_SiritePar 4,60,30,1,1,400;//エフェクト指定
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,60,2.0;
Set_FG_SiritePar 0;//常に表示
Motion_SetSpeed 0.3;
RETURN ;


* CAS_画面移行汎用_後;
Set_FG_SiritePar 4,30,15,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,15;//視点移動時間指定
Loop_4_ft 0,15,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;

//従来
Set_FG_SiritePar 4,60,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Mov_View MoveTime,30;//視点移動時間指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;


* CAS_画面移行汎用_着替え汎用;
XFile4_ID 0,true;//071214 最初からココでﾓｰｼｮﾝのIDをﾘｾｯﾄすれば良かった
//Motion_Load DF37_seen2_ホーム_A01立ち_回転.txt,true,,;
Motion_Load DF37_ｶｽﾀﾑ画面_06ポーズ4回転.txt,true,,;
Motion_KeyType 0;
//Mov_View 4.425,0.760,0.717,-0.9999,0.0026,-0.0019,0.002,0.999,0.000,0.256;
Mov_View -0.656,0.768,-4.200,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
//Mov_View -0.466,0.767,-4.212,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,15;//視点移動時間指定

EF FeedColor,b;
EF Feed,IN;
//Loop_4_ft 0,50,4.0;
Loop_4_ft 0,100,8.0;
EF Feed,OFF;
//MSG_Cls ;
//MSG_Print 視点調整;
//Loop_MSG true;

//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.142,0.768,-4.251,0.0632,-0.0118,0.9979,0.000,0.999,0.011,0.256;
Mov_View MoveTime,10;//視点移動時間指定
GOSUB ﾓｰｼｮﾝ;
RETURN ;
//071214 稀にﾓｰｼｮﾝが速くなる異常を確認


//------------------------------------------------------------------------------
//キャラ設定ファイルを退避・復元するｿﾙｼﾞｭ
//------------------------------------------------------------------------------
* BACKUP_MENU;
GOSUB ﾓｰｼｮﾝ;

Menu_CLS ;
Menu_Titol バックアップ;
Menu_ADD 戻る;
Menu_ADD 保存する;
Menu_ADD 復元する;
Loop_4_menu false;

Goto@ @RetMenu,0,BACKUP_MENU_RET;
Gosub@ @RetMenu,1,BACKUP_MENU_保存;
Gosub@ @RetMenu,2,BACKUP_MENU_復元;
GOTO BACKUP_MENU;


//------------------------------------------------------------------------------
* BACKUP_MENU_RET;
RETURN ;


//------------------------------------------------------------------------------
* BACKUP_MENU_保存;
Load_FG_SiriteFile DF37_CAS_BACKUP_FG01.png;
Set_FG_SiritePar 4,600,30,1,1,400;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示

DataSave3_BackupMenu ;

Set_FG_SiritePar 4,600,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示
RETURN ;


//------------------------------------------------------------------------------
* BACKUP_MENU_復元;
Load_FG_SiriteFile DF37_CAS_BACKUP_FG02.png;
Set_FG_SiritePar 4,600,30,1,1,400;//エフェクト指定
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar 0;//常に表示

DataLoad3_BackupMenu ;

Set_FG_SiritePar 4,600,30,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,30,1.0;
Set_FG_SiritePar -1;//常に非表示

Goto@ @RetMenu,0,BACKUP_MENU_復元_2;

//再読み込み
* BACKUP_MENU_復元_1;
LoadingMSG DF37_カスタムLoad1.png;
//CALL DF37_char_set.txt,SET_BODY-CS;//SET_CPFT-02_1-BODY3b;
//CALL DF37_char_set.txt,SET_CPFT-02_1-FACE01;
//CALL DF37_char_set.txt,SET_MEGA-CS;//●2:メガネ
//CALL DF37_char_set.txt,SET_SHORTS-CS;//●3:下着・水着
//CALL DF37_char_set.txt,SET_Layer4_CS;//●服
//CALL DF37_char_set.txt,SET_HAIR-CS;//●5:髪の毛
//XFile4_ID 6,false;
//XFile4_ID 7,false;

//090304 仕様変更。男とアイテムも読み込む！
CALL DF37_char_set.txt,SET_LayerALL_CS;

XFile4_ID 0,true;
Motion_SP1Reset ;//慣性リセット
RETURN ;

//読み込み無し・キャンセル時
* BACKUP_MENU_復元_2;
RETURN ;



//------------------------------------------------------------------------------
* 表示順序;
Load_FG_SiriteFile DF40_表示順序変更_FG.png;
Set_FG_SiritePar 4,999999,30,1,1,400;//エフェクト指定
//Mov_View 4.430,0.769,1.468,-1.0000,0.0000,0.0010,0.000,1.000,0.000,0.256;
Mov_View 0.143,0.802,-4.679,0.0632,-0.0218,0.9977,0.001,0.999,0.021,0.256;
Mov_View MoveTime,30;//視点移動時間指定
Motion_SetSpeed 0.3;

Loop_4_PrintOrderMenu ;

Set_FG_SiritePar 4,30,15,1,1,-400;//エフェクト指定
Set_FG_SiritePar after;
Loop_4_ft 0,15,1.0;
Set_FG_SiritePar -1;//常に非表示
Motion_SetSpeed 0.3;
RETURN ;


//------------------------------------------------------------------------------
* ﾓｰｼｮﾝ;

switch rand,5;//ランダムで処理分岐
	Motion_Load DF37_ｶｽﾀﾑ画面_01立ち.txt,true,,;
	Motion_SetSpeed 1.0;
	Motion_KeyType 1;
switch case,2;
	Motion_Load DF37_ｶｽﾀﾑ画面_02ポーズ1.txt,true,,;
	Motion_SetSpeed 1.0;
	Motion_KeyType 1;
switch case,3;
	Motion_Load DF37_ｶｽﾀﾑ画面_03ポーズ2.txt,true,,;
	Motion_SetSpeed 1.0;
	Motion_KeyType 1;
switch case,4;
	Motion_Load DF37_ｶｽﾀﾑ画面_04ポーズ3.txt,true,,;
	Motion_SetSpeed 1.0;
	Motion_KeyType 1;
switch case,5;
	Motion_Load DF37_ｶｽﾀﾑ画面_05ポーズ4.txt,true,,;
	Motion_SetSpeed 1.0;
	Motion_KeyType 1;
switch end;


RETURN ;


//	Motion_Load DF37_ｶｽﾀﾑ画面_02ポーズ1(1.txt,true,,;
//	Motion_Load DF37_ｶｽﾀﾑ画面_02ポーズ1(2.txt,true,,;


* 男ﾓｰｼｮﾝ;
switch rand,5;//ランダムで処理分岐
	Motion_Load DF37_ｶｽﾀﾑ画面_10男ポーズ1.txt,true,,;
switch case,2;
	Motion_Load DF37_ｶｽﾀﾑ画面_11男ポーズ2.txt,true,,;
switch case,3;
	Motion_Load DF37_ｶｽﾀﾑ画面_12男ポーズ3.txt,true,,;
switch case,4;
	Motion_Load DF37_ｶｽﾀﾑ画面_13男ポーズ4.txt,true,,;
switch case,5;
	Motion_Load DF37_ｶｽﾀﾑ画面_14男ポーズ5.txt,true,,;
switch end;

Motion_SetSpeed 1.0;
Motion_KeyType 1;

RETURN ;



* ﾗｽﾄﾓｰｼｮﾝ;
switch rand,5;//ランダムで処理分岐
	Motion_Load DF37_ｶｽﾀﾑ画面_07end敬礼.txt,true,,;
switch case,2;
	Motion_Load DF37_ｶｽﾀﾑ画面_09endｱｲﾋﾞｰﾊﾞｯｸ.txt,true,,;
switch case,3;
	Motion_Load DF37_ｶｽﾀﾑ画面_08endバイバイ.txt,true,,;
switch case,4;
	Motion_Load DF37_ｶｽﾀﾑ画面_08endバイバイ.txt,true,,;
switch case,5;
	Motion_Load DF37_ｶｽﾀﾑ画面_08endバイバイ.txt,true,,;
switch end;

Motion_SetSpeed 1.0;
Motion_KeyType 1;

RETURN ;


//------------------------------------------------------------------------------
