<menu name="LevelUpMenu">
	<class> &LevelUpMenu; </class>
	<stackingtype> &no_click_past; </stackingtype>
	<alpha>	0 </alpha>
	<x> 0 </x>
	<y> 0 </y>
	<locus> &true; </locus>
	<menufade> 0.25 </menufade>
	
	<user1>&true;</user1>	<!-- Exit button enabled? --> 
	
	<user2></user2>		<!-- Descriptive text -->
	<user3></user3>		<!-- "You have ascended to level x" -->
	<user4></user4>		<!-- Filename for picture -->
	<user5></user5>		<!-- Attribute description -->
	
	<xbuttonb> <ref src="levelup_exit_button" trait="clicked"/> </xbuttonb>
	
	
	<rect name="levelup_background">
                <include src="generic_background.xml"/>
		<depth> 1 </depth>
		<user0> 1000 </user0>
		<user1> 
			<copy src="levelup_pane" trait="y" />
			<add src="levelup_pane" trait="height" />
			<add> 20 </add>
		</user1>
		<x>
			<copy src="screen()" trait="width" />
			<sub src="me()" trait="width" />
			<div> 2 </div>
		</x>
		<y>
			<copy src="screen()" trait="height" />
			<sub src="me()" trait="height" />
			<div> 2 </div>
		</y>
		<locus> &true; </locus>
		
		
		<!-- TITLE MESSAGE ===========================================================-->
		<text name="levelup_title">
			<string> <copy src="LevelUpMenu" trait="user3"/> </string>
			<justify> &left; </justify>
			<red> 33 </red>
			<green> 59 </green>
			<blue> 117 </blue>
			<alpha> 255 </alpha>
			<wrapwidth> 900 </wrapwidth>
			<x>
				<copy src="parent()" trait="width" />
				<sub src="me()" trait="width" />
				<div> 2 </div>
			</x>
			<y> 20 </y>
			<depth> 4 </depth>
		</text>
		
		
		<!-- DESCRIPTIVE MESSAGE ===========================================================-->
		<text name="levelup_description">
			<string> <copy src="LevelUpMenu" trait="user2"/> </string>
			<justify> &left; </justify>
			<red> 117 </red>
			<green> 59 </green>
			<blue> 33 </blue>
			<alpha> 255 </alpha>
			<wrapwidth>
				<copy src="parent()" trait="width" />
				<sub> 40 </sub>
			</wrapwidth>
			<x>
				<copy src="parent()" trait="width" />
				<sub src="me()" trait="width" />
				<div> 2 </div>
			</x>
			<y>
				<copy src="levelup_title" trait="y" />
				<add src="levelup_title" trait="height" />
				<add> 20 </add>
			</y>
			<depth> 4 </depth>
		</text>
		
		
		<text name="levelup_instructions">
			<string> </string>
			<justify> &left; </justify>
			<red> 33 </red>
			<green> 59 </green>
			<blue> 117 </blue>
			<alpha> 255 </alpha>
			<font> 3 </font>
			<wrapwidth> 900 </wrapwidth>
			<x>
				<copy src="levelup_pane" trait="width" />
				<sub src="me()" trait="width" />
				<div> 2 </div>
			</x>
			<y>
				<copy src="levelup_description" trait="y" />
				<add src="levelup_description" trait="height" />
				<add> 30 </add>
			</y>
			<depth> 4 </depth>
		</text>
		
		
		<!-- IMAGE/ATTRIBUTE TEXT =======================================================-->
		
		<!-- LIST OF ATTRIBUTES ======================================================================-->
		<rect name="levelup_pane">
			<id> 2 </id>
			<width> 540 </width>
			<height> 0 </height>
			<x> 30 </x>
			<y>
				<copy src="levelup_instructions" trait="y" />
				<add src="levelup_instructions" trait="height" />
				<add> 20 </add>
			</y>
			<depth> 5 </depth>
			<locus> &true; </locus>
						
			<!-- This is a list pane, and is not a focus itself, but when the child elements don't know how to handle
				an input command, they defer to their parent. The following directions are for those times. -->
			<target> &false; </target>
			<xdefault> &false; </xdefault>
			<xlist> &xlist; </xlist>
			<!--xleft> <ref src="levelup_exit_button" trait="mouseover" /> </xleft-->
			<xright> <ref src="levelup_exit_button" trait="mouseover" /> </xright>
			<!--xup> &last; </xup>
			<xdown> &first; </xdown-->
			
			<!-- template items go here, set by code -->
			
		</rect>
		
		
		<!-- DONE BUTTON ======================================================================-->
		<image name="levelup_exit_button">
                        <include src="button_long.xml"/>
			<id> 1 </id>
			<target> <copy src="LevelUpMenu" trait="user1"/> </target>
			<depth> 6 </depth>
			<x>
				<copy src="parent()" trait="width" />
				<sub src="me()" trait="width" />
				<!---				<sub> 30 </sub>  -->
				<div> 2 </div>
			</x>
			<y>
				<copy src="parent()" trait="height" />
				<sub src="me()" trait="height" />
				<sub> 20 </sub>
			</y>
			<user0> <copy src="strings()" trait="_ok"/> </user0>
			<user1> <copy src="LevelUpMenu" trait="user1"/> </user1>
			
			<user20>&xbuttonb;</user20>
			
			<xdefault> &xboxhint; </xdefault>
			<xleft> <ref src="levelup_pane" trait="mouseover"/> </xleft>
			<!--xright> <ref src="levelup_pane" trait="mouseover"/> </xright>
			<xup> <ref src="levelup_pane" trait="mouseover"/> </xup>
			<xdown> <ref src="levelup_pane" trait="mouseover"/> </xdown-->
		</image>
		
	</rect>
</menu>
