TeButtonLayout {
	name = "rotationAnim",
	sizeType = Percent, size = {1.0, 1.0},
	
	TeLayout {
		sizeType = Percent, size = {1.0, 1.0},
		ratioMode = PanScan,	
		ratio = 16/9,
	
		TeSpriteLayout {
			name = "plancheBas",
			anchor = {0.5, 0.0},
			sizeType = Percent, size = {1365/1365, 384/768},		
			image = "2D/Menus/planche_bas.png",
		},	
		TeSpriteLayout {
			name = "plancheHaut",
			anchor = {0.5, 1.0},		
			sizeType = Percent, size = {1365/1365, 384/768},
			image = "2D/Menus/planche_haut.png",	
			
			TeSpriteLayout {
				name = "center",
				position = {0.5, 1.0},
				sizeType = Percent, size = {250/1365, 250/384},		
				image = "2D/Menus/MainMenu/boucle_fermeture.png",
			},
		},		
	},
}

-- LANSCAPE
TeLayoutPositionLinearAnimation {
	name = "landscapeClosePlancheHaut", startValue = {0.5, -0.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "landscapeClosePlancheBas", startValue = {0.5, 1.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
landscapeCloseSound = "Sounds/SFX/E_Piano_Clavier_ferme_NA.wav";

TeLayoutPositionLinearAnimation {
	name = "landscapeRotatePlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeRotationLinearAnimation {
	name = "landscapeRotateCenter", startValue = {0.0, 0.0, 1.0, 0}, endValue = {0.0, 0.0, 1.0, 90}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "landscapeRotatePlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 0.5},	duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
landscapeRotateSound = "Sounds/SFX/DemontageObjet.wav";

TeLayoutPositionLinearAnimation {
	name = "landscapeOpenPlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, -0.3},	duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "landscapeOpenPlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 1.3}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
landscapeOpenSound = "Sounds/SFX/E_Piano_Clavier_ouvre_NA.wav";

-- PORTRAIT
TeLayoutPositionLinearAnimation {
	name = "portraitClosePlancheHaut", startValue = {0.5, -0.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "portraitClosePlancheBas", startValue = {0.5, 1.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
portraitCloseSound = "Sounds/SFX/E_Piano_Clavier_ferme_NA.wav";

TeLayoutPositionLinearAnimation {
	name = "portraitRotatePlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeRotationLinearAnimation {
	name = "portraitRotateCenter", startValue = {0.0, 0.0, 1.0, 90}, endValue = {0.0, 0.0, 1.0, 0}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "portraitRotatePlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 0.5},	duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
portraitRotateSound = "Sounds/SFX/DemontageObjet.wav";

TeLayoutPositionLinearAnimation {
	name = "portraitOpenPlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, -0.3},	duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "portraitOpenPlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 1.3}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
portraitOpenSound = "Sounds/SFX/E_Piano_Clavier_ouvre_NA.wav";

-- STAY LANDSCAPE
TeLayoutPositionLinearAnimation {
	name = "stayLandscapeClosePlancheHaut", startValue = {0.5, -0.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "stayLandscapeClosePlancheBas", startValue = {0.5, 1.3}, endValue = {0.5, 0.5}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
stayLandscapeCloseSound = "Sounds/SFX/E_Piano_Clavier_ferme_NA.wav";

TeLayoutPositionLinearAnimation {
	name = "stayLandscapeRotatePlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, 0.5}, duration = 0, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeRotationLinearAnimation {
	name = "stayLandscapeRotateCenter", startValue = {0.0, 0.0, 1.0, 90}, endValue = {0.0, 0.0, 1.0, 90}, duration = 0, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "stayLandscapeRotatePlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 0.5},	duration = 0, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}

TeLayoutPositionLinearAnimation {
	name = "stayLandscapeOpenPlancheHaut", startValue = {0.5, 0.5}, endValue = {0.5, -0.3},	duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
TeLayoutPositionLinearAnimation {
	name = "stayLandscapeOpenPlancheBas", startValue = {0.5, 0.5}, endValue = {0.5, 1.3}, duration = 1000, curve = {0.0, 0.35, 0.68, 0.85, 0.93, 0.97, 1.0},
}
stayLandscapeOpenSound = "Sounds/SFX/E_Piano_Clavier_ouvre_NA.wav";
