"resource/layout/overlay_achievementsdetails.layout"
{
	controls
	{
		AchievementsDetailPanel 
		{ 
			controlname="COverlay_Details_Acheivements" 
			style=detailsbox
		}
		TitleText { controlname="label" labeltext="#Overlay_Achievement_Title" style=detailsboxtitle }
		
		ViewAchievementsButton
		{
			controlname=button
			labeltext="#Overlay_Friends_ViewAchievements"
		}
		
		progressbackground { controlname="ImagePanel" style="progressbackground" }
		progressbarimage { controlname="ImagePanel" style="progressbarimage" }
		
		
		ProgressTextEarned { controlname=label style=highlight labeltext="#Overlay_Achievement_Progress" }

	}
	
	colors
	{

	}	
	
	styles
	{
		
		button
		{
		font-size=13
		font-family=basefont
		font-weight=400
		inset=2
		}
		
		highlight
		{
			textcolor=Text
		}
		progressbackground
		{
			bgcolor=none
			render_bg
			{
				0="fill( x0, y0, x0+1, y1, Label )"
				1="fill( x0+1, y1-1, x1-1, y1, Label )"
				2="fill( x0+1, y0, x1-1, y0+1, Label )"
				3="fill( x1-1, y0, x1, y1, Label )"
			}
		}

		progressbarimage
		{
			bgcolor="Label"
			render_bg = {}
		}
		
		
	}
	
	layout
	{
		region { name=box margin-top=10 margin-bottom=10 margin-left=10 margin-right=10 width=max height=max }
		
		region { region=box name=progresstext y=40 width=max }
		
		place { control="TitleText" region=box }

		place { region=progresstext controls=ProgressTextEarned }
		
		place { region=box control=progressbackground y=62 width=max height=18 }
		place { region=box control=progressbarimage y=66 height=10 margin-left=4 margin-right=4 }

		place { region=box control=*achievement y=90 x=0 width=148 height=84 }
		
		place { controls=ViewAchievementsButton region=box align=bottom margin-bottom=4 }
		
	}
}
