function makeDice(name, x, y)
	return 	TeButtonLayout {
				name = name,
				position = {x, y},
				sizeType = Percent, size = {45/380, 50/78},
				
				TeSpriteLayout {
					name = name.."Value1",		
					image = "2D/puzzles/Dices/dice1.png",	
				},		
				TeSpriteLayout {
					name = name.."Value2",		
					image = "2D/puzzles/Dices/dice2.png",	
				},	
				TeSpriteLayout {
					name = name.."Value3",		
					image = "2D/puzzles/Dices/dice3.png",	
				},	
				TeSpriteLayout {
					name = name.."Value4",		
					image = "2D/puzzles/Dices/dice4.png",	
				},	
				TeSpriteLayout {
					name = name.."Value5",		
					image = "2D/puzzles/Dices/dice5.png",	
				},	
				TeSpriteLayout {
					name = name.."Value6",		
					image = "2D/puzzles/Dices/dice6.png",	
				},				
			}
end

TeButtonLayout {
	name = "puzzleDices",
	sizeType = Percent, size = {1.0, 1.0},
	upLayout = TeSpriteLayout {
		sizeType = Percent, size = {1.0, 1.0},	
		image = "2D/Opacity50Screen.png",
	},

	TeSpriteLayout {
		name = "background",		
		image = "2D/puzzles/Dices/background.png",	
		
		makeDice("dice0", 40/380, 40/78),
		makeDice("dice1", 85/380, 40/78),
		makeDice("dice2", 130/380, 40/78),
		makeDice("dice3", 175/380, 40/78),
		makeDice("dice4", 220/380, 40/78),
		
		TeLayout {
			name = "digit0",
			position = {283/380, 39/78},
			
			TeSpriteLayout {
				name = "digit0Value0",		
				image = "2D/puzzles/Dices/digit0.png",	
			},		
			TeSpriteLayout {
				name = "digit0Value1",		
				image = "2D/puzzles/Dices/digit1.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value2",		
				image = "2D/puzzles/Dices/digit2.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value3",		
				image = "2D/puzzles/Dices/digit3.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value4",		
				image = "2D/puzzles/Dices/digit4.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value5",		
				image = "2D/puzzles/Dices/digit5.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value6",		
				image = "2D/puzzles/Dices/digit6.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value7",		
				image = "2D/puzzles/Dices/digit7.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value8",		
				image = "2D/puzzles/Dices/digit8.png",	
			},	
			TeSpriteLayout {
				name = "digit0Value9",		
				image = "2D/puzzles/Dices/digit9.png",	
			},				
		},
		TeLayout {
			name = "digit1",
			position = {299/380, 39/78},
			
			TeSpriteLayout {
				name = "digit1Value0",		
				image = "2D/puzzles/Dices/digit0.png",	
			},		
			TeSpriteLayout {
				name = "digit1Value1",		
				image = "2D/puzzles/Dices/digit1.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value2",		
				image = "2D/puzzles/Dices/digit2.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value3",		
				image = "2D/puzzles/Dices/digit3.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value4",		
				image = "2D/puzzles/Dices/digit4.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value5",		
				image = "2D/puzzles/Dices/digit5.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value6",		
				image = "2D/puzzles/Dices/digit6.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value7",		
				image = "2D/puzzles/Dices/digit7.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value8",		
				image = "2D/puzzles/Dices/digit8.png",	
			},	
			TeSpriteLayout {
				name = "digit1Value9",		
				image = "2D/puzzles/Dices/digit9.png",	
			},				
		},		
		
		TeButtonLayout {
			name = "okButton",
			position = {340/380, 39/78},
			validationSound = "Sounds/SFX/Clic_Retour.wav",
			upLayout = TeSpriteLayout {
				image = "2D/puzzles/Dices/okButtonUp.png",
			},
			downLayout = TeSpriteLayout {
				image = "2D/puzzles/Dices/okButtonDown.png",
			}
		},			
		
	},
	
	TeButtonLayout {
		name = "quitButton",
		position = {0.82, 0.10},
		validationSound = "Sounds/SFX/Clic_Retour.wav",
		upLayout = TeSpriteLayout {
			image = "2D/Menus/Quit.png",
		},
		downLayout = TeSpriteLayout {
			image = "2D/Menus/Quit_over.png",
		}
	},				
}
