<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE widgetcontainer SYSTEM "http://www.sigames.com/dtds/widgetcontainer.dtd">

<container title="game date">

	<!-- formatting of date -->
	<flags id="frmt">
	 [%date#1-day]<return/>[%date#1-short]<return/>[%date#1-time]
	</flags>

	<!-- main box -->	
	<widget kind="gbox" id="!dbox">
		<!-- nb. if this box has an id of "dbox" it will get hidden when	     
		     the date isn't supposed to be visible
		     I've changed this to "!dbox" to stop this happening, because we always
		     want the picture to be visible
		-->  
		
		<!-- centre all content vertically inside this box -->
		<layout kind="cenp" algn="vertical" inse="0" laye="true"/>
		
		<!-- stick this box to it's parent on all sides -->
		<layout kind="stks" algn="all" inse="0"/>

		<!-- date picture -->
		<widget kind="pict" id="dpic" file="menubar/date_bg" asiz="all">
			<!-- horizontally centred inside box -->
			<layout kind="cenp" algn="horizontal" inse="0"/>
		</widget>

		<!-- actual date text -->
		<widget kind="text" algn="centre" id="date" spec="text, small">
			<!-- sticks to horizontal sides of parent -->
			<layout kind="stks" algn="horizontal" inse="0"/>
			
			<!-- auto-sizes vertically -->
			<flags id="asiz" value="vertical"/>
			
			<!-- override text colour -->
			<colour name="selection"/>
		</widget>
	</widget>

</container>