screen TreasureRoom
{
	onaction escape "GotoScreenNoOuts MainMenu DoorTransition"

	widget Button Background
	{
		mins 0,0
		size 800,600
		texture "data/gfx/ui/TreasureRoom"
	}

	widget EffectEmitter treasure_effects_lights
	{
		mins 0, 0
	
		effectName "TreasureRoom_Light_01"
		
		//EventToStartEffectsOn "UIStartPauseEffect"
		//EventToStopEffectsOn "UIStopPauseEffect"
		StartOn
	}

	widget EffectEmitter treasure_effects_sparkles
	{
		mins 0, 0
	
		effectName "TreasureRoom_Sparkles_01"
		
		//EventToStartEffectsOn "UIStartPauseEffect"
		//EventToStopEffectsOn "UIStopPauseEffect"
		StartOn
	}
	
defaultwidget ReturnToMainMenu
	
//================= Achievement Chain Collapses ===================

	widget Button AchievementChainCollapseShadow
	{
		onaction hoverOn 	"event showchaintitle"
		onaction hoverOff	"event hidechain"
		
		mins 180, 460
		size 108, 208
		color 0,0,0,64
		eventToHideOn "AchievementChainCollapseAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementChainCollapse"
	}
	
	widget Button AchievementChainCollapse
	{

		onaction hoverOn 	"event showchain"
		onaction hoverOff	"event hidechain"

		mins 180, 460
		size 108, 208
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementChainCollapseAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementChainCollapse"
		style "HelpTextGreen22"
	}

	widget button Highlight
	{
		hidden
		eventToShowOn	"showchain"
		eventToHideOn	"hidechain"
		eventToHideOn "UITreasureRoomReset"

		mins 180, 460
		size 108, 208
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementChainCollapse"
	}
	
	widget label title
	{
		hidden
		eventToShowOn	"showchain"
		eventToShowOn	"showchaintitle"
		eventToHideOn	"hidechain"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementChainReactions"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_chaincollapse
	{
		hidden
		eventToShowOn	"AchievementChainCollapseAcquired"
		eventToHideOn	"UITreasureRoomReset"

		mins 0, 0
	
		effectName "TreasureRoom_ChainCollapse_01"		
		StartOn
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showchain"
		eventToHideOn	"hidechain"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Over5chaincollapsematchesinarow"
		style "HelpTextGreen22"
	}
	
	


//=============== reflector matches ===============================


	widget Button AchievementReflectorMatches1Shadow
	{
		onaction hoverOn 	"event showreflectortitle"
		onaction hoverOff	"event hidereflector"
		
		mins 280, 74
		size 40, 84
		color 0,0,0,64
		eventToHideOn "AchievementReflectorMatchesAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}
	
	widget Button AchievementReflectorMatches1
	{
		onaction hoverOn 	"event showreflector"
		onaction hoverOff	"event hidereflector"

		mins 280, 74
		size 40, 84
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementReflectorMatchesAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}
	
	widget Button AchievementReflectorHighlight1
	{
		hidden
		eventToShowOn 	"showreflector"
		eventToHideOn	"hidereflector"
		eventToHideOn "UITreasureRoomReset"

		mins 280, 74
		size 40, 84
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}
	
	widget Button AchievementReflectorMatches2Shadow
	{
		onaction hoverOn 	"event showreflectortitle"
		onaction hoverOff	"event hidereflector"
	
		mins 485, 74
		size 40, 84
		color 0,0,0,64
		TexCoordsForMins .83, 0
		TexCoordsForMaxs 1,1
		eventToHideOn "AchievementReflectorMatchesAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}

	widget Button AchievementReflectorMatches2
	{
		onaction hoverOn 	"event showreflector"
		onaction hoverOff	"event hidereflector"

		mins 485, 74
		size 40, 84
		TexCoordsForMins .83, 0
		TexCoordsForMaxs 1,1

		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementReflectorMatchesAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}
	
	widget Button AchievementReflectorMatchesHighlight2
	{
		hidden
		eventToShowOn 	"showreflector"
		
		eventToHideOn	"hidereflector"
		eventToHideOn "UITreasureRoomReset"

		mins 485, 74
		size 40, 84
		TexCoordsForMins .83, 0
		TexCoordsForMaxs 1,1
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementReflectorMatches"
	}

	widget label title
	{
		hidden
		eventToShowOn	"showreflector"
		eventToShowOn 	"showreflectortitle"
		eventToHideOn	"hidereflector"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementReflectorMatches"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_reflectormatches
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementReflectorMatchesAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_ReflectorMatches_01"
		
		
		StartOn
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showreflector"
		eventToHideOn	"hidereflector"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#25matchesusingreflectors"
		style "HelpTextGreen22"
	}

//================ Adventure Complete ================================

	widget Button AchievementAdventureCompleteShadow
	{
		onaction hoverOn 	"event showadventurecompletetitle"
		onaction hoverOff	"event hideadventurecomplete"
		
		mins 275, 250
		size 264, 88
		color 0,0,0,64
		eventToHideOn "AchievementAdventureCompleteAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementAdventureComplete"
	}
	
	widget Button AchievementAdventureComplete
	{
		onaction hoverOn 	"event showadventurecomplete"
		onaction hoverOff	"event hideadventurecomplete"

		mins 275, 250
		size 264, 88
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementAdventureCompleteAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementAdventureComplete"
	}
	
	widget Button AchievementAdventureCompleteHighlight
	{
		hidden
		eventToHideOn "hideadventurecomplete"
		eventToShowOn "showadventurecomplete"
		
		eventToHideOn "UITreasureRoomReset"

		mins 275, 250
		size 264, 88
		color 255,200,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementAdventureComplete"
	}
	
	widget label title
	{
		hidden
		eventToShowOn	"showadventurecomplete"
		eventToShowOn "showadventurecompletetitle"
		eventToHideOn	"hideadventurecomplete"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAdventureComplete"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_adventure
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementAdventureCompleteAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_AdventureComplete_01"
				
		StartOn
	}
	
	
	widget label description
	{
		hidden
		eventToShowOn	"showadventurecomplete"
		eventToHideOn	"hideadventurecomplete"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Adventurecampaigncompleted"
		style "HelpTextGreen22"
	}
	
//================== Puzzle Campaign Complete =======================
	
	widget Button AchievementPuzzleCompleteShadow
	{
		onaction hoverOn 	"event showPuzzleCompletetitle"
		onaction hoverOff	"event hidePuzzleComplete"
		
		mins 170, 275
		size 132, 70
		color 0,0,0,64
		eventToHideOn "AchievementPuzzleCompleteAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementPuzzleComplete"
	}
	
	widget Button AchievementPuzzleComplete
	{
		onaction hoverOn 	"event showPuzzleComplete"
		onaction hoverOff	"event hidePuzzleComplete"

		mins 170, 275
		size 132, 70
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementPuzzleCompleteAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementPuzzleComplete"
	}
	
	widget Button AchievementPuzzleCompleteHighlight
	{
		hidden
		eventToHideOn "hidePuzzleComplete"
		eventToShowOn "showPuzzleComplete"
		
		eventToHideOn "UITreasureRoomReset"

		mins 170, 275
		size 132, 70
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementPuzzleComplete"
	}

	widget label title
	{
		hidden
		eventToShowOn	"showPuzzleComplete"
		eventToShowOn "showPuzzleCompletetitle"
		eventToHideOn	"hidePuzzleComplete"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementPuzzleComplete"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_puzzle
	{
		hidden

		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementPuzzleCompleteAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_PuzzleComplete_01"
		StartOn
		
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showPuzzleComplete"
		eventToHideOn	"hidePuzzleComplete"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Puzzlecampaigncompleted"
		style "HelpTextGreen22"
	}

//================== Beat Crossing the Nile ===============================

	widget Button AchievementUnlockerShadow
	{
		onaction hoverOn 	"event showBeatCrossingtitle"
		onaction hoverOff	"event hideBeatCrossing"
		
		mins 500, 274
		size 100, 74
		color 0,0,0,64
		eventToHideOn "AchievementAllNileLevelsAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementNileCrossing"
	}
	
	widget Button AchievementUnlocker
	{
		onaction hoverOn 	"event showBeatCrossing"
		onaction hoverOff	"event hideBeatCrossing"

		mins 500, 274
		size 100, 74
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementAllNileLevelsAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementNileCrossing"
	}
	
	widget Button AchievementUnlockerHighlight
	{
		hidden
		eventToHideOn "hideBeatCrossing"
		eventToShowOn "showBeatCrossing"
		eventToHideOn "UITreasureRoomReset"

		mins 500, 274
		size 100, 74
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementNileCrossing"
	}

	widget label title
	{
		hidden
		eventToShowOn	"showBeatCrossing"
		eventToShowOn	"showBeatCrossingtitle"
		eventToHideOn	"hideBeatCrossing"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAllNileLevelsBeaten"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_nile
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementAllNileLevelsAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_NileComplete_01"
		StartOn
		
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showBeatCrossing"
		eventToHideOn	"hideBeatCrossing"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#BeatallCrossingtheNileLevels"
		style "HelpTextGreen22"
	}
	


//================ Human Net ======================================

	widget Button AchievementHumanNetShadow
	{
		onaction hoverOn 	"event showcaughteverythingtitle"
		onaction hoverOff	"event hidecaughteverything"
		
		mins 290, 317
		size 84, 121
		color 0,0,0,64
		eventToHideOn "AchievementHumanNetAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementHumanNet"
	}	

	widget Button AchievementHumanNet
	{
		onaction hoverOn 	"event showcaughteverything"
		onaction hoverOff	"event hidecaughteverything"

		mins 290, 317
		size 84, 121
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementHumanNetAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementHumanNet"
	}
	
	widget Button AchievementHumanNetHighlight
	{
		hidden
		eventToHideOn "hidecaughteverything"
		eventToShowOn "showcaughteverything"
		
		eventToHideOn "UITreasureRoomReset"

		mins 290, 317
		size 84, 121
		color 255,200,10,240
		texture "data/gfx/ui/TreasureRoom/AchievementHumanNet"
	}

	widget label title
	{
		hidden
		eventToShowOn	"showcaughteverything"
		eventToShowOn "showcaughteverythingtitle"
		eventToHideOn	"hidecaughteverything"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementHumanNet"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_net
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementHumanNetAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_HumanNet_01"
		StartOn
		
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showcaughteverything"
		eventToHideOn	"hidecaughteverything"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Caughteverything"
		style "HelpTextGreen22"
	}

//================= Coin Collector ================================

	widget Button AchievementAnkhCoinCollectorShadow
	{
		onaction hoverOn 	"event showcoinstitle"
		onaction hoverOff	"event hidecoins"
		
		mins 365, 270
		size 74, 76
		color 0,0,0,64
		eventToHideOn "AchievementAnkhCoinCollectorAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementAnkhCoinCollector"
	}
	
	widget Button AchievementAnkhCoinCollector
	{
		onaction hoverOn 	"event showcoins"
		onaction hoverOff	"event hidecoins"

		mins 365, 270
		size 74, 76
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementAnkhCoinCollectorAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementAnkhCoinCollector"
	}
	
	widget Button AchievementAnkhCoinCollectorHighlight
	{
		hidden
		eventToHideOn "hidecoins"
		eventToShowOn "showcoins"
		
		eventToHideOn "UITreasureRoomReset"

		mins 365, 270
		size 74, 76
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementAnkhCoinCollector"
	}

	widget label title
	{
		hidden
		eventToShowOn	"showcoins"
		eventToShowOn "showcoinstitle"
		eventToHideOn	"hidecoins"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAnkhCoinCollector"
		style "RankText"
	}

	widget EffectEmitter treasure_effects_coin
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementAnkhCoinCollectorAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_CoinCollector_01"
		
		StartOn
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showcoins"
		eventToHideOn	"hidecoins"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Over100Ankhcoinscollected"
		style "HelpTextGreen22"
	}

//================== Dead Eye ======================================

	widget Button AchievementDeadEye1Shadow
	{
		onaction hoverOn 	"event showdeadeyetitle"
		onaction hoverOff	"event hidedeadeye"
		
		mins 98, 32
		size 146, 322
		color 0,0,0,64
		eventToHideOn "AchievementDeadEyeAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}	

	widget Button AchievementDeadEye1
	{
		onaction hoverOn 	"event showdeadeye"
		onaction hoverOff	"event hidedeadeye"

		mins 98, 32
		size 146, 322
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementDeadEyeAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}
	
	widget Button AchievementDeadEyeHighlight1
	{
		hidden
		eventToHideOn "hidedeadeye"
		eventToShowOn "showdeadeye"
		eventToHideOn "UITreasureRoomReset"

		mins 98, 32
		size 146, 322
		color 255,170,10,180
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}

	widget Button AchievementDeadEye2Shadow
	{
		onaction hoverOn 	"event showdeadeyetitle"
		onaction hoverOff	"event hidedeadeye"
		
		mins 550, 32
		size 142, 322
		color 0,0,0,64
		eventToHideOn "AchievementDeadEyeAcquired"
		eventToShowOn "UITreasureRoomReset"
		TexCoordsForMins .75, 0
		TexCoordsFormaxs  1, 1
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}
	
	widget Button AchievementDeadEye2
	{
		onaction hoverOn 	"event showdeadeye"
		onaction hoverOff	"event hidedeadeye"

		mins 550, 32
		size 142, 322
		TexCoordsForMins .75, 0
		TexCoordsFormaxs  1, 1
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementDeadEyeAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}
	
	widget Button AchievementDeadEyeHighlight2
	{
		hidden
		eventToHideOn "hidedeadeye"
		eventToShowOn "showdeadeye"
		eventToHideOn "UITreasureRoomReset"

		mins 550, 32
		size 142, 322
		TexCoordsForMins .75, 0
		TexCoordsFormaxs  1, 1
		color 255,170,10,180
		texture "data/gfx/ui/TreasureRoom/AchievementDeadEye"
	}

	widget EffectEmitter treasure_effects_deadeye
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementDeadEyeAcquired"
		eventToHideOn "UITreasureRoomReset"

		mins 0, 0
	
		effectName "TreasureRoom_DeadEye_01"
		StartOn
		
	}

	widget label title
	{
		hidden
		eventToShowOn	"showdeadeye"
		eventToShowOn	"showdeadeyetitle"
		eventToHideOn	"hidedeadeye"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementPerfectAccuracy"
		style "RankText"
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showdeadeye"
		eventToHideOn	"hidedeadeye"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#100Accuracyononelevelachieved"
		style "HelpTextGreen22"
	}


	
//================= bonus levels ================================
	
	widget Button AchievementBonusLevels1Shadow
	{	
		onaction hoverOn 	"event showbonustitle"
		onaction hoverOff	"event hidebonus"
		
		mins 95, 280
		size 86, 128
		color 0,0,0,64
		eventToHideOn "AchievementBonusLevelsAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
		
	}
	
	widget Button AchievementBonusLevels1
	{	
		onaction hoverOn 	"event showbonus"
		onaction hoverOff	"event hidebonus"

		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementBonusLevelsAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
		mins 95, 280
		size 86, 128
	}

	widget Button AchievementBonusLevelsHighlight1
	{	
		hidden
		eventToHideOn "hidebonus"
		eventToShowOn "showbonus"
		eventToHideOn "UITreasureRoomReset"
		
		mins 95, 280
		size 86, 128
		color 255,170,10,230
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
	}
	
	widget Button AchievementBonusLevels2Shadow
	{	
		onaction hoverOn 	"event showbonustitle"
		onaction hoverOff	"event hidebonus"
		
		mins 612, 278
		size 86, 128
		color 0,0,0,64
		eventToHideOn "AchievementBonusLevelsAcquired"
		eventToShowOn "UITreasureRoomReset"
		TexCoordsForMins .84, 0
		TexCoordsForMaxs 1,1
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
	}
	
	widget Button AchievementBonusLevels2
	{	
		onaction hoverOn 	"event showbonus"
		onaction hoverOff	"event hidebonus"

		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementBonusLevelsAcquired"
		
		mins 612, 278
		size 86, 128
		TexCoordsForMins .84, 0
		TexCoordsForMaxs 1,1
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
	}
	
	widget Button AchievementBonusLevelsHighlight2
	{	
		hidden
		eventToHideOn "hidebonus"
		eventToShowOn "showbonus"
		eventToHideOn "UITreasureRoomReset"
		
		mins 612, 278
		size 86, 128
		TexCoordsForMins .84, 0
		TexCoordsForMaxs 1,1
		color 255,170,10,230
		texture "data/gfx/ui/TreasureRoom/AchievementBonusLevels"
	}


	widget EffectEmitter treasure_effects_bonus
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementBonusLevelsAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_Bonus_01"
		StartOn
		
	}

	widget label title
	{
		hidden
		eventToShowOn	"showbonus"
		eventToShowOn	"showbonustitle"
		eventToHideOn	"hidebonus"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAllBonusLevels"
		style "RankText"
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showbonus"
		eventToHideOn	"hidebonus"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Allbonuslevelsunlocked"
		style "HelpTextGreen22"
	}

//================== Upgraded all PowerUps =================================

	widget Button AchievementPowerupUpgraderShadow
	{
		onaction hoverOn 	"event showPowerUpstitle"
		onaction hoverOff	"event hidePowerUps"
		
		mins 342, 2
		size 180, 72
		color 0,0,0,64
		eventToHideOn "AchievementPowerupUpgraderAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementPowerupUpgrader"
	}	

	widget Button AchievementPowerupUpgrader
	{
		onaction hoverOn 	"event showPowerUps"
		onaction hoverOff	"event hidePowerUps"

		mins 342, 2
		size 180, 72
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementPowerupUpgraderAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementPowerupUpgrader"
	}
	
	widget Button AchievementPowerupUpgraderHighlight
	{
		hidden
		eventToHideOn "hidePowerUps"
		eventToShowOn "showPowerUps"
		eventToHideOn "UITreasureRoomReset"

		mins 342, 2
		size 180, 72
		color 220,150,30,200
		texture "data/gfx/ui/TreasureRoom/AchievementPowerupUpgrader"
	}


	widget EffectEmitter treasure_effects_powerup
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementPowerupUpgraderAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_Powerups_01"
		StartOn
		
	}

	widget label title
	{
		hidden
		eventToShowOn	"showPowerUps"
		eventToShowOn	"showPowerUpstitle"
		eventToHideOn	"hidePowerUps"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAllPowerupsUpgraded"
		style "RankText"
	}

	
	widget label description
	{
		hidden
		eventToShowOn	"showPowerUps"
		eventToHideOn	"hidePowerUps"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Upgradedallpowerupstomaximum"
		style "HelpTextGreen22"
	}



//====================== Beat Onslaught ========================

	widget Button AchievementGapShotExpert1
	{
		onaction hoverOn 	"event showBeatOnslaughttitle"
		onaction hoverOff	"event hideBeatOnslaught"
		
		mins 254, 420
		size 96, 84
		color 0,0,0,64
		eventToHideOn "AchievementAllOnslaughtLevelsAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}	

	widget Button AchievementGapShotExpert1
	{
		onaction hoverOn 	"event showBeatOnslaught"
		onaction hoverOff	"event hideBeatOnslaught"

		mins 254, 420
		size 96, 84
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementAllOnslaughtLevelsAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}
	
	widget Button AchievementGapShotExpertHighlight1
	{
		hidden
		eventToHideOn "hideBeatOnslaught"
		eventToShowOn "showBeatOnslaught"
		eventToHideOn "UITreasureRoomReset"

		mins 254, 420
		size 96, 84
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}

	widget Button AchievementGapShotExpert2Shadow
	{
		onaction hoverOn 	"event showBeatOnslaughttitle"
		onaction hoverOff	"event hideBeatOnslaught"
		
		mins 447, 420
		size 96, 84
		color 0,0,0,64
		eventToHideOn "AchievementAllOnslaughtLevelsAcquired"
		eventToShowOn "UITreasureRoomReset"
		TexCoordsForMins .67,0
		TexCoordsForMaxs 1,1
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}
	
	widget Button AchievementGapShotExpert2
	{
		onaction hoverOn 	"event showBeatOnslaught"
		onaction hoverOff	"event hideBeatOnslaught"

		mins 447, 420
		size 96, 84
		TexCoordsForMins .67,0
		TexCoordsForMaxs 1,1
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementAllOnslaughtLevelsAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}
	
	widget Button AchievementGapShotExpertHighlight2
	{
		hidden
		eventToHideOn "hideBeatOnslaught"
		eventToShowOn "showBeatOnslaught"
		eventToHideOn "UITreasureRoomReset"

		mins 447, 420
		size 96, 84
		TexCoordsForMins .67,0
		TexCoordsForMaxs 1,1
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementGapShotExpert"
	}

	widget EffectEmitter treasure_effects_onslaught
	{
		hidden
		
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementAllOnslaughtLevelsAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_OnslaughtComplete_01"
		StartOn
	}

	widget label title
	{
		hidden
		eventToShowOn	"showBeatOnslaught"
		eventToShowOn	"showBeatOnslaughttitle"
		eventToHideOn	"hideBeatOnslaught"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementAllOnslaughtLevelsBeaten"
		style "RankText"
	}
	
	widget label description
	{
		hidden
		eventToShowOn	"showBeatOnslaught"
		eventToHideOn	"hideBeatOnslaught"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#BeatallOnslaughtLevels"
		style "HelpTextGreen22"
	}

//====================== Ten Matches in a Row =======================


	widget Button AchievementMatchesInARowShadow
	{
		onaction hoverOn 	"event showTenMatchestitle"
		onaction hoverOff	"event hideTenMatches"
		
		mins 405, 362
		size 104, 72
		color 0,0,0,64
		eventToHideOn "AchievementMatchesInARowAcquired"
		eventToShowOn "UITreasureRoomReset"
		texture "data/gfx/ui/TreasureRoom/AchievementMatchesInARow"	
	}
	
	widget Button AchievementMatchesInARow
	{
		onaction hoverOn 	"event showTenMatches"
		onaction hoverOff	"event hideTenMatches"

		mins 405, 362
		size 104, 72
		eventToHideOn "UITreasureRoomReset"
		eventToShowOn "AchievementMatchesInARowAcquired"
		texture "data/gfx/ui/TreasureRoom/AchievementMatchesInARow"	
	}
	
	widget Button AchievementMatchesInARow
	{
		hidden
		eventToHideOn "hideTenMatches"
		eventToShowOn "showTenMatches"
		eventToHideOn "UITreasureRoomReset"

		mins 405, 362
		size 104, 72
		color 255,170,10,200
		texture "data/gfx/ui/TreasureRoom/AchievementMatchesInARow"	
	}

	widget EffectEmitter treasure_effects_tenmatches
	{
		hidden
		EventToHideOn "UITreasureRoomReset"
		EventToShowOn "AchievementMatchesInARowAcquired"

		mins 0, 0
	
		effectName "TreasureRoom_TenMatches_01"
		StartOn
		
	}

	widget label title
	{
		hidden
		eventToShowOn	"showTenMatches"
		eventToShowOn	"showTenMatchestitle"
		eventToHideOn	"hideTenMatches"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 100
		size 180, 64
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#AchievementConsecutiveMatches"
		style "RankText"
	}

	widget label description
	{
		hidden
		eventToShowOn	"showTenMatches"
		eventToHideOn	"hideTenMatches"
		eventToHideOn "UITreasureRoomReset"

		mins 314, 176
		size 180, 80
		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Overtenmatchesinarow"
		style "HelpTextGreen22"
	}

//==========================
	widget Button Stats
	{
		onaction enter "GotoScreenNoOuts Stats1 DoorTransition"
		onaction leftarrow "selectwidget ReturnToMainMenu"
		onaction uparrow "selectwidget ReturnToMainMenu"
		onaction downarrow "selectwidget ReturnToMainMenu"
		onaction rightarrow "selectwidget ReturnToMainMenu"
		onaction tabforward "selectwidget ReturnToMainMenu"
		onaction tabbackwards "selectwidget ReturnToMainMenu"
		

		mins 338, 516
		size 128, 26

		textAlignment "center"
		textVerticalAlignment "top"
		
		text "#Statistics"
		style "Luxor2Style03"
	}
	
	widget Button ReturnToMainMenu
	{
		onaction enter "GotoScreenNoOuts MainMenu DoorTransition"
		onaction leftarrow "selectwidget Stats"
		onaction uparrow "selectwidget Stats"
		onaction downarrow "selectwidget Stats"
		onaction rightarrow "selectwidget Stats"
		onaction tabforward "selectwidget Stats"
		onaction tabbackwards "selectwidget Stats"

		mins 338, 562
		size 128, 26

		textAlignment "center"
		textVerticalAlignment "top"
		
		text "#Back"
		style "Luxor2Style03"
	}
}