PluginHeader{
	RailSimVersion = 2.15;
	PluginType = Train;
	PluginName = "【Enth架空車】KMK２００形";
	PluginAuthor = "Enthiesia";
	IconTexture = "../Common_Enth/enthiesiaicon.png";
	Description = "定義ファイル更新:191230";
}
TrainInfo{
	FrontLimit = 10.0;
	TailLimit = -10.0;
	MaxVelocity = 120.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.0;
	DoorClosingTime = 7;
}
DefineSwitch"電源"{
	GroupCommon = "電源"; 
	Entry = "入";
	Entry = "切（ランプ・照明を全消灯します）";
}
DefineSwitch"方向幕１コマ下げ"{
	GroupCommon = "方向幕１コマ下げ";
	Entry = "デフォルト";
	Entry = "";
	Entry = "→各停　南関川";
	Entry = "→快速　南関川";
	Entry = "→各停　南河合";
	Entry = "→快速　南河合";
	Entry = "→回送";
	Entry = "→試運転";
	Entry = "→団体";
	Entry = "→臨時";
	Entry = "→各停";
	Entry = "→快速";
	Entry = "→急行";
	Entry = "→準急";
	Entry = "→各停　香坂";
	Entry = "→各停　樫合";
	Entry = "→各停　南喜多夢良";
	Entry = "→快速　香坂";
	Entry = "→快速　藤沢";
	Entry = "→快速　南喜多夢良";
	Entry = "→香坂";
	Entry = "→樫合";
	Entry = "→南喜多夢良";
	Entry = "→南河合";
	Entry = "→藤沢";
	Entry = "→南関川";
	Entry = "→所橋";
	Entry = "→喜多夢良";
	Entry = "→南田沢";
	Entry = "→栗宮テクノパーク";
}
DefineSwitch"方向幕１コマ上げ"{
	GroupCommon = "方向幕１コマ上げ";
	Entry = "デフォルト";
	Entry = "→基準(黒幕)";
	Entry = "→各停　南関川";
	Entry = "→快速　南関川";
	Entry = "→各停　南河合";
	Entry = "→快速　南河合";
	Entry = "→回送";
	Entry = "→試運転";
	Entry = "→団体";
	Entry = "→臨時";
	Entry = "→各停";
	Entry = "→快速";
	Entry = "→急行";
	Entry = "→準急";
	Entry = "→各停　香坂";
	Entry = "→各停　樫合";
	Entry = "→各停　南喜多夢良";
	Entry = "→快速　香坂";
	Entry = "→快速　藤沢";
	Entry = "→快速　南喜多夢良";
	Entry = "→香坂";
	Entry = "→樫合";
	Entry = "→南喜多夢良";
	Entry = "→南河合";
	Entry = "→藤沢";
	Entry = "→南関川";
	Entry = "→所橋";
	Entry = "→喜多夢良";
	Entry = "→南田沢";
	Entry = "→栗宮テクノパーク";
}
DefineSwitch"↑動かない時は"{
	Entry = "片方を「デフォルト」にして下さい";
}
DefineSwitch"運番"{
	GroupCommon = "運番";
	Entry = "01K";
	Entry = "02K";
	Entry = "03K";
	Entry = "04K";
	Entry = "05K";
	Entry = "11Y";
	Entry = "12Y";
	Entry = "（黒幕）";
}
DefineSwitch"旅客ドア開閉"{
	GroupCommon = "旅客ドア開閉";
	Entry = "自動（ホーム停車時に開。このモードのみ開扉ランプが点灯します）";
	Entry = "常時閉";
	Entry = "常時進行方向左側開";
	Entry = "常時進行方向右側開";
	Entry = "常時両側開";
}
DefineSwitch"前面ドア（先頭車のみ有効）"{
	Entry = "閉";
	Entry = "開";
}
DefineSwitch"内装"{
	GroupCommon = "内装";
	Entry = "あり";
	Entry = "なし";
}
DefineSwitch"簡易シャドウ"{
	GroupCommon = "簡易シャドウ";
	Entry = "あり";
	Entry = "なし";
}
DefineSwitch"軌間"{
	GroupCommon = "軌間";
	Entry = "狭軌1067mm";
	Entry = "標準軌1435mm";
}
DefineSwitch"号車"{
	Entry = "１号車（Mc/女性専用車）";
	Entry = "２号車（M）";
	Entry = "３号車（T）";
	Entry = "４号車（M）";
	Entry = "５号車（T/弱冷房車）";
	Entry = "６号車（Tc）";
}
DefineSwitch"編成"{
	GroupCommon = "編成";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
}
DefineSwitch"パンタグラフ"{
	GroupCommon = "パンタグラフ";
	Entry = "上昇";
	Entry = "下降";
}
PrimaryAssembly{
	Axle"syarinn1"{
		ModelFileName = "syarin3_86narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "syarin3_86wide.x",1.0;
		}//順番に注意

		Diameter = 0.86;
		Symmetric = 12;
		Coord = (8.2,0.43);
		WheelSound = yes;
	}
	Axle"syarinn2"{
		ModelFileName = "syarin3_86narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "syarin3_86wide.x",1.0;
		}//順番に注意

		Diameter = 0.86;
		Symmetric = 12;
		Coord = (6.1,0.43);
		WheelSound = yes;
	}
	Axle"syarinn3"{
		ModelFileName = "syarin3_86narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "syarin3_86wide.x",1.0;
		}//順番に注意

		Diameter = 0.86;
		Symmetric = 12;
		Coord = (-6.1,0.43);
		WheelSound = yes;
	}
	Axle"syarinn4"{
		ModelFileName = "syarin3_86narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "syarin3_86wide.x",1.0;
		}//順番に注意

		Diameter = 0.86;
		Symmetric = 12;
		Coord = (-8.2,0.43);
		WheelSound = yes;
	}
	Body"daisya1"{
		ModelFileName = "model_daisya_narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "model_daisya_wide.x",1.0;
		}

		JointZY"syarinn1"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.05,0.43);
		}
		JointZY"syarinn2"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (-1.05,0.43);
		}
	}
	Body"daisya2"{
		ModelFileName = "model_daisya_narrow.x";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		ApplySwitch"軌間"{
			Case 1: ChangeModel = "model_daisya_wide.x",1.0;
		}

		JointZY"syarinn3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.05,0.43);
		}
		JointZY"syarinn4"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (-1.05,0.43);
		}
	}
	Body"syatai"{
		ModelFileName = "";
		ModelScale = 1.0;
		Turn = no;
		CastShadow = yes;

		NoShadow = 0;
		Transparent = 0,1,16,17,18,19;

		ApplySwitch"号車"{
			Case 0,5:
			ChangeModel = "model_body_ab.x", 1.0;
			Case 1,2,3,4:
			ChangeModel = "model_body_cd.x", 1.0;
		}

//うしろのとき
		If"_FRONT"{
		If!"_CONNECT1"{
			ApplySwitch"電源"{
				Case 0:
				ShiftTexture = 13, 0.115, 0.00;
				ChangeMaterial{
					MaterialID = 13;
					Emissive = 255,255,255;
				}
			}
		}
		}
//せんとうのとき
		If!"_FRONT"{
		If!"_CONNECT1"{
			ApplySwitch"電源"{
				Case 0:
				ShiftTexture = 12, 0.115, 0.00;
				ChangeMaterial{
					MaterialID = 12;
					Emissive = 255,255,255;
				}
			}
		}
		}
		ApplySwitch"運番"{
			Case 1:ShiftTexture = 11, 0.00, 0.125;
			Case 2:ShiftTexture = 11, 0.00, 0.25;
			Case 3:ShiftTexture = 11, 0.00, 0.375;
			Case 4:ShiftTexture = 11, 0.00, 0.50;
			Case 5:ShiftTexture = 11, 0.00, 0.625;
			Case 6:ShiftTexture = 11, 0.00, 0.75;
			Case 7:ShiftTexture = 11, 0.00, 0.875;
		}
		If!"電源"{
			ChangeMaterial{
				MaterialID = 11;
				Emissive = 255, 255, 255;
			}
		}
		ApplySwitch"編成"{
			Case 1:ShiftTexture = 16, 0.50, 0.00; ShiftTexture = 15, 0.50, 0.00;
			Case 2:ShiftTexture = 16, 0.00, 0.25; ShiftTexture = 15, 0.00, 0.25;
			Case 3:ShiftTexture = 16, 0.50, 0.25; ShiftTexture = 15, 0.50, 0.25;
			Case 4:ShiftTexture = 16, 0.00, 0.50; ShiftTexture = 15, 0.00, 0.50;
			Case 5:ShiftTexture = 16, 0.50, 0.50; ShiftTexture = 15, 0.50, 0.50;
			Case 6:ShiftTexture = 16, 0.00, 0.75; ShiftTexture = 15, 0.00, 0.75;
			Case 7:ShiftTexture = 16, 0.50, 0.75; ShiftTexture = 15, 0.50, 0.75;
		}
		ApplySwitch"号車"{
			Case 1:ShiftTexture = 18, 0.05, 0.00; ChangeTexture = 16, "tex_numside_2.png";
			Case 2:ShiftTexture = 18, 0.00, 0.05; ChangeTexture = 16, "tex_numside_3.png";
			Case 3:ShiftTexture = 18, 0.05, 0.05; ChangeTexture = 16, "tex_numside_4.png";
			Case 4:ShiftTexture = 18, 0.00, 0.10; ChangeTexture = 16, "tex_numside_5.png";
			Case 5:ShiftTexture = 18, 0.05, 0.10; ChangeTexture = 16, "tex_numside_6.png";
			Case 6:ShiftTexture = 18, 0.00, 0.15; ChangeTexture = 16, "tex_numside_7.png";
			Case 7:ShiftTexture = 18, 0.05, 0.15; ChangeTexture = 16, "tex_numside_8.png";
		}
		If ("_DOOR1" || "_DOOR2"){	//開扉灯
			ShiftTexture = 14, 0.00, 0.115;
			ChangeMaterial{
				MaterialID = 14;
				Emissive = 255, 255, 255;
			}
		}
		ApplySwitch"号車"{ //弱冷房車
		Case 0,1,2,3,5:ChangeTexture = 19,"../Common_Enth/tomei.png";
		}
		ApplySwitch"号車"{ //女性専用車
		Case 1,2,3,4,5:ChangeTexture = 17,"../Common_Enth/tomei.png";
		}

		JointZY"daisya1"{
			AttachCoord = (0.0,-0.0);
			LocalCoord = (7.15,0.0);
		}
		JointZY"daisya2"{
			AttachCoord = (0.0,-0.0);
			LocalCoord = (-7.15,0.0);
		}
	}
	Object3D"interior"{
		ModelFileName = "";
		ModelScale = 1.0;
		CastShadow = no;

		NoShadow = 0;
		Transparent = 0;

		If!"内装"{
			ApplySwitch"号車"{
				Case 0,5:
				ChangeModel = "model_interior_ab.x", 1.0;
				Case 1,2,3,4:
				ChangeModel = "model_interior_cd.x", 1.0;
			}
		}
		ApplySwitch"電源"{
			Case 0:
			ChangeMaterial{
				MaterialID = 5;
				Emissive = 255,255,255;
			}
		}

		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"bodyshadow"{
		ModelFileName = "";
		ModelScale = 1.0;
		CastShadow = no;
		NoShadow = 0;
		Transparent = 0;

		ApplySwitch"簡易シャドウ"{
			Case 0:ChangeModel = "model_shadow.x", 1.0;
			Case 1:ChangeModel = "", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	Object3D"panta"{
		ModelFileName = "";
		ModelScale = 1.0;

		If!"パンタグラフ"{
			ApplySwitch"号車"{
			Case 0,1,3:ChangeModel = "model_panta.x", 1.0;
			}
		}Else{
			ApplySwitch"号車"{
			Case 0,1,3:ChangeModel = "model_panta_close.x", 1.0;
			}	
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

//ドア開閉制御。DOORスイッチはZ正方向が基準。注意
//左左
	Object3D"doorRL"{
		ModelFileName = "model_doorLL.x";
		ModelScale = 1.0;
		NoShadow = 0,1;
		Transparent = 0,1;

		If!"電源"{
		ApplySwitch"内装"{
			Case 0:ChangeMaterial{
				MaterialID = 5;
				Emissive = 255,255,255;
			}
		}
		}

		If"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
			Case 3:
				StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
			Case 2:
				StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"旅客ドア開閉"{
		Case 4:
			StaticMove{
				Displacement = (0,0,0.65);
				PreAnimationDelay = 0;
				AnimationTime = 3;
				PostAnimationDelay = 0;
			}
		}
		If"_DOOR1"{
			ApplySwitch"旅客ドア開閉"{
			Case 0:
				StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//左右
	Object3D"doorRR"{
		ModelFileName = "model_doorLR.x";
		ModelScale = 1.0;
		NoShadow = 0,1;
		Transparent = 0,1;

		If!"電源"{
		ApplySwitch"内装"{
			Case 0:ChangeMaterial{
				MaterialID = 5;
				Emissive = 255,255,255;
			}
		}
		}

		If"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 3:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 2:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"旅客ドア開閉"{
			Case 4:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR1"{
			ApplySwitch"旅客ドア開閉"{
				Case 0:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//右左
	Object3D"doorLL"{
		ModelFileName = "model_doorRL.x";
		ModelScale = 1.0;
		NoShadow = 0,1;
		Transparent = 0,1;

		If!"電源"{
		ApplySwitch"内装"{
			Case 0:ChangeMaterial{
				MaterialID = 5;
				Emissive = 255,255,255;
			}
		}
		}

		If"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 2:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 3:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"旅客ドア開閉"{
			Case 4:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR2"{
			ApplySwitch"旅客ドア開閉"{
				Case 0:StaticMove{
					Displacement = (0,0,-0.65);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
//右右
	Object3D"doorLR"{
		ModelFileName = "model_doorRR.x";
		ModelScale = 1.0;
		NoShadow = 0,1;
		Transparent = 0,1;

		If!"電源"{
		ApplySwitch"内装"{
			Case 0:ChangeMaterial{
				MaterialID = 5;
				Emissive = 255,255,255;
			}
		}
		}

		If"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 2:StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		If!"_FRONT"{
			ApplySwitch"旅客ドア開閉"{
				Case 3:StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
				}
			}
		}
		ApplySwitch"旅客ドア開閉"{
			Case 4:StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 0;
					AnimationTime = 3;
					PostAnimationDelay = 0;
			}
		}
		If"_DOOR2"{
			ApplySwitch"旅客ドア開閉"{
				Case 0:StaticMove{
					Displacement = (0,0,0.65);
					PreAnimationDelay = 1;
					AnimationTime = 3;
					PostAnimationDelay = 2;
				}
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0,0,0);
		}
	}
	Object3D"daisyatan"{
		ModelFileName = "";
		ModelScale = 1.0;

		ApplySwitch"号車"{
			Case 0,5:ChangeModel = "model_daisyatan.x", 1.0;
		}
		Joint3D"daisya1"{
			AttachCoord = (0, 0, 0);
		}
	}
	Object3D"yukashita"{
		ModelFileName = "";
		ModelScale = 1.0;

		ApplySwitch"号車"{
			Case 0:ChangeModel = "model_yukashitaMc.x", 1.0;
			Case 1,3:ChangeModel = "model_yukashitaM.x", 1.0;
			Case 2,4:ChangeModel = "model_yukashitaT.x", 1.0;
			Case 5:ChangeModel = "model_yukashitaTc.x", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}
	Object3D"airspring"{
		ModelFileName = "";
		ModelScale = 1.0;

		ApplySwitch"軌間"{
			Case 0:ChangeModel = "model_airspringbody_narrow.x", 1.0;
			Case 1:ChangeModel = "model_airspringbody_wide.x", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}
	Object3D"houkoumaku"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoReceiveShadow = 0,1;
		Transparent = 0,1;

		ApplySwitch"号車"{
			Case 0,5:ChangeModel = "model_houkou_ab.x", 1.0;
			Case 1,2,3,4:ChangeModel = "model_houkou_cd.x", 1.0;
		}
		If!"電源"{
			ChangeMaterial{
				MaterialID = 0,1;
				Emissive = 255, 255, 255;
			}
		}
		If!"方向幕１コマ上げ"{
			ApplySwitch"方向幕１コマ下げ"{
				Case 2:ShiftTexture=0, 0, 0.00; ShiftTexture=1, 0, 0.03;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 3:ShiftTexture=0, 0, 0.03; ShiftTexture=1, 0, 0.06;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 4:ShiftTexture=0, 0, 0.06; ShiftTexture=1, 0, 0.09;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 5:ShiftTexture=0, 0, 0.09; ShiftTexture=1, 0, 0.12;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 6:ShiftTexture=0, 0, 0.12; ShiftTexture=1, 0, 0.15;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 7:ShiftTexture=0, 0, 0.15; ShiftTexture=1, 0, 0.18;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 8:ShiftTexture=0, 0, 0.18; ShiftTexture=1, 0, 0.21;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 9:ShiftTexture=0, 0, 0.21; ShiftTexture=1, 0, 0.24;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 10:ShiftTexture=0, 0, 0.24; ShiftTexture=1, 0, 0.27;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 11:ShiftTexture=0, 0, 0.27; ShiftTexture=1, 0, 0.30;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 12:ShiftTexture=0, 0, 0.30; ShiftTexture=1, 0, 0.33;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 13:ShiftTexture=0, 0, 0.33; ShiftTexture=1, 0, 0.36;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 14:ShiftTexture=0, 0, 0.36; ShiftTexture=1, 0, 0.39;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 15:ShiftTexture=0, 0, 0.39; ShiftTexture=1, 0, 0.42;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 16:ShiftTexture=0, 0, 0.42; ShiftTexture=1, 0, 0.45;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 17:ShiftTexture=0, 0, 0.45; ShiftTexture=1, 0, 0.48;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 18:ShiftTexture=0, 0, 0.48; ShiftTexture=1, 0, 0.51;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 19:ShiftTexture=0, 0, 0.51; ShiftTexture=1, 0, 0.54;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 20:ShiftTexture=0, 0, 0.54; ShiftTexture=1, 0, 0.57;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 21:ShiftTexture=0, 0, 0.57; ShiftTexture=1, 0, 0.60;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 22:ShiftTexture=0, 0, 0.60; ShiftTexture=1, 0, 0.63;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 23:ShiftTexture=0, 0, 0.63; ShiftTexture=1, 0, 0.66;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 24:ShiftTexture=0, 0, 0.66; ShiftTexture=1, 0, 0.69;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 25:ShiftTexture=0, 0, 0.69; ShiftTexture=1, 0, 0.72;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 26:ShiftTexture=0, 0, 0.72; ShiftTexture=1, 0, 0.75;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 27:ShiftTexture=0, 0, 0.75; ShiftTexture=1, 0, 0.78;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 28:ShiftTexture=0, 0, 0.78; ShiftTexture=1, 0, 0.81;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 29:ShiftTexture=0, 0, 0.81; ShiftTexture=1, 0, 0.84;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 30:ShiftTexture=0, 0, 0.84; ShiftTexture=1, 0, 0.87;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 31:ShiftTexture=0, 0, 0.87; ShiftTexture=1, 0, 0.90;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 32:ShiftTexture=0, 0, 0.90; ShiftTexture=1, 0, 0.93;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 33:ShiftTexture=0, 0, 0.93; ShiftTexture=1, 0, 0.96;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 34:ShiftTexture=0, 0, 0.96; ShiftTexture=1, 0, 0.99;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=0;}
					StaticMove{Displacement=(0, 0.2, 0); AnimationTime=2; ReverseTime=0;}
			}
		}
		If!"方向幕１コマ下げ"{
			ApplySwitch"方向幕１コマ上げ"{
				Case 1:ShiftTexture=0, 0, 0.00; ShiftTexture=1, 0, 0.03;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 2:ShiftTexture=0, 0, 0.03; ShiftTexture=1, 0, 0.06;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 3:ShiftTexture=0, 0, 0.06; ShiftTexture=1, 0, 0.09;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 4:ShiftTexture=0, 0, 0.09; ShiftTexture=1, 0, 0.12;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 5:ShiftTexture=0, 0, 0.12; ShiftTexture=1, 0, 0.15;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 6:ShiftTexture=0, 0, 0.15; ShiftTexture=1, 0, 0.18;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 7:ShiftTexture=0, 0, 0.18; ShiftTexture=1, 0, 0.21;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 8:ShiftTexture=0, 0, 0.21; ShiftTexture=1, 0, 0.24;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 9:ShiftTexture=0, 0, 0.24; ShiftTexture=1, 0, 0.27;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 10:ShiftTexture=0, 0, 0.27; ShiftTexture=1, 0, 0.30;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 11:ShiftTexture=0, 0, 0.30; ShiftTexture=1, 0, 0.33;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 12:ShiftTexture=0, 0, 0.33; ShiftTexture=1, 0, 0.36;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 13:ShiftTexture=0, 0, 0.36; ShiftTexture=1, 0, 0.39;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 14:ShiftTexture=0, 0, 0.39; ShiftTexture=1, 0, 0.42;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 15:ShiftTexture=0, 0, 0.42; ShiftTexture=1, 0, 0.45;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 16:ShiftTexture=0, 0, 0.45; ShiftTexture=1, 0, 0.48;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 17:ShiftTexture=0, 0, 0.48; ShiftTexture=1, 0, 0.51;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 18:ShiftTexture=0, 0, 0.51; ShiftTexture=1, 0, 0.54;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 19:ShiftTexture=0, 0, 0.54; ShiftTexture=1, 0, 0.57;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 20:ShiftTexture=0, 0, 0.57; ShiftTexture=1, 0, 0.60;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 21:ShiftTexture=0, 0, 0.60; ShiftTexture=1, 0, 0.63;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 22:ShiftTexture=0, 0, 0.63; ShiftTexture=1, 0, 0.66;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 23:ShiftTexture=0, 0, 0.66; ShiftTexture=1, 0, 0.69;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 24:ShiftTexture=0, 0, 0.69; ShiftTexture=1, 0, 0.72;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 25:ShiftTexture=0, 0, 0.72; ShiftTexture=1, 0, 0.75;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 26:ShiftTexture=0, 0, 0.75; ShiftTexture=1, 0, 0.78;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 27:ShiftTexture=0, 0, 0.78; ShiftTexture=1, 0, 0.81;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 28:ShiftTexture=0, 0, 0.81; ShiftTexture=1, 0, 0.84;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 29:ShiftTexture=0, 0, 0.84; ShiftTexture=1, 0, 0.87;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 30:ShiftTexture=0, 0, 0.87; ShiftTexture=1, 0, 0.90;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 31:ShiftTexture=0, 0, 0.90; ShiftTexture=1, 0, 0.93;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 32:ShiftTexture=0, 0, 0.93; ShiftTexture=1, 0, 0.96;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
				Case 33:ShiftTexture=0, 0, 0.96; ShiftTexture=1, 0, 0.99;
					StaticMove{Displacement=(0, -0.2, 0); AnimationTime=2; ReverseTime=0;}
			}
		}
		If("方向幕１コマ下げ"=="方向幕１コマ上げ"){
			ApplySwitch"方向幕１コマ下げ"{
				Case 2:ShiftTexture=1, 0, 0.03;
				Case 3:ShiftTexture=1, 0, 0.06;
				Case 4:ShiftTexture=1, 0, 0.09;
				Case 5:ShiftTexture=1, 0, 0.12;
				Case 6:ShiftTexture=1, 0, 0.15;
				Case 7:ShiftTexture=1, 0, 0.18;
				Case 8:ShiftTexture=1, 0, 0.21;
				Case 9:ShiftTexture=1, 0, 0.24;
				Case 10:ShiftTexture=1, 0, 0.27;
				Case 11:ShiftTexture=1, 0, 0.30;
				Case 12:ShiftTexture=1, 0, 0.33;
				Case 13:ShiftTexture=1, 0, 0.36;
				Case 14:ShiftTexture=1, 0, 0.39;
				Case 15:ShiftTexture=1, 0, 0.42;
				Case 16:ShiftTexture=1, 0, 0.45;
				Case 17:ShiftTexture=1, 0, 0.48;
				Case 18:ShiftTexture=1, 0, 0.51;
				Case 19:ShiftTexture=1, 0, 0.54;
				Case 20:ShiftTexture=1, 0, 0.57;
				Case 21:ShiftTexture=1, 0, 0.60;
				Case 22:ShiftTexture=1, 0, 0.63;
				Case 23:ShiftTexture=1, 0, 0.66;
				Case 24:ShiftTexture=1, 0, 0.69;
				Case 25:ShiftTexture=1, 0, 0.72;
				Case 26:ShiftTexture=1, 0, 0.75;
				Case 27:ShiftTexture=1, 0, 0.78;
				Case 28:ShiftTexture=1, 0, 0.81;
				Case 29:ShiftTexture=1, 0, 0.84;
				Case 30:ShiftTexture=1, 0, 0.87;
				Case 31:ShiftTexture=1, 0, 0.90;
				Case 32:ShiftTexture=1, 0, 0.93;
				Case 33:ShiftTexture=1, 0, 0.96;
				Case 34:ShiftTexture=1, 0, 0.99;
			}
		}

		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}
	Object3D"frontdoor"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoShadow = 0;
		Transparent = 0;

		ApplySwitch"号車"{
			Case 0,5:ChangeModel = "model_frontdoor.x", 1.0;
		}
		If("前面ドア（先頭車のみ有効）"){
			StaticMove{
				Displacement = (0, 0, 0.1);
				PreAnimationDelay = 0;
				AnimationTime = 3.5;
				PostAnimationDelay = 0;
			}
			StaticMove{
				Displacement = (-0.68, 0, 0);
				PreAnimationDelay = 0.5;
				AnimationTime = 3;
				PostAnimationDelay = 0;
			}
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}
	Object3D"frontwindow"{
		ModelFileName = "";
		ModelScale = 1.0;
		NoShadow = 0;
		Transparent = 0;
		ApplySwitch"号車"{
			Case 0,5:ChangeModel = "model_frontwindow.x", 1.0;
		}
		Joint3D"syatai"{
			AttachCoord = (0, 0, 0);
		}
	}

	If!"_FRONT"{
	If!"_CONNECT1"{
	ApplySwitch"電源"{	Case 0:
		Headlight{
			AttachObject = "syatai";
			SourceCoord = (-1.02, 3.17, 9.73);
			Direction = (0.0, 0.0, 15.0);
			MaxDistance = 100.0;
			LensFlare{
				StartAngle = 120.0;
				Circle{
					Distance = 0.0;
					Radius = 0.2;
					InnerColor = #f0ffffff;
					//InnerColor = #f0ffff9a;
					OuterColor = #00000000;
					//OuterColer = #00ffff75;
				}
			}
		}
		Headlight{
			AttachObject = "syatai";
			SourceCoord = (1.02, 3.17, 9.73);
			Direction = (0.0, 0.0, 15.0);
			MaxDistance = 100.0;
			LensFlare{
				StartAngle = 120.0;
				Circle{
					Distance = 0.0;
					Radius = 0.2;
					InnerColor = #f0ffffff;
					//InnerColor = #f0ffff9a;
					OuterColor = #00000000;
					//OuterColer = #00ffff75;
				}
			}
		}
	}
	}
	}
	FrontCabin{
		Joint3D "syatai"{
			AttachCoord = (-0.7, 2.5, 8.4);
			DirLink = "daisya1";
		}
	}
}