PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "東京都交通局6300形 先頭車";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "-種別の標示について(6300形の場合)-";
	Description = "目黒駅で種別表示の切り替えを行います。";
	Description = "※「走行区間」スイッチにより、線区に即した表示の切り替えが可能です。";
	Description = "";
	Description = "-運転区間について-";
	Description = "(1)登場時｜西高島平 - 三田";
	Description = "(2)2000年9月26日〜｜西高島平 - 武蔵小杉";
	Description = "(3)2008年6月22日〜｜西高島平 - 日吉";
	Description = "(4)2023年3月18日〜｜西高島平 - 新横浜";
	Description = "";
	Description = "-運番について-";
	Description = "目黒延伸前は01Tから、直通開始後は31Tから順に奇数のみ使用します。";
	Description = "";
	Description = "-入換灯について-";
	Description = "主に白金高輪駅や日吉駅などの、ホーム〜引上線間で点灯します。";
	Description = "";
	Description = "-急行灯について-";
	Description = "基本的に使用しません。";
	Description = "";
}

TrainInfo{
	FrontLimit = 10.25;
	TailLimit = -10.00;
	MaxVelocity = 110.0;
	MaxAcceleration = 3.3;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "電源"{
GroupCommon = "ntoei6300電源";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "パンタ高さ"{
	GroupCommon = "ntoei6300pt";
	Entry = "自動(基準：シンプルカテナリ)";
	Entry = "剛体架線";
}
DefineSwitch "前照灯・尾灯"{
GroupCommon = "ntoei6300前照灯";
	Entry = "自動";
	Entry = "入換";
	Entry = "切";
}
DefineSwitch "急行灯"{
GroupCommon = "ntoei6300急行灯";
	Entry = "切";
	Entry = "自動";
}
DefineSwitch "レンズフレア"{
GroupCommon = "ntoei6300レンズフレア";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "客室照明"{
GroupCommon = "ntoei6300客室灯";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "運転室灯"{
GroupCommon = "ntoei6300運転室灯";
	Entry = "自動";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "遮光幕"{
	Entry = "自動";
//	Entry = "開";
//	Entry = "閉";
}
DefineSwitch "走行区間"{
GroupCommon = "ntoei6300走行区間";
	Entry = "三田線(・2006年以前の東急線)";
	Entry = "東急線";
	Entry = "";
}
DefineSwitch "種別"{
GroupCommon = "ntoei6300種別";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
	Entry = "各停";
	Entry = "急行";
}
DefineSwitch "表示"{
GroupCommon = "ntoei6300行先";
	Entry = "三田";
	Entry = "西高島平";
	Entry = "高島平";
	Entry = "新板橋";	
	Entry = "御成門";
	Entry = "本蓮沼";
	Entry = "巣鴨";
	Entry = "水道橋";
	Entry = "日比谷";
	Entry = "芝公園";	
	Entry = "白金高輪";		//10
	Entry = "目黒";		//
	Entry = "大岡山";
	Entry = "奥沢";
	Entry = "武蔵小杉";
	Entry = "日吉";
	Entry = "元住吉";	
	Entry = "";
	Entry = "武蔵小山";
	Entry = "新横浜";
}
DefineSwitch "列番100位"{
GroupCommon = "ntoei6300列番100位";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
	Entry = "9";
	Entry = "0";
}
DefineSwitch "列番10位"{
GroupCommon = "ntoei6300列番10位";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
	Entry = "9";
	Entry = "0";
}
DefineSwitch "列番1位"{
GroupCommon = "ntoei6300列番1位";
	Entry = "S";
	Entry = "K";
	Entry = "T";
	Entry = "E";
	Entry = "M";
	Entry = "G";
}
DefineSwitch "編成"{
GroupCommon = "ntoei6300編成";
	Entry = "6301F";
	Entry = "6302F";
	Entry = "6303F";
	Entry = "6304F";
	Entry = "6305F";
	Entry = "6306F";
	Entry = "6307F";
	Entry = "6308F";
	Entry = "6309F";
	Entry = "6310F";
	Entry = "6311F";
	Entry = "6312F";
	Entry = "6313F";
	Entry = "6314F";
	Entry = "6315F";
	Entry = "6316F";
	Entry = "6317F";
	Entry = "6318F";
	Entry = "6319F";
	Entry = "6320F";
	Entry = "6321F";
	Entry = "6322F";
	Entry = "6323F";
	Entry = "6324F";
	Entry = "6325F";
	Entry = "6326F";
	Entry = "6327F";
	Entry = "6328F";
	Entry = "6329F";
	Entry = "6330F";
	Entry = "6331F";
	Entry = "6332F";
	Entry = "6333F";
	Entry = "6334F";
	Entry = "6335F";
	Entry = "6336F";
	Entry = "6337F";
}
DefineSwitch "号車"{
	Entry = "1号車(西高島平方先頭)";
	Entry = "6号車(目黒方先頭)";
}
DefineSwitch "仕様"{
	GroupCommon = "ntoei6300仕様";
	Entry = "現行";
//	Entry = "2010〜";	//優先席拡大？
//	Entry = "2000〜";	//車番
//	Entry = "登場時";
}
DefineSwitch "転落防止幌"{
	GroupCommon = "ntoei6300転落防止幌";
	Entry = "無";
	//Entry = "有(みなとみらい号運用時のみ)";
}
DefineSwitch "簡易影"{
	GroupCommon = "ntoei6300簡易陰";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "PBR"{
	GroupCommon = "ntoei6300PBR";
//	Entry = "入";
	Entry = "切";
}
PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.95,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.85,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-7.95,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.85,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "bogie.x";
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "bogie.x";
		Turn = yes;
		JointZY "wheel3"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.9, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.9, 1.0);
		}
	}
	Object3D "in"{
		ModelFileName = "";
		NoCastShadow = 4;
		//Transparent = 21;
		If "電源"==0&&"客室照明"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
　　　　　	　　	}
				//NoShadow = 1,2,3,4,5,6,7,8,9,10,11;
		}
			If "電源"==0&&("運転室灯"==1 || ("運転室灯"==0 && "_FRONT")){
				ChangeMaterial{
					MaterialID = 1,2,3;
					Emissive = 0.5, 0.5, 0.5;
　　　　　	　　		}
				//NoShadow = 25,26,27;
			}
		If "編成" >12{
			ChangeModel = "in_1_0.x", 1.0;
		}Else{
			ChangeModel = "in_1_0.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorll_i"{
		ModelFileName = "Doori1l.x";
		NoCastShadow = 1;
		If "電源"==0 && "客室照明"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			//NoShadow = 0;
　　　　　　}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		If "編成" >12{
			ChangeModel = "Doori3l.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr_i"{
		ModelFileName = "Doori1r.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 0.8, 0.8, 0.8;
				}
　　　　　　　　}
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		If "編成" >12{
			ChangeModel = "Doori3r.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl_i"{
		ModelFileName = "Doori1r.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 0.8, 0.8, 0.8;
				}
　　　　　　　　}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		If "編成" >12{
			ChangeModel = "Doori3r.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr_i"{
		ModelFileName = "Doori1l.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			//NoShadow = 0;
　　　　　　}
		If "_DOOR2" {
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		If "編成" >12{
			ChangeModel = "Doori3l.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorll"{
		ModelFileName = "Door1l.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If "編成" >12{
			ChangeModel = "Door3l.x", 1.0;
		}
		Joint3D "Doorll_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Door1r.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If "編成" >12{
			ChangeModel = "Door3r.x", 1.0;
		}
		Joint3D "Doorlr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Door1r.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If "編成" >12{
			ChangeModel = "Door3r.x", 1.0;
		}
		Joint3D "Doorrl_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr"{
		ModelFileName = "Door1l.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If "編成" >12{
			ChangeModel = "Door3l.x", 1.0;
		}
		Joint3D "Doorrr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Light"{
		ModelFileName = "Light1.x";
		If "編成" >12{
			ChangeModel = "Light3.x", 1.0;
		}
		If !"電源"{
			If !"_CONNECT1"{
				ApplySwitch "前照灯・尾灯"{
				Case 0:
					If !"_FRONT"{
						ChangeMaterial{
							MaterialID = 0;
							Emissive = 1.0, 1.0, 1.0;
　　　	　　				}
						//NoReceiveShadow = 0;
						ShiftTexture = 0, 0.0, 0.5;
					}Else{
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
　　　	　　				}
						//NoReceiveShadow = 1;
						ShiftTexture = 1, 0.0, 0.5;
					}
				Case 1:
					If !"_FRONT"{
						ChangeMaterial{
							MaterialID = 0;
							Emissive = 1.0, 1.0, 1.0;
　　　	　　				}
						//NoReceiveShadow = 0;
						ShiftTexture = 0, 0.0, 0.5;
　　　　　	　　			}
					ChangeMaterial{
						MaterialID = 1;
						Emissive = 1.0, 1.0, 1.0;
　　　	　　			}
					//NoReceiveShadow = 1;
					ShiftTexture = 1, 0.0, 0.5;
				}
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "LightExp"{
		ModelFileName = "Lightexp.x";
		If "急行灯"==1{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
　　　	　　	}
			ShiftTexture = 0, 0.03125, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "LED"{
		ModelFileName = "maku0.x";
		If !"電源"{
			ApplySwitch "種別"{
			Case 0:
				If "走行区間"==2{
					ChangeAlpha = 1, 0.0;
				}
			Case 1:
				ApplySwitch "走行区間"{
				Case 2:
					ChangeAlpha = 1, 0.0;
					ShiftTexture = 2, 0.0, 0.015625;
				Default:
					ShiftTexture = 1, 0.0, 0.03125;
					ShiftTexture = 2, 0.0, 0.015625;
				}
			Case 2:
				ApplySwitch "走行区間"{
				Case 0:
					ApplySwitch "表示"{
					Case 1:
						ShiftTexture = 1, 0.375, 0.46875;
						ShiftTexture = 2, 0.28125, 0.234375;
					Case 2:
						ShiftTexture = 1, -0.5, 0.34375;
						ShiftTexture = 2, -0.125, 0.21875;
					Case 17:
						ShiftTexture = 1, -0.5, 0.375;
						ShiftTexture = 2, -0.125, 0.234375;
					Default:
						ShiftTexture = 1, 0.0, 0.0625;
						ShiftTexture = 2, 0.0, 0.03125;
					}
				Case 2:
					ChangeAlpha = 1, 0.0;
					ShiftTexture = 2, 0.0, 0.03125;
				Default:
					ShiftTexture = 1, 0.0, 0.0625;
					ShiftTexture = 2, 0.0, 0.03125;
				}
			Case 3:
				ApplySwitch "走行区間"{
				Case 0,2:
					ApplySwitch "表示"{
					Case 0:
						ShiftTexture = 1, 0.0, 0.09375;
						ShiftTexture = 2, 0.0, 0.046875;
					Case 1:
						ShiftTexture = 1, 0.0, 0.125;
						ShiftTexture = 2, 0.0, 0.0625;
					Case 2:
						ShiftTexture = 1, 0.0, 0.15625;
						ShiftTexture = 2, 0.0, 0.078125;
					Case 3:
						ShiftTexture = 1, 0.0, 0.1875;
						ShiftTexture = 2, 0.0, 0.09375;
					Case 4:
						ShiftTexture = 1, 0.0, 0.21875;
						ShiftTexture = 2, 0.0, 0.109375;
					Case 5:
						ShiftTexture = 1, 0.0, 0.25;
						ShiftTexture = 2, 0.0, 0.125;
					Case 6:
						ShiftTexture = 1, 0.0, 0.28125;
						ShiftTexture = 2, 0.0, 0.140625;
					Case 7:
						ShiftTexture = 1, 0.0, 0.3125;
						ShiftTexture = 2, 0.0, 0.15625;
					Case 8:
						ShiftTexture = 1, 0.0, 0.34375;
						ShiftTexture = 2, 0.0, 0.171875;
					Case 9:
						ShiftTexture = 1, 0.0, 0.375;
						ShiftTexture = 2, 0.0, 0.1875;
					Case 10:
						ShiftTexture = 1, 0.0, 0.40625;
						ShiftTexture = 2, 0.0, 0.203125;
					Case 11:
						ShiftTexture = 1, 0.0, 0.4375;
						ShiftTexture = 2, 0.0, 0.21875;
					Case 12:
						ShiftTexture = 1, 0.0, 0.46875;
						ShiftTexture = 2, 0.0, 0.234375;
					Case 13:
						ShiftTexture = 1, 0.125, 0.0;
						ShiftTexture = 2, 0.09375, 0.0;
					Case 14:
						ShiftTexture = 1, 0.125, 0.03125;
						ShiftTexture = 2, 0.09375, 0.015625;
					Case 15:
						ShiftTexture = 1, 0.125, 0.0625;
						ShiftTexture = 2, 0.09375, 0.03125;
					Case 16:
						ShiftTexture = 1, 0.125, 0.09375;
						ShiftTexture = 2, 0.09375, 0.046875;
					Case 17:
						ShiftTexture = 1, 0.125, 0.125;
						ShiftTexture = 2, 0.09375, 0.0625;
					Case 18:
						ShiftTexture = 1, 0.125, 0.15625;
						ShiftTexture = 2, 0.09375, 0.078125;
					Case 19:
						ShiftTexture = 1, 0.125, 0.1875;
						ShiftTexture = 2, 0.09375, 0.09375;
					Case 20:
						ShiftTexture = 1, 0.125, 0.21875;
						ShiftTexture = 2, 0.09375, 0.109375;
					}
				Case 1:
					ApplySwitch "表示"{
					Case 0:
						ShiftTexture = 1, 0.125, 0.21875;
						ShiftTexture = 2, 0.09375, 0.109375;
					Case 1:
						ShiftTexture = 1, 0.125, 0.25;
						ShiftTexture = 2, 0.09375, 0.125;
					Case 2:
						ShiftTexture = 1, 0.125, 0.28125;
						ShiftTexture = 2, 0.09375, 0.140625;
					Case 3:
						ShiftTexture = 1, 0.125, 0.3125;
						ShiftTexture = 2, 0.09375, 0.15625;
					Case 4:
						ShiftTexture = 1, 0.125, 0.34375;
						ShiftTexture = 2, 0.09375, 0.171875;
					Case 5:
						ShiftTexture = 1, 0.125, 0.375;
						ShiftTexture = 2, 0.09375, 0.1875;
					Case 6:
						ShiftTexture = 1, 0.125, 0.40625;
						ShiftTexture = 2, 0.09375, 0.203125;
					Case 7:
						ShiftTexture = 1, 0.125, 0.4375;
						ShiftTexture = 2, 0.09375, 0.21875;
					Case 8:
						ShiftTexture = 1, 0.125, 0.46875;
						ShiftTexture = 2, 0.09375, 0.234375;
					Case 9:
						ShiftTexture = 1, 0.25, 0.0;
						ShiftTexture = 2, 0.1875, 0.0;
					Case 10:
						ShiftTexture = 1, 0.25, 0.03125;
						ShiftTexture = 2, 0.1875, 0.015625;
					Case 11:
						ShiftTexture = 1, 0.25, 0.0625;
						ShiftTexture = 2, 0.1875, 0.03125;
					Case 12:
						ShiftTexture = 1, 0.25, 0.09375;
						ShiftTexture = 2, 0.1875, 0.046875;
					Case 13:
						ShiftTexture = 1, 0.25, 0.125;
						ShiftTexture = 2, 0.1875, 0.0625;
					Case 14:
						ShiftTexture = 1, 0.25, 0.15625;
						ShiftTexture = 2, 0.1875, 0.078125;
					Case 15:
						ShiftTexture = 1, 0.25, 0.1875;
						ShiftTexture = 2, 0.1875, 0.09375;
					Case 16:
						ShiftTexture = 1, 0.25, 0.21875;
						ShiftTexture = 2, 0.1875, 0.109375;
					Case 17:
						ShiftTexture = 1, 0.25, 0.25;
						ShiftTexture = 2, 0.1875, 0.125;
					Case 18:
						ShiftTexture = 1, 0.25, 0.28125;
						ShiftTexture = 2, 0.1875, 0.140625;
					Case 19:
						ShiftTexture = 1, 0.25, 0.3125;
						ShiftTexture = 2, 0.1875, 0.15625;
					Case 20:
						ShiftTexture = 1, 0.25, 0.34375;
						ShiftTexture = 2, 0.1875, 0.171875;
					}
				Case 2:
					ChangeAlpha = 1, 0.0;
				}
			Case 4:
				ApplySwitch "走行区間"{
				Case 0,2:
					ApplySwitch "表示"{
					Case 0:
						ShiftTexture = 1, 0.0, 0.09375;
						ShiftTexture = 2, 0.0, 0.046875;
					Case 1:
						ShiftTexture = 1, 0.0, 0.125;
						ShiftTexture = 2, 0.0, 0.0625;
					Case 2:
						ShiftTexture = 1, 0.0, 0.15625;
						ShiftTexture = 2, 0.0, 0.078125;
					Case 3:
						ShiftTexture = 1, 0.0, 0.1875;
						ShiftTexture = 2, 0.0, 0.09375;
					Case 4:
						ShiftTexture = 1, 0.0, 0.21875;
						ShiftTexture = 2, 0.0, 0.109375;
					Case 5:
						ShiftTexture = 1, 0.0, 0.25;
						ShiftTexture = 2, 0.0, 0.125;
					Case 6:
						ShiftTexture = 1, 0.0, 0.28125;
						ShiftTexture = 2, 0.0, 0.140625;
					Case 7:
						ShiftTexture = 1, 0.0, 0.3125;
						ShiftTexture = 2, 0.0, 0.15625;
					Case 8:
						ShiftTexture = 1, 0.0, 0.34375;
						ShiftTexture = 2, 0.0, 0.171875;
					Case 9:
						ShiftTexture = 1, 0.0, 0.375;
						ShiftTexture = 2, 0.0, 0.1875;
					Case 10:
						ShiftTexture = 1, 0.0, 0.40625;
						ShiftTexture = 2, 0.0, 0.203125;
					Case 11:
						ShiftTexture = 1, 0.0, 0.4375;
						ShiftTexture = 2, 0.0, 0.21875;
					Case 12:
						ShiftTexture = 1, 0.375, 0.21875;
						ShiftTexture = 2, 0.28125, 0.109375;
					Case 13:
						ShiftTexture = 1, 0.375, 0.25;
						ShiftTexture = 2, 0.28125, 0.125;
					Case 14:
						ShiftTexture = 1, 0.375, 0.28125;
						ShiftTexture = 2, 0.28125, 0.140625;
					Case 15:
						ShiftTexture = 1, 0.375, 0.3125;
						ShiftTexture = 2, 0.28125, 0.15625;
					Case 16:
						ShiftTexture = 1, 0.375, 0.34375;
						ShiftTexture = 2, 0.28125, 0.171875;
					Case 17:
						ShiftTexture = 1, 0.375, 0.375;
						ShiftTexture = 2, 0.28125, 0.1875;
					Case 18:
						ShiftTexture = 1, 0.375, 0.40625;
						ShiftTexture = 2, 0.28125, 0.203125;
					Case 19:
						ShiftTexture = 1, 0.375, 0.4375;
						ShiftTexture = 2, 0.28125, 0.21875;
					Case 20:
						ShiftTexture = 1, 0.375, 0.46875;
						ShiftTexture = 2, 0.28125, 0.234375;
					}
				Case 1:
					ApplySwitch "表示"{
					Case 0:
						ShiftTexture = 1, 0.25, 0.34375;
						ShiftTexture = 2, 0.1875, 0.171875;
					Case 1:
						ShiftTexture = 1, 0.25, 0.375;
						ShiftTexture = 2, 0.1875, 0.1875;
					Case 2:
						ShiftTexture = 1, 0.25, 0.40625;
						ShiftTexture = 2, 0.1875, 0.203125;
					Case 3:
						ShiftTexture = 1, 0.25, 0.4375;
						ShiftTexture = 2, 0.1875, 0.21875;
					Case 4:
						ShiftTexture = 1, 0.25, 0.46875;
						ShiftTexture = 2, 0.1875, 0.234375;
					Case 5:
						ShiftTexture = 1, 0.375, 0.0;
						ShiftTexture = 2, 0.28125, 0.0;
					Case 6:
						ShiftTexture = 1, 0.375, 0.03125;
						ShiftTexture = 2, 0.28125, 0.015625;
					Case 7:
						ShiftTexture = 1, 0.375, 0.0625;
						ShiftTexture = 2, 0.28125, 0.03125;
					Case 8:
						ShiftTexture = 1, 0.375, 0.09375;
						ShiftTexture = 2, 0.28125, 0.046875;
					Case 9:
						ShiftTexture = 1, 0.375, 0.125;
						ShiftTexture = 2, 0.28125, 0.0625;
					Case 10:
						ShiftTexture = 1, 0.375, 0.15625;
						ShiftTexture = 2, 0.28125, 0.078125;
					Case 11:
						ShiftTexture = 1, 0.375, 0.1875;
						ShiftTexture = 2, 0.28125, 0.09375;
					Case 12:
						ShiftTexture = 1, 0.375, 0.21875;
						ShiftTexture = 2, 0.28125, 0.109375;
					Case 13:
						ShiftTexture = 1, 0.375, 0.25;
						ShiftTexture = 2, 0.28125, 0.125;
					Case 14:
						ShiftTexture = 1, 0.375, 0.28125;
						ShiftTexture = 2, 0.28125, 0.140625;
					Case 15:
						ShiftTexture = 1, 0.375, 0.3125;
						ShiftTexture = 2, 0.28125, 0.15625;
					Case 16:
						ShiftTexture = 1, 0.375, 0.34375;
						ShiftTexture = 2, 0.28125, 0.171875;
					Case 17:
						ShiftTexture = 1, 0.375, 0.375;
						ShiftTexture = 2, 0.28125, 0.1875;
					Case 18:
						ShiftTexture = 1, 0.375, 0.40625;
						ShiftTexture = 2, 0.28125, 0.203125;
					Case 19:
						ShiftTexture = 1, 0.375, 0.4375;
						ShiftTexture = 2, 0.28125, 0.21875;
					Case 20:
						ShiftTexture = 1, 0.375, 0.46875;
						ShiftTexture = 2, 0.28125, 0.234375;
					}
				Case 2:
					ChangeAlpha = 1, 0.0;
				}
			}
			ApplySwitch "列番100位"{
			Case 1:
				ShiftTexture = 3, -0.03125, 0.015625;
			Case 2:
				ShiftTexture = 3, 0.0, 0.015625;
			Case 3:
				ShiftTexture = 3, 0.03125, 0.015625;
			Case 4:
				ShiftTexture = 3, 0.0625, 0.015625;
			Case 5:
				ShiftTexture = 3, -0.03125, 0.03125;
			Case 6:
				ShiftTexture = 3, 0.0, 0.03125;
			Case 7:
				ShiftTexture = 3, 0.03125, 0.03125;
			Case 8:
				ShiftTexture = 3, 0.0625, 0.03125;
			Case 9:
				ShiftTexture = 3, -0.03125, 0.0;
			}
			ApplySwitch "列番10位"{
			Case 1:
				ShiftTexture = 4, -0.03125, 0.015625;
			Case 2:
				ShiftTexture = 4, 0.0, 0.015625;
			Case 3:
				ShiftTexture = 4, 0.03125, 0.015625;
			Case 4:
				ShiftTexture = 4, 0.0625, 0.015625;
			Case 5:
				ShiftTexture = 4, -0.03125, 0.03125;
			Case 6:
				ShiftTexture = 4, 0.0, 0.03125;
			Case 7:
				ShiftTexture = 4, 0.03125, 0.03125;
			Case 8:
				ShiftTexture = 4, 0.0625, 0.03125;
			Case 9:
				ShiftTexture = 4, -0.03125, 0.0;
			}
			ApplySwitch "列番1位"{
			Case 0:
				ShiftTexture = 5, -0.0625, 0.0;
			Case 1:
				ShiftTexture = 5, -0.03125, 0.0;
			Case 3:
				ShiftTexture = 5, 0.03125, 0.0;
			Case 4:
				ShiftTexture = 5, 0.03125, 0.015625;
			Case 5:
				ShiftTexture = 5, 0.03125, 0.03125;
			}
		}Else{
			ChangeAlpha = 1, 0.0;
			ChangeAlpha = 2, 0.0;
			ChangeAlpha = 3, 0.0;
			ChangeAlpha = 4, 0.0;
			ChangeAlpha = 5, 0.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body_1.x";
		NoCastShadow = 0,1;
		If "編成" >12{
			ChangeModel = "body_3.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Skirt"{
		ModelFileName = "skirt_3_1.x";
		ApplySwitch "編成"{
		Case 0,1,2,3,4:
			If "号車" ==1{
				ShiftTexture = 0, 0.0, 0.0234375;
			}
			ChangeModel = "skirt_1.x", 1.0;
		Case 5,6,7,8,9,10,11,12:
			If "号車" ==1{
				ChangeModel = "skirt_2_8.x", 1.0;
			}Else{
				ChangeModel = "skirt_2_1.x", 1.0;
			}
		Default:
			If "号車" ==1{
				ChangeModel = "skirt_3_8.x", 1.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Cooler"{
		ModelFileName = "cooler_2.x";
			If "仕様"==0{
				ApplySwitch "編成"{
				Case 0,3,4,5,6,7,8,9,10,11,12:
					ChangeModel = "cooler_1.x", 1.0;
				}
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "IR-Antenna"{
		ModelFileName = "antenna_ir1.x";
		ApplySwitch "編成"{
		Case 13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28:
			ChangeModel = "antenna_ir2.x", 1.0;
		Case 29,30,31,32,33,34,35,36:
			ChangeModel = "", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Horoz"{
		ModelFileName = "";
		If "仕様" <3{
			ChangeModel = "horo.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "yuka1.x";
		Transparent = 2;
		If "号車"==1{
			ChangeModel = "yuka8.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "number_f"{
		ModelFileName = "number_f_01-1.x";
		CastShadow = no;
		ApplySwitch "編成"{
		Case 0:
			ShiftTexture = 0, -0.125, -0.046875;
		Case 1:
			ShiftTexture = 0, -0.125, -0.03125;
		Case 2:
			ShiftTexture = 0, -0.125, -0.015625;
		Case 3:
			ShiftTexture = 0, -0.125, 0.0;
		Case 4:
			ShiftTexture = 0, -0.125, 0.015625;
		Case 5:
			ShiftTexture = 0, -0.125, 0.03125;
		Case 6:
			ShiftTexture = 0, -0.125, 0.046875;
		Case 7:
			ShiftTexture = 0, -0.125, 0.0625;
		Case 8:
			ShiftTexture = 0, -0.0625, -0.046875;
		Case 9:
			ShiftTexture = 0, -0.0625, -0.03125;
		Case 10:
			ShiftTexture = 0, -0.0625, -0.015625;
		Case 11:
			ShiftTexture = 0, -0.0625, 0.0;
		Case 12:
			ShiftTexture = 0, -0.0625, 0.015625;
		Case 13:
			ShiftTexture = 0, -0.0625, 0.03125;
		Case 14:
			ShiftTexture = 0, -0.0625, 0.046875;
		Case 15:
			ShiftTexture = 0, -0.0625, 0.0625;
		Case 16:
			ShiftTexture = 0, 0.0, -0.046875;
		Case 17:
			ShiftTexture = 0, 0.0, -0.03125;
		Case 18:
			ShiftTexture = 0, 0.0, -0.015625;
		Case 19:
			ShiftTexture = 0, 0.0, 0.0;
		Case 20:
			ShiftTexture = 0, 0.0, 0.015625;
		Case 21:
			ShiftTexture = 0, 0.0, 0.03125;
		Case 22:
			ShiftTexture = 0, 0.0, 0.046875;
		Case 23:
			ShiftTexture = 0, 0.0, 0.0625;
		Case 24:
			ShiftTexture = 0, 0.0625, -0.046875;
		Case 25:
			ShiftTexture = 0, 0.0625, -0.03125;
		Case 26:
			ShiftTexture = 0, 0.0625, -0.015625;
		Case 27:
			ShiftTexture = 0, 0.0625, 0.0;
		Case 28:
			ShiftTexture = 0, 0.0625, 0.015625;
		Case 29:
			ShiftTexture = 0, 0.0625, 0.03125;
		Case 30:
			ShiftTexture = 0, 0.0625, 0.046875;
		Case 31:
			ShiftTexture = 0, 0.0625, 0.0625;
		Case 32:
			ShiftTexture = 0, 0.125, -0.046875;
		Case 33:
			ShiftTexture = 0, 0.125, -0.03125;
		Case 34:
			ShiftTexture = 0, 0.125, -0.015625;
		Case 35:
			ShiftTexture = 0, 0.125, 0.0;
		Case 36:
			ShiftTexture = 0, 0.125, 0.015625;
		}
		ApplySwitch "編成"{
		Case 0,9,11,12,13,14,15,16,17,18,20,30:
			If "号車"==1{
				ChangeModel = "number_f_01-8.x", 1.0;
				ShiftTexture = 3, 0.015625, 0.0;
			}
		Case 10:
			If "号車"==1{
				ChangeModel = "number_f_11-8.x", 1.0;
				ShiftTexture = 3, 0.015625, 0.0;
			}Else{
				ChangeModel = "number_f_11-1.x", 1.0;
			}
		Default:
			If "号車"==0{
				ChangeModel = "number_f_02-1.x", 1.0;
			}Else{
				ShiftTexture = 1, 0.0, 0.109375;
				ShiftTexture = 3, 0.015625, 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "number_x"{
		ModelFileName = "number_s.x";
		CastShadow = no;
		ApplySwitch "編成"{
		Case 0:
			ShiftTexture = 0, -0.125, -0.046875;
			ShiftTexture = 2, -0.125, -0.046875;
		Case 1:
			ShiftTexture = 0, -0.125, -0.03125;
			ShiftTexture = 2, -0.125, -0.03125;
		Case 2:
			ShiftTexture = 0, -0.125, -0.015625;
			ShiftTexture = 2, -0.125, -0.015625;
		Case 3:
			ShiftTexture = 0, -0.125, 0.0;
			ShiftTexture = 2, -0.125, 0.0;
		Case 4:
			ShiftTexture = 0, -0.125, 0.015625;
			ShiftTexture = 2, -0.125, 0.015625;
		Case 5:
			ShiftTexture = 0, -0.125, 0.03125;
			ShiftTexture = 2, -0.125, 0.03125;
		Case 6:
			ShiftTexture = 0, -0.125, 0.046875;
			ShiftTexture = 2, -0.125, 0.046875;
		Case 7:
			ShiftTexture = 0, -0.125, 0.0625;
			ShiftTexture = 2, -0.125, 0.0625;
		Case 8:
			ShiftTexture = 0, -0.0625, -0.046875;
			ShiftTexture = 2, -0.0625, -0.046875;
		Case 9:
			ShiftTexture = 0, -0.0625, -0.03125;
			ShiftTexture = 2, -0.0625, -0.03125;
		Case 10:
			ShiftTexture = 0, -0.0625, -0.015625;
			ShiftTexture = 2, -0.0625, -0.015625;
		Case 11:
			ShiftTexture = 0, -0.0625, 0.0;
			ShiftTexture = 2, -0.0625, 0.0;
		Case 12:
			ShiftTexture = 0, -0.0625, 0.015625;
			ShiftTexture = 2, -0.0625, 0.015625;
		Case 13:
			ShiftTexture = 0, -0.0625, 0.03125;
			ShiftTexture = 2, -0.0625, 0.03125;
		Case 14:
			ShiftTexture = 0, -0.0625, 0.046875;
			ShiftTexture = 2, -0.0625, 0.046875;
		Case 15:
			ShiftTexture = 0, -0.0625, 0.0625;
			ShiftTexture = 2, -0.0625, 0.0625;
		Case 16:
			ShiftTexture = 0, 0.0, -0.046875;
			ShiftTexture = 2, 0.0, -0.046875;
		Case 17:
			ShiftTexture = 0, 0.0, -0.03125;
			ShiftTexture = 2, 0.0, -0.03125;
		Case 18:
			ShiftTexture = 0, 0.0, -0.015625;
			ShiftTexture = 2, 0.0, -0.015625;
		Case 19:
			ShiftTexture = 0, 0.0, 0.0;
			ShiftTexture = 2, 0.0, 0.0;
		Case 20:
			ShiftTexture = 0, 0.0, 0.015625;
			ShiftTexture = 2, 0.0, 0.015625;
		Case 21:
			ShiftTexture = 0, 0.0, 0.03125;
			ShiftTexture = 2, 0.0, 0.03125;
		Case 22:
			ShiftTexture = 0, 0.0, 0.046875;
			ShiftTexture = 2, 0.0, 0.046875;
		Case 23:
			ShiftTexture = 0, 0.0, 0.0625;
			ShiftTexture = 2, 0.0, 0.0625;
		Case 24:
			ShiftTexture = 0, 0.0625, -0.046875;
			ShiftTexture = 2, 0.0625, -0.046875;
		Case 25:
			ShiftTexture = 0, 0.0625, -0.03125;
			ShiftTexture = 2, 0.0625, -0.03125;
		Case 26:
			ShiftTexture = 0, 0.0625, -0.015625;
			ShiftTexture = 2, 0.0625, -0.015625;
		Case 27:
			ShiftTexture = 0, 0.0625, 0.0;
			ShiftTexture = 2, 0.0625, 0.0;
		Case 28:
			ShiftTexture = 0, 0.0625, 0.015625;
			ShiftTexture = 2, 0.0625, 0.015625;
		Case 29:
			ShiftTexture = 0, 0.0625, 0.03125;
			ShiftTexture = 2, 0.0625, 0.03125;
		Case 30:
			ShiftTexture = 0, 0.0625, 0.046875;
			ShiftTexture = 2, 0.0625, 0.046875;
		Case 31:
			ShiftTexture = 0, 0.0625, 0.0625;
			ShiftTexture = 2, 0.0625, 0.0625;
		Case 32:
			ShiftTexture = 0, 0.125, -0.046875;
			ShiftTexture = 2, 0.125, -0.046875;
		Case 33:
			ShiftTexture = 0, 0.125, -0.03125;
			ShiftTexture = 2, 0.125, -0.03125;
		Case 34:
			ShiftTexture = 0, 0.125, -0.015625;
			ShiftTexture = 2, 0.125, -0.015625;
		Case 35:
			ShiftTexture = 0, 0.125, 0.0;
			ShiftTexture = 2, 0.125, 0.0;
		Case 36:
			ShiftTexture = 0, 0.125, 0.015625;
			ShiftTexture = 2, 0.125, 0.015625;
		}
		If "号車"==1{
			ShiftTexture = 1, 0.0, 0.109375;
			ShiftTexture = 3, 0.0, 0.109375;
		}
		ApplySwitch "編成"{
		Case 0,9,11,12,13,14,15,16,17,18,20,30:
			If "号車"==1{
				StaticMove{
					Displacement = (0.0, 0.0, 0.02);
				}
			}Else{
				StaticMove{
					Displacement = (0.0, 0.0, 0.01);
				}
			}
		Case 10:
			If "号車"==1{
				StaticMove{
					Displacement = (0.0, 0.0, 0.04);
				}
			}Else{
				StaticMove{
					Displacement = (0.0, 0.0, 0.02);
				}
			}
		Default:
			If "号車"==0{
				StaticMove{
					Displacement = (0.0, 0.0, -0.02);
				}
			}
		}
		If "仕様">1{
			NoShadow = 2,3;
			ChangeAlpha = 2,0.0;
			ChangeAlpha = 3,0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "number_-x"{
		ModelFileName = "number_s.x";
		CastShadow = no;
		ApplySwitch "編成"{
		Case 0:
			ShiftTexture = 0, -0.125, -0.046875;
			ShiftTexture = 2, -0.125, -0.046875;
		Case 1:
			ShiftTexture = 0, -0.125, -0.03125;
			ShiftTexture = 2, -0.125, -0.03125;
		Case 2:
			ShiftTexture = 0, -0.125, -0.015625;
			ShiftTexture = 2, -0.125, -0.015625;
		Case 3:
			ShiftTexture = 0, -0.125, 0.0;
			ShiftTexture = 2, -0.125, 0.0;
		Case 4:
			ShiftTexture = 0, -0.125, 0.015625;
			ShiftTexture = 2, -0.125, 0.015625;
		Case 5:
			ShiftTexture = 0, -0.125, 0.03125;
			ShiftTexture = 2, -0.125, 0.03125;
		Case 6:
			ShiftTexture = 0, -0.125, 0.046875;
			ShiftTexture = 2, -0.125, 0.046875;
		Case 7:
			ShiftTexture = 0, -0.125, 0.0625;
			ShiftTexture = 2, -0.125, 0.0625;
		Case 8:
			ShiftTexture = 0, -0.0625, -0.046875;
			ShiftTexture = 2, -0.0625, -0.046875;
		Case 9:
			ShiftTexture = 0, -0.0625, -0.03125;
			ShiftTexture = 2, -0.0625, -0.03125;
		Case 10:
			ShiftTexture = 0, -0.0625, -0.015625;
			ShiftTexture = 2, -0.0625, -0.015625;
		Case 11:
			ShiftTexture = 0, -0.0625, 0.0;
			ShiftTexture = 2, -0.0625, 0.0;
		Case 12:
			ShiftTexture = 0, -0.0625, 0.015625;
			ShiftTexture = 2, -0.0625, 0.015625;
		Case 13:
			ShiftTexture = 0, -0.0625, 0.03125;
			ShiftTexture = 2, -0.0625, 0.03125;
		Case 14:
			ShiftTexture = 0, -0.0625, 0.046875;
			ShiftTexture = 2, -0.0625, 0.046875;
		Case 15:
			ShiftTexture = 0, -0.0625, 0.0625;
			ShiftTexture = 2, -0.0625, 0.0625;
		Case 16:
			ShiftTexture = 0, 0.0, -0.046875;
			ShiftTexture = 2, 0.0, -0.046875;
		Case 17:
			ShiftTexture = 0, 0.0, -0.03125;
			ShiftTexture = 2, 0.0, -0.03125;
		Case 18:
			ShiftTexture = 0, 0.0, -0.015625;
			ShiftTexture = 2, 0.0, -0.015625;
		Case 19:
			ShiftTexture = 0, 0.0, 0.0;
			ShiftTexture = 2, 0.0, 0.0;
		Case 20:
			ShiftTexture = 0, 0.0, 0.015625;
			ShiftTexture = 2, 0.0, 0.015625;
		Case 21:
			ShiftTexture = 0, 0.0, 0.03125;
			ShiftTexture = 2, 0.0, 0.03125;
		Case 22:
			ShiftTexture = 0, 0.0, 0.046875;
			ShiftTexture = 2, 0.0, 0.046875;
		Case 23:
			ShiftTexture = 0, 0.0, 0.0625;
			ShiftTexture = 2, 0.0, 0.0625;
		Case 24:
			ShiftTexture = 0, 0.0625, -0.046875;
			ShiftTexture = 2, 0.0625, -0.046875;
		Case 25:
			ShiftTexture = 0, 0.0625, -0.03125;
			ShiftTexture = 2, 0.0625, -0.03125;
		Case 26:
			ShiftTexture = 0, 0.0625, -0.015625;
			ShiftTexture = 2, 0.0625, -0.015625;
		Case 27:
			ShiftTexture = 0, 0.0625, 0.0;
			ShiftTexture = 2, 0.0625, 0.0;
		Case 28:
			ShiftTexture = 0, 0.0625, 0.015625;
			ShiftTexture = 2, 0.0625, 0.015625;
		Case 29:
			ShiftTexture = 0, 0.0625, 0.03125;
			ShiftTexture = 2, 0.0625, 0.03125;
		Case 30:
			ShiftTexture = 0, 0.0625, 0.046875;
			ShiftTexture = 2, 0.0625, 0.046875;
		Case 31:
			ShiftTexture = 0, 0.0625, 0.0625;
			ShiftTexture = 2, 0.0625, 0.0625;
		Case 32:
			ShiftTexture = 0, 0.125, -0.046875;
			ShiftTexture = 2, 0.125, -0.046875;
		Case 33:
			ShiftTexture = 0, 0.125, -0.03125;
			ShiftTexture = 2, 0.125, -0.03125;
		Case 34:
			ShiftTexture = 0, 0.125, -0.015625;
			ShiftTexture = 2, 0.125, -0.015625;
		Case 35:
			ShiftTexture = 0, 0.125, 0.0;
			ShiftTexture = 2, 0.125, 0.0;
		Case 36:
			ShiftTexture = 0, 0.125, 0.015625;
			ShiftTexture = 2, 0.125, 0.015625;
		}
		If "号車"==1{
			ShiftTexture = 1, 0.0, 0.109375;
			ShiftTexture = 3, 0.0, 0.109375;
		}
		ApplySwitch "編成"{
		Case 0,9,11,12,13,14,15,16,17,18,20,30:
			If "号車"==1{
				StaticMove{
					Displacement = (0.0, 0.0, 0.02);
				}
			}Else{
				StaticMove{
					Displacement = (0.0, 0.0, 0.01);
				}
			}
		Case 10:
			If "号車"==1{
				StaticMove{
					Displacement = (0.0, 0.0, 0.04);
				}
			}Else{
				StaticMove{
					Displacement = (0.0, 0.0, 0.02);
				}
			}
		Default:
			If "号車"==0{
				StaticMove{
					Displacement = (0.0, 0.0, -0.02);
				}
			}
		}
		If "仕様">1{
			NoShadow = 2,3;
			ChangeAlpha = 2,0.0;
			ChangeAlpha = 3,0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Sticker"{
		ModelFileName = "sticker.x";
		CastShadow = no;
			NoShadow = 2,3,4,5,6;
			ChangeAlpha = 2,0.0;
			ChangeAlpha = 3,0.0;
			ChangeAlpha = 4,0.0;
			ChangeAlpha = 5,0.0;
			ChangeAlpha = 6,0.0;
		If "号車"==1{
			ShiftTexture = 0, 0.03125, 0.015625;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorl"{
		ModelFileName = "tojime.x";
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (-1.39, 3.16, -0.53);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "tojime.x";
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (1.39, 3.16, 0.53);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "Shadow.x";
		NoShadow = 0;
		ApplySwitch "簡易影"{
			Case 1:
				ChangeModel = "", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	If "電源"==0 && ("前照灯・尾灯"<2 && !"_FRONT") && "レンズフレア"==0 && !"_CONNECT1" {
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (1.07, 1.68, 10.05);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 50.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.6;
					    TexFileName = "tex/フレア.png";
					    Color = #FFE5C894;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-1.07, 1.68, 10.05);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
	}
	If  "電源"==0 && (("前照灯・尾灯"==0 && "_FRONT")|| "前照灯・尾灯"==1) &&"レンズフレア"==0 && !"_CONNECT1" {
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (1.22, 1.86, 8.65);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
			LensFlare{
			    StartAngle = 40.0;
			    Twinkle = 0.1;
				Texture{
				    Distance = 0.005;
				    Radius = 0.45;
				    TexFileName = "tex/フレア.png";
				    Color = #FFDD0014;
				}
			}
		}
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (-1.22, 1.86, 8.65);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

