PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Station;
	PluginName = "[駅]架空鉄道向け駅1-島式ホーム";
	PluginAuthor = "n";
	IconTexture = "";
	Description = "高架用の島式ホームです。";
	Description = "ホーム幅_7m 線路幅_10m 停車属性あり";
	Description = "駅舎ありで設置する際は、地上から8mで設置してください。";
}

StationInfo{
}
Platform{
	OpenDoor = yes, no;
	Coord = (5.0, 0.0, -80.0);
	Coord = (5.0, 0.0, 80.0);
}
Platform{
	OpenDoor = yes, no;
	Coord = (-5.0, 0.0, 80.0);
	Coord = (-5.0, 0.0, -80.0);
}
DefineSwitch "駅外装"{
	Entry = "無";
	Entry = "壁1";
	Entry = "壁1(片側のみ)";
	Entry = "壁1(片側のみ・反転)";
	Entry = "壁1(天井・床のみ)";
}
DefineSwitch "駅外装壁"{
	Entry = "窓";
	Entry = "壁";
	Entry = "無";
}
DefineSwitch "駅舎柱色調"{
	Entry = "標準";
	Entry = "赤";
	Entry = "緑";
	Entry = "青";
	Entry = "橙";
	Entry = "黄";
	Entry = "青緑";
	Entry = "黒";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "ホーム長"{
	Entry = "170m(20m級8両+10m)";
	Entry = "210m(20m級10両+10m)";
	Entry = "250m(20m級12両+10m)";
	Entry = "330m(20m級16両+10m)";
}
DefineSwitch "ホーム床面"{
	Entry = "タイル(白)";
	Entry = "タイル(黒)";
	Entry = "タイル(薄橙)";
	Entry = "アスファルト";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "ホーム駅名標"{
	Entry = "標準";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "ホーム番線案内"{
	Entry = "標準";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "ホーム上設備"{
	Entry = "標準";
	Entry = "無";
}
DefineSwitch "ホーム案内標識"{
	Entry = "標準";
	Entry = "無";
}
DefineSwitch "ホーム終端梯子"{
	Entry = "有";
	Entry = "有(片方向のみ)";
	Entry = "無";
}
DefineSwitch "駅舎"{
	Entry = "無";
	Entry = "60m";
}
DefineSwitch "駅舎外壁"{
	Entry = "標準";
	Entry = "1";
	Entry = "2";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
	Entry = "ユーザー定義";
}
DefineSwitch "ホーム照明"{
	Entry = "白";
	Entry = "白+青";
}
DefineSwitch "照明時間"{
	Entry = "自動(04:00〜24:00)";
	Entry = "夜間";
	Entry = "常時";
	Entry = "消灯";
}

DefineSwitch "架線柱"{
	Entry = "準備中";
	Entry = "準備中";
	Entry = "準備中";
}
DefineSwitch "橋脚"{
	Entry = "無";
	Entry = "有";
}
PrimaryAssembly{
	Object3D "form"{
		ModelFileName = "formbase170.x";
		ModelScale = 10.0;
		AlphaZeroTest = 6;
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeMaterial{
		MaterialID = 0,1,2;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeMaterial{
		MaterialID = 0,1,2;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==2{
		ChangeMaterial{
		MaterialID = 0,1,2;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		ApplySwitch "ホーム長"{
		Case 1:ChangeModel = "formbase210.x", 10.0;
		Case 2:ChangeModel = "formbase250.x", 10.0;
		Case 3:ChangeModel = "formbase330.x", 10.0;
		}
		ApplySwitch "ホーム床面"{
		Case 0:ChangeTexture = 2, "tex/ホーム床面1.png";
		Case 1:ChangeTexture = 2, "tex/ホーム床面2.png";
		Case 2:ChangeTexture = 2, "tex/ホーム床面3.png";	
		Case 3:ChangeTexture = 2, "tex/ホーム床面4.png";	
		}	
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "wall1"{
		ModelFileName = "";
		ModelScale = 10.0;
		ApplySwitch "駅外装"{
		Case 1:	
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/wall1base170.x", 10.0;
		Case 1:ChangeModel = "wall/1/wall1base210.x", 10.0;
		Case 2:ChangeModel = "wall/1/wall1base250.x", 10.0;
		Case 3:ChangeModel = "wall/1/wall1base330.x", 10.0;
		}
		Case 2:	
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/wall1base170_r.x", 10.0;
		Case 1:ChangeModel = "wall/1/wall1base210_r.x", 10.0;
		Case 2:ChangeModel = "wall/1/wall1base250_r.x", 10.0;
		Case 3:ChangeModel = "wall/1/wall1base330_r.x", 10.0;
		}
		Case 3:	
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/wall1base170_l.x", 10.0;
		Case 1:ChangeModel = "wall/1/wall1base210_l.x", 10.0;
		Case 2:ChangeModel = "wall/1/wall1base250_l.x", 10.0;
		Case 3:ChangeModel = "wall/1/wall1base330_l.x", 10.0;
		}
		Case 4:	
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/wall1base170_n.x", 10.0;
		Case 1:ChangeModel = "wall/1/wall1base210_n.x", 10.0;
		Case 2:ChangeModel = "wall/1/wall1base250_n.x", 10.0;
		Case 3:ChangeModel = "wall/1/wall1base330_n.x", 10.0;
		}
		}
		ApplySwitch "駅舎柱色調"{
		Case 1:ChangeTexture = 4, "tex/外壁柱赤.png";ChangeTexture = 7, "tex/外壁柱赤.png";ChangeTexture = 8, "tex/屋根赤.png";	
		Case 2:ChangeTexture = 4, "tex/外壁柱緑.png";ChangeTexture = 7, "tex/外壁柱緑.png";ChangeTexture = 8, "tex/屋根緑.png";	
		Case 3:ChangeTexture = 4, "tex/外壁柱青.png";ChangeTexture = 7, "tex/外壁柱青.png";ChangeTexture = 8, "tex/屋根青.png";	
		Case 4:ChangeTexture = 4, "tex/外壁柱橙.png";ChangeTexture = 7, "tex/外壁柱橙.png";ChangeTexture = 8, "tex/屋根橙.png";	
		Case 5:ChangeTexture = 4, "tex/外壁柱黄.png";ChangeTexture = 7, "tex/外壁柱黄.png";ChangeTexture = 8, "tex/屋根黄.png";	
		Case 6:ChangeTexture = 4, "tex/外壁柱青緑.png";ChangeTexture = 7, "tex/外壁柱青緑.png";ChangeTexture = 8, "tex/屋根青緑.png";	
		Case 7:ChangeTexture = 4, "tex/外壁柱黒.png";ChangeTexture = 7, "tex/外壁柱黒.png";ChangeTexture = 8, "tex/屋根黒.png";	
		}	
		ApplySwitch "ホーム照明"{
		Case 1:ChangeTexture = 0, "tex/LED1.png";
		}
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeTexture = 5, "tex/天井_明.png";	
		ChangeMaterial{
		MaterialID = 0,4,5;
		Emissive = 0.5, 0.5, 0.5; 
		}
		ChangeMaterial{
		MaterialID = 1,2,3;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeTexture = 5, "tex/天井_明.png";	
		ChangeMaterial{
		MaterialID = 0,4,5;
		Emissive = 0.5, 0.5, 0.5; 
		}
		ChangeMaterial{
		MaterialID = 1,2,3;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		If "照明時間"==2{
		ChangeTexture = 5, "tex/天井_明.png";	
		ChangeMaterial{
		MaterialID = 0,4,5;
		Emissive = 0.5, 0.5, 0.5; 
		}
		ChangeMaterial{
		MaterialID = 1,2,3;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "windowr"{
		ModelFileName = "";
		ModelScale = 10.0;
		Transparent = 0,1;
		ApplySwitch "駅外装"{
		Case 1,2:
		ApplySwitch "駅外装壁"{
		Case 0,1:
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/window1base170_r.x", 10.0;
		Case 1:ChangeModel = "wall/1/window1base210_r.x", 10.0;
		Case 2:ChangeModel = "wall/1/window1base250_r.x", 10.0;
		Case 3:ChangeModel = "wall/1/window1base330_r.x", 10.0;
		}
		}
		}
		ApplySwitch "駅外装壁"{
		Case 1:ChangeTexture = 0, "tex/壁.png";ChangeTexture = 1, "tex/壁.png";
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "windowl"{
		ModelFileName = "";
		ModelScale = 10.0;
		Transparent = 0,1;
		ApplySwitch "駅外装"{
		Case 1,3:
		ApplySwitch "駅外装壁"{
		Case 0,1:
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "wall/1/window1base170_l.x", 10.0;
		Case 1:ChangeModel = "wall/1/window1base210_l.x", 10.0;
		Case 2:ChangeModel = "wall/1/window1base250_l.x", 10.0;
		Case 3:ChangeModel = "wall/1/window1base330_l.x", 10.0;
		}
		}
		}
		ApplySwitch "駅外装壁"{
		Case 1:ChangeTexture = 0, "tex/壁.png";ChangeTexture = 1, "tex/壁.png";
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "sta"{
		ModelFileName = "";
		ModelScale = 10.0;
		NoShadow = 2,3;
		ChangeAlpha = 2,0;ChangeAlpha = 3,0;
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeAlpha = 2,1;ChangeAlpha = 3,1;
		ChangeMaterial{
		MaterialID = 5,6,7;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeAlpha = 2,1;ChangeAlpha = 3,1;
		ChangeMaterial{
		MaterialID = 5,6,7;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		If "照明時間"==2{
		ChangeAlpha = 2,1;ChangeAlpha = 3,1;
		ChangeMaterial{
		MaterialID = 5,6,7;
		Emissive = 0.3, 0.3, 0.3; 
		}
		}
		ApplySwitch "駅舎"{
		Case 1:
		ApplySwitch "駅外装"{
		Case 1:ChangeModel = "sta/stabase76.x", 10.0;
		Case 2:ChangeModel = "sta/stabase76_r.x", 10.0;
		Case 3:ChangeModel = "sta/stabase76_l.x", 10.0;
		Case 4:ChangeModel = "sta/stabase76_n.x", 10.0;
		}
		}
		ApplySwitch "駅舎外壁"{
		Case 1:ChangeTexture = 0, "tex/駅舎外壁1.png";ChangeTexture = 1, "tex/駅舎外壁1.png";
		Case 2:ChangeTexture = 0, "tex/駅舎外壁2.png";ChangeTexture = 1, "tex/駅舎外壁2.png";	
		}	
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, -1.0, 0.0);
		}
	}


	Object3D "stairs"{
		ModelFileName = "";
		ModelScale = 10.0;
		NoShadow = 2,3;
		ApplySwitch "ホーム上設備"{
		Case 0:ChangeModel = "stairs.x", 10.0;
		}
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeMaterial{
		MaterialID = 0,1,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeMaterial{
		MaterialID = 0,1,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==2{
		ChangeMaterial{
		MaterialID = 0,1,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "sign0"{
		ModelFileName = "";
		ModelScale = 10.0;
		ApplySwitch "ホーム駅名標"{
		Case 0:ChangeTexture = 1, "tex/駅名標.png";ChangeTexture = 2, "tex/駅名標_反転.png";
		Case 1:ChangeTexture = 1, "tex/";ChangeTexture = 2, "tex/";
		}	
		ApplySwitch "ホーム案内標識"{
		Case 0:ChangeModel = "sign0.x", 10.0;
		}
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==2{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "sign1"{
		ModelFileName = "";
		ModelScale = 10.0;
		ApplySwitch "ホーム番線案内"{
		Case 0:ChangeTexture = 1, "tex/番線案内.png";ChangeTexture = 2, "tex/番線案内_反転.png";
		Case 1:ChangeTexture = 1, "tex/";ChangeTexture = 2, "tex/";
		}	
		ApplySwitch "駅外装"{
		Case 1,2,3,4:
		ApplySwitch "ホーム案内標識"{
		Case 0:ChangeModel = "sign1.x", 10.0;
		}
		}
		If "照明時間"==0&&"_HOUR"<24&&"_HOUR">=4{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==1 && "_NIGHT"==1{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		If "照明時間"==2{
		ChangeMaterial{
		MaterialID = 0,1,2,3,4;
		Emissive = 0.5, 0.5, 0.5; 
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "hashigoz"{
		ModelFileName = "";
		ModelScale = 10.0;
		ApplySwitch "ホーム終端梯子"{
		Case 0,1:ChangeModel = "hashigo.x", 10.0;
		}
		ApplySwitch "ホーム長"{
		Case 0:
		StaticMove{
		    Displacement = (0,0,85);
		}
		Case 1:
		StaticMove{
		    Displacement = (0,0,105);
		}
		Case 2:
		StaticMove{
		    Displacement = (0,0,125);
		}
		Case 3:
		StaticMove{
		    Displacement = (0,0,165);
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


	Object3D "hashigo-z"{
		ModelFileName = "";
		ModelScale = 10.0;
		StaticRotation{
		RotationAxis = (0,1,0);
		RotationAngle = 180;
		}
		ApplySwitch "ホーム終端梯子"{
		Case 0:ChangeModel = "hashigo.x", 10.0;
		}
		ApplySwitch "ホーム長"{
		Case 0:
		StaticMove{
		    Displacement = (0,0,85);
		}
		Case 1:
		StaticMove{
		    Displacement = (0,0,105);
		}
		Case 2:
		StaticMove{
		    Displacement = (0,0,125);
		}
		Case 3:
		StaticMove{
		    Displacement = (0,0,165);
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


	Object3D "pier"{
		ModelFileName = "";
		ModelScale = 10.0;
		ApplySwitch "橋脚"{
		Case 1:
		ApplySwitch "ホーム長"{
		Case 0:ChangeModel = "pier170.x", 10.0;
		Case 1:ChangeModel = "pier210.x", 10.0;
		Case 2:ChangeModel = "pier250.x", 10.0;
		Case 3:ChangeModel = "pier330.x", 10.0;
		}
		}
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, -1.0, 0.0);
		}
	}
}


