L10N/XP_Leveling/4_1_5/xml/stats_menu_DarkUIdDarN

Note/L10N/XP_Leveling/4_1_5/xml/stats_menu_DarkUIdDarN?
Top/L10N/XP_Leveling/4_1_5/xml/stats_menu_DarkUIdDarN

!-- DarN Version 1.3 -->

!-- stats_menu.xml -->

menu name="StatsMenu">

	<class> &StatsMenu; </class>
	<alpha>	0 </alpha>
	<menufade> 0.25 </menufade>
	<x> 0 </x>
	<y> 0 </y>
	<user0> 1 </user0>		<!-- current visible tab page -->
	<_settings_active> <copy src="sibling(hudmainmenu)" trait="_settingsmode" /> </_settings_active>
	<xleft> <ref src="stat_tabs_prev" trait="clicked" /> </xleft>
	<xright> <ref src="stat_tabs_next" trait="clicked" /> </xright>

!-- SETTINGS ===========================================================================-->

		<include src="darn\stats_config.xml" />
		<include src="darn\system_config.xml" />
				<_topitemheight>
					<copy src="stat_p1_lines" trait="height" />
					<div> 7 </div>
					<sub> 3 </sub>
					<ceil> 0 </ceil>
				</_topitemheight>
				<_bottomitemheight>
					<copy src="stat_p2_layout" trait="height" />
					<div> 8 </div>
				</_bottomitemheight>
				<text name="textsize_dummy">
					<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
					<visible> 1 </visible>
					<string>DarN</string>
				</text>
				<_bottomitem_y>
					<copy src="StatsMenu" trait="_bottomitemheight" />
					<sub src="textsize_dummy" trait="height" />
					<div> 2 </div>
				</_bottomitem_y>
				<_topitem_y>
					<copy src="StatsMenu" trait="_topitemheight" />
					<sub src="textsize_dummy" trait="height" />
					<div> 2 </div>
				</_topitem_y>
	<rect name="stat_focus_box">

include src="darn\focus_box.xml" />

		<id> 60 </id>
		<focusinset> 4 </focusinset>
		<visible> &false; </visible>
	</rect>
	<!-- MAIN LAYOUT ==============================================================-->
	<rect name="stat_layout">
		<x>
			<copy src="screen()" trait="cropx" />
			<add src="screen()" trait="cropx" />
			<sub> 60 </sub>
			<max src="screen()" trait="cropx" />
			<add> 7 </add>
		</x>
		<y>
			<copy src="screen()" trait="height" />
			<sub src="screen()" trait="cropy" />
			<sub src="screen()" trait="cropy" />
			<sub src="stat_background" trait="height" />
			<add> 3 </add>
		</y>
		<locus> &true; </locus>
		<image name="stat_background">
			<id> &generic; </id>
			<target> &true; </target>
			<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
			<depth> <!-- DarN hide settings 4 -->
				<copy> 4 </copy>
				<sub>
					<copy> 6 </copy>
					<onlyif>
						<copy src="StatsMenu" trait="user0" />
						<eq> 5 </eq>
					</onlyif>
				</sub>
			</depth>
			<width> 745 </width>
			<height> 792 </height>
			<x> 0 </x>
			<y> 0 </y>
			<locus> &true; </locus>
			<image name="stat_background_2">
				<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
				<depth> -26 </depth> <!-- DarN -15/22 -->
				<width> 54 </width>
				<height> 792 </height>
				<x> 700 </x>
				<y> 0 </y>
			</image>
			<rect name="stat_p0">
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 5 </eq>
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 2 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> 3 </y> <!-- DarN 3 -->
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> -1 </depth> <!-- DarN 1 -->
					<width> 745 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 0 </x>
					<y> -430 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -25 </depth> <!-- DarN -22 -->
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -430 </y>
				</image>
				<image name="stats_page_0_tabs">
					<filename> <copy src="darnui_stats_settings" trait="_s05t" /> </filename>
					<width> 791 </width>
					<height> 176 </height>
					<x> 23 </x>
					<y> 539 </y>
					<depth> -1 </depth>
				</image>
			</rect>
			
			<rect name="stat_p1">
				<target> &true; </target> <!-- DarN cover settings -->
				<id> 10 </id>
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 1 </eq>
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 8 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> -27 </y> <!-- DarN 3 -->
				<user1> Nine-Fingered Frodo </user1> <!-- player name -->
				<user2> Dark Elf </user2>		<!-- player race -->
				<user3> Thief </user3>			<!-- player birthsign -->
				<user4> Battlemage </user4>		<!-- player class -->
				<user5> 2 </user5>				<!-- player level -->
				<user6> 67 </user6>				<!-- player health current -->
				<user7> 101 </user7>			<!-- player health max -->
				<user8> 14 </user8>				<!-- player magica current -->
				<user9> 75 </user9>				<!-- player magica max -->
				<user10> 145 </user10>			<!-- player fatigue current -->
				<user11> 200 </user11>			<!-- player fatigue max -->
												<!-- For values below:
												 <0 = Affected negatively by magic
												 0 = Not affected by magic
												 >0 = Affected positively by magic -->
				<user12> 0 </user12>			<!-- player health modification -->
				<user13> 0 </user13>			<!-- player magicka modification -->
				<user14> 0 </user14>			<!-- player fatigue modification -->
				<!-- Oblivion XP changes the following items:
					- stat_p1
						- stat_p1_health_layout
						- stat_p1_magicka_layout
						- stat_p1_fatigue_layout
						- stat_p1_level_value
					- stat_p2
						- stat_p2_strength_layout
						- stat_p2_intelligence_layout
						- stat_p2_willpower_layout
						- stat_p2_agility_layout
						- stat_p2_speed_layout
						- stat_p2_endurance_layout
						- stat_p2_personality_layout
						- stat_p2_luck_layout
						- stat_p2_icons
						- stat_p2_icons2 (NEW)
						- stat_p2_lines (DELETED)
					- stat_p3
						- KCAS_label (CHANGED TO ObXP_label)
					- stat_skill_template
						- temp_fill_bar (DELETED)
						- skill_prog* (DELETED)
					- stat_pop_background
						- stat_pop_text
				-->
			
				<rect name="ObXP_layout">
					<id> 14 </id>
					<target> &true; </target>
					<depth> 5 </depth>
					<width> 618 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height> <!-- DarN 67 -->
					<locus> &true; </locus>
					<x> 65 </x>
					<y>
						<copy src="stat_p1_fatigue_layout" trait="y" />
						<add> 38 </add>
					</y>
					<_description1> 
						To gain Experience Points (XP), you can, amongst others, kill creatures, gather Nirnroots, explore new areas or complete Quests.												
					</_description1>
					<_description2> 
						To increase your Level, gather Experience Points (XP), which you can do in a number of ways. Once you have gained enough XP to increase your level, you can click on the Level entry to the left to go to the Level Up menu, where you will be able to pick the Attributes and Skills that you want to increase.
					</_description2>
					<_levelprogress> 50 </_levelprogress>
					<_currentXP> Current XP </_currentXP>
					<_neededXP> Needed XP </_neededXP>
					<_restedXP> Rested XP </_restedXP>
					<_totalXP> Total XP </_totalXP>
					<_hourlyXP> XP per Hour </_hourlyXP>
					<image name="ObXP_line">
						<filename> Textures\Menus\Oblivion XP\stat_player_linesdui.dds </filename>
						<depth> -1 </depth>
						<width> 654 </width>
						<height> 50 </height>
						<x> -23 </x>
						<y> 
							<copy src="sibling(ObXP_bar)" trait="y"/>
							<sub> 9 </sub> 
						</y>
						<zoom> -1 </zoom>
					</image>
					
					<image name="ObXP_icon">
						<depth>
							<copy> 0 </copy>
							<sub>
								<copy> 2 </copy>
								<onlyifnot>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
								</onlyifnot>
							</sub>
						</depth>
						<filename> Menus\Oblivion XP\OblivionXPicon_stats.dds </filename>
						<x> 24 </x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y>
						<width>
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height>
						<zoom> 50 </zoom> <!-- DarN add -->
					</image>
					<text name="ObXP_label">
						<depth> 3 </depth>
						<string> Experience </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x>
							<copy src="sibling(ObXP_icon)" trait="x" />
							<add src="sibling(ObXP_icon)" trait="width" />
							<add> 20 </add>
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<image name="ObXP_bar">
						<filename> Menus\Oblivion XP\stat_ribbon_empty.dds </filename>
						<locus> &true; </locus>
						<depth> 7 </depth>
						<width> 200 </width>
						<height> 35 </height>
						<x> 222 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> <sub> 3 </sub> </y> <!-- DarN 20 -->
						<image name="ObXP_bar_full">
							<filename> Menus\Oblivion XP\stat_ribbon_full_yellow.dds </filename>
							<locus> &true; </locus>
							<depth> 1 </depth>
							<width> 
								<copy> 155 </copy>
								<mul>
									<copy src="ObXP_layout" trait="_levelprogress" />									
									<div> 100 </div>
								</mul>
								<add> 20 </add>
							</width>
							<height> 35 </height>
							<x> 5 </x>
							<y> 0 </y>
							<image name="ObXP_bar_slider">
								<filename> Menus\Oblivion XP\stat_ribbon_slider.dds </filename>
								<depth> 2 </depth>
								<width> 40 </width>
								<height> 35 </height>
								<x>
									<copy src="parent()" trait="width" />
									<sub> 28 </sub>	
								</x>
								<y> 0 </y>
							</image>
						</image>
					</image>
					<text name="ObXP_neededXP">
						<depth> 3 </depth>
						<string> <copy src="parent()" trait="_neededXP"/> </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_health_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_health_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_health_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_health_current" trait="alpha" />
						</alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x> 600 </x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="ObXP_div">
						<depth> 3 </depth>
						<string> / </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_health_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_health_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_health_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_health_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="ObXP_neededXP" trait="x" />
							<sub src="ObXP_neededXP" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="ObXP_currentXP">
						<depth> 3 </depth>
						<string> <copy src="parent()" trait="_currentXP"/> </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_health_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_health_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_health_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_health_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="ObXP_neededXP" trait="x" />
							<sub src="ObXP_neededXP" trait="width" />
							<sub src="ObXP_div" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
				</rect>	
				<rect name="ObXP_level_marker">
					<id> &generic; </id>
					<visible> &false; </visible>
					<width> 1 </width>
					<height> 1 </height>
					<x> 0 </x>
					<y> 0 </y>
					<_value_scrolled_to>
						<add>
							<copy src="sibling(stat_p1_level_layout)" trait="clicked"/>
							<mul> 1 </mul>
							<onlyif>
								<copy src="ObXP_layout" trait="_levelprogress"/>
								<gt> 99 </gt>
							</onlyif>
						</add>	
						<sub>
							<copy> 1 </copy>
							<onlyif>
								<copy src="ObXP_layout" trait="_levelprogress"/>
								<lt> 100 </lt>
							</onlyif>
						</sub>							
						<max> 0 </max>
						<min> 1 </min>
					</_value_scrolled_to>
					<clicksound> 3 </clicksound>
				</rect>
				
				<rect name="extra_cover_p1">
					<target> 2 </target>
					<depth> 2 </depth>
					<width> <copy src="parent()" trait="width" /> </width>
					<height> 50 </height>
					<x> 0 </x>
					<y> -40 </y>
				</rect>
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> 1 </depth>
					<width> 745 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 0 </x>
					<y> -400 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -22 </depth>
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -400 </y>
				</image>
				<rect name="stat_p1_race_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<green> 0 </green>
					<width> 545 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height> <!-- DarN 70 -->
					<locus> &true; </locus>
					<x> 110 </x>
					<y>	0 </y> <!-- DarN -30 -->
					<user0> 0 </user0>			<!-- index value -->
					<xdefault> &true; </xdefault>
					<xdown> <ref src="stat_p1_birthsign_layout" trait="mouseover" /> </xdown>
					<text name="stat_p1_race">
						<depth> 3 </depth>
						<string> <copy src="stat_p1" trait="user2" /> </string>
						<justify> &center; </justify>
						<red> <copy src="darnui_stats_settings" trait="_s1rr" /> </red>
						<green> <copy src="darnui_stats_settings" trait="_s1rg" /> </green>
						<blue> <copy src="darnui_stats_settings" trait="_s1rb" /> </blue>
						<alpha> <copy src="darnui_stats_settings" trait="_s1ra" /> </alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x> 400 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
					<text name="stat_p1_race_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_race" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x> 75 </x> <!-- DarN 85 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 21 -->
					</text>
				</rect>
				<rect name="stat_p1_birthsign_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<blue> 0 </blue>
					<width> 545 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height>
					<locus> &true; </locus>
					<x> 110 </x>
					<y>
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<!-- <add> -26 </add> -->
					</y>
					<user0> 1 </user0>			<!-- index value -->
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_race_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p1_class_layout" trait="mouseover" /> </xdown>
					<text name="stat_p1_birthsign">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user3" />
						</string>
						<justify> &center; </justify>
						<red> <copy src="darnui_stats_settings" trait="_s1rr" /> </red>
						<green> <copy src="darnui_stats_settings" trait="_s1rg" /> </green>
						<blue> <copy src="darnui_stats_settings" trait="_s1rb" /> </blue>
						<alpha> <copy src="darnui_stats_settings" trait="_s1ra" /> </alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 260 </wrapwidth>
						<x> 406 </x>
						<!-- <y>
							<copy> 37 </copy>
							<sub>
								<copy src="me()" trait="height" />
								<div> 2 </div>
							</sub>
						</y> -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
					<text name="stat_p1_birthsign_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_birthsign" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x> 75 </x> <!-- DarN 85 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 21 -->
					</text>
				</rect>
				<rect name="stat_p1_class_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<user0> 2 </user0>			<!-- index value -->
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<red> 0 </red>
					<width> 545 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height>
					<locus> &true; </locus>
					<x> 110 </x>
					<y>
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<!-- <add> -26 </add> -->
					</y>
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_birthsign_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p1_level_layout" trait="mouseover" />	 </xdown>
					<text name="stat_p1_class">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user4" />
						</string>
						<justify> &center; </justify>
						<red> <copy src="darnui_stats_settings" trait="_s1rr" /> </red>
						<green> <copy src="darnui_stats_settings" trait="_s1rg" /> </green>
						<blue> <copy src="darnui_stats_settings" trait="_s1rb" /> </blue>
						<alpha> <copy src="darnui_stats_settings" trait="_s1ra" /> </alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x> 400 </x>
						<y>	<copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
					<text name="stat_p1_class_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_class" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x> 75 </x> <!-- DarN 85 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
				</rect>
				<rect name="stat_p1_level_layout">
					<id> 14 </id>
					<target> &true; </target>
					<clicksound> 3 </clicksound>
					<repeatvertical> &true; </repeatvertical>
					<user0> 3 </user0>			<!-- index value -->
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<blue> 0 </blue>
					<width> 545 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height>
					<locus> &true; </locus>
					<x> 110 </x>
					<y>
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<!-- <add> -26 </add> -->
					</y>
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_class_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p1_health_layout" trait="mouseover" /> </xdown>
					<text name="stat_p1_level_value">
						<depth> 3 </depth>
						<_string_1> Level </_string_1>
						<_string_2> Click To Level Up </_string_2>
						<_value> 
							<copy> 1 </copy>
							<add> 
								<copy> 1 </copy>
								<onlyif>
									<copy src="ObXP_layout" trait="_levelprogress"/>
									<gt> 99 </gt>
								</onlyif>
							</add>			
						</_value>
						<string>
							<copy src="me()" trait="_value"/>
							<copy src="me()" trait="_string_"/>
						</string>
						<justify> &center; </justify>
						<red> <copy src="darnui_stats_settings" trait="_s1rr" /> </red>
						<green> <copy src="darnui_stats_settings" trait="_s1rg" /> </green>
						<blue> <copy src="darnui_stats_settings" trait="_s1rb" /> </blue>
						<alpha> <copy src="darnui_stats_settings" trait="_s1ra" /> </alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x> 400 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
					<text name="stat_p1_level_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_level" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x> 75 </x> <!-- DarN 85 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y>
					</text>
				</rect>
				<image name="stat_p1_title_left">
					<filename> <copy src="darnui_stats_settings" trait="_sdbl" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s1ha" /> </alpha>
					<x>
						<copy src="stat_p1_name" trait="x" />
						<sub>
							<copy src="stat_p1_name" trait="width" />
							<div> 2 </div>
						</sub>
						<sub> 10 </sub>
						<sub src="me()" trait="width" />
					</x>
					<!-- <y> <copy src="darnui_stats_settings" trait="_s1hby" /> </y> -->
					<y>
						<copy src="stat_p1_name" trait="y" />
						<add>
							<copy src="me()" trait="height" />
							<div> 3.5 </div>
						</add>
					</y>
				</image>
				<image name="stat_p1_title_right">
					<filename> <copy src="darnui_stats_settings" trait="_sdbr" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s1ha" /> </alpha>
					<x>
						<copy src="stat_p1_name" trait="width" />
						<div> 2 </div>
						<add src="stat_p1_name" trait="x" />
						<add> 10 </add>
					</x>
					<!-- <y> <copy src="darnui_stats_settings" trait="_s1hby" /> </y> -->
					<y> <copy src="stat_p1_title_left" trait="y" /> </y>
				</image>
				<text name="stat_p1_name">
					<depth> 7 </depth>
					<string>
						<copy src="parent()" trait="user1" />
					</string>
					<justify> &center; </justify>
					<red> <copy src="darnui_stats_settings" trait="_s1hr" /> </red>
					<green> <copy src="darnui_stats_settings" trait="_s1hg" /> </green>
					<blue> <copy src="darnui_stats_settings" trait="_s1hb" /> </blue>
					<alpha> <copy src="darnui_stats_settings" trait="_s1ha" /> </alpha>
					<font> <copy src="darnui_stats_settings" trait="_s1hf" /> </font>
					<wrapwidth> 500 </wrapwidth>
					<x> 380 </x>
					<y> -40 </y> <!-- DarN 51 -->
				</text>
				<rect name="stat_p1_health_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<user0> 4 </user0>			<!-- index value -->
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<green> 0 </green>
					<width> 618 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height> <!-- DarN 67 -->
					<locus> &true; </locus>
					<x> 65 </x>
					<y>
						<!-- <copy src="me()" trait="user0" />
						<mul> 74 </mul>
						<add> 117 </add> -->
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<!-- <add> -20 </add> -->
						<add> 10 </add>
					</y>
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_level_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p1_magica_layout" trait="mouseover" /> </xdown>
					<image name="health_icon">
						<depth>
							<copy> 0 </copy>
							<sub>
								<copy> 2 </copy>
								<onlyifnot>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
								</onlyifnot>
							</sub>
						</depth>
						<filename> Menus\Class\Attributes\load_image_restoration_small.dds </filename>
						<x> 24 </x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y>
						<width>
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height>
						<zoom> 48 </zoom> <!-- DarN add -->
					</image>
					<text name="stat_p1_health_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_health" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<!-- <x> 24 </x> -->
						<x>
							<copy src="sibling(health_icon)" trait="x" />
							<add src="sibling(health_icon)" trait="width" />
							<add> 20 </add>
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<image name="stat_p1_health_bar">

include src="fill_bar.xml" />

						<x> 222 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> <sub> 3 </sub> </y> <!-- DarN 20 -->
						<user0>
							<copy src="stat_p1" trait="user6" />
							<max> 0 </max>
							<div>
								<copy src="stat_p1" trait="user7" />
								<max> 0 </max>
							</div>
						</user0>
						<user1> 1 </user1>
					</image>
					<text name="stat_p1_health_parenthesis_1">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>(</string>
						<visible> <copy src="sibling(stat_p1_health_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_health_mod)" trait="x" />
							<sub>
								<copy src="sibling(stat_p1_health_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</sub>
							<sub>
								<copy src="sibling(stat_p1_health_pos)" trait="width" />
								<onlyif src="sibling(stat_p1_health_pos)" trait="visible" />
							</sub>
						</x>
						<y> <copy src="sibling(stat_p1_health_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_health_pos">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &right; </justify>
						<string>+</string>
						<visible>
							<copy src="stat_p1" trait="user12" />
							<gt> 0 </gt>
						</visible>
						<x>
							<copy src="sibling(stat_p1_health_mod)" trait="x" />
							<sub src="me()" trait="width" />
						</x>
						<y> <copy src="sibling(stat_p1_health_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_health_mod">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user12" />
						</string>
						<visible>
							<copy src="stat_p1" trait="user12" />
							<neq> 0 </neq>
						</visible>
						<justify> &center; </justify>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
						<alpha> 200 </alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x>
							<copy src="stat_p1_health_max" trait="x" />
							<add> 38 </add>
						</x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_health_parenthesis_2">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>)</string>
						<visible> <copy src="sibling(stat_p1_health_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_health_mod)" trait="x" />
							<add>
								<copy src="sibling(stat_p1_health_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</add>
						</x>
						<y> <copy src="sibling(stat_p1_health_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_health_max">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user7" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_health_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_health_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_health_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_health_current" trait="alpha" />
						</alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x> 600 </x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_health_div">
						<depth> 3 </depth>
						<string> / </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_health_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_health_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_health_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_health_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_health_max" trait="x" />
							<sub src="stat_p1_health_max" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_health_current">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user6" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="StatsMenu" trait="_red_under" />
							<onlyif>
								<copy src="stat_p1" trait="user12" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_red_even" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_red_over" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</red>
						<green>
							<copy src="StatsMenu" trait="_green_under" />
							<onlyif>
								<copy src="stat_p1" trait="user12" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_green_even" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_green_over" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</green>
						<blue>
							<copy src="StatsMenu" trait="_blue_under" />
							<onlyif>
								<copy src="stat_p1" trait="user12" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_blue_even" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_blue_over" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</blue>
						<alpha>
							<copy src="StatsMenu" trait="_alpha_under" />
							<onlyif>
								<copy src="stat_p1" trait="user12" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_alpha_even" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
									<copy src="stat_p1" trait="user12" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_health_max" trait="x" />
							<sub src="stat_p1_health_max" trait="width" />
							<sub src="stat_p1_health_div" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
				</rect>
				<rect name="stat_p1_magica_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<user0> 5 </user0>			<!-- index value -->
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<blue> 0 </blue>
					<width> 618 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height> <!-- DarN 67 -->
					<locus> &true; </locus>
					<x> 65 </x>
					<y>
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<add> 8 </add>
					</y>
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_health_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p1_fatigue_layout" trait="mouseover" /> </xdown>
					<image name="magicka_icon">
						<depth>
							<copy> 0 </copy>
							<sub>
								<copy> 2 </copy>
								<onlyifnot>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
								</onlyifnot>
							</sub>
						</depth>
						<filename> Menus\Class\Attributes\load_image_mysticism_small.dds </filename>
						<x> 24 </x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y>
						<width>
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height>
						<zoom> 48 </zoom> <!-- DarN add -->
					</image>
					<text name="stat_p1_magica_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_magicka" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x>
							<copy src="sibling(magicka_icon)" trait="x" />
							<add src="sibling(magicka_icon)" trait="width" />
							<add> 20 </add>
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<image name="stat_p1_magica_bar">

include src="fill_bar.xml" />

						<x> 222 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> <sub> 3 </sub> </y> <!-- DarN 20 -->
						<user0>
							<copy src="stat_p1" trait="user8" />
							<max> 0 </max>
							<div>
								<copy src="stat_p1" trait="user9" />
								<max> 0 </max>
							</div>
						</user0>
						<user1> 3 </user1>
					</image>
					<text name="stat_p1_magica_parenthesis_1">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>(</string>
						<visible> <copy src="sibling(stat_p1_magica_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_magica_mod)" trait="x" />
							<sub>
								<copy src="sibling(stat_p1_magica_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</sub>
							<sub>
								<copy src="sibling(stat_p1_magica_pos)" trait="width" />
								<onlyif src="sibling(stat_p1_magica_pos)" trait="visible" />
							</sub>
						</x>
						<y> <copy src="sibling(stat_p1_magica_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_magica_pos">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &right; </justify>
						<string>+</string>
						<visible>
							<copy src="stat_p1" trait="user13" />
							<gt> 0 </gt>
						</visible>
						<x>
							<copy src="sibling(stat_p1_magica_mod)" trait="x" />
							<sub src="me()" trait="width" />
						</x>
						<y> <copy src="sibling(stat_p1_magica_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_magica_mod">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user13" />
						</string>
						<visible>
							<copy src="stat_p1" trait="user13" />
							<neq> 0 </neq>
						</visible>
						<justify> &center; </justify>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
						<alpha> 200 </alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x>
							<copy src="stat_p1_magica_max" trait="x" />
							<add> 38 </add>
						</x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_magica_parenthesis_2">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>)</string>
						<visible> <copy src="sibling(stat_p1_magica_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_magica_mod)" trait="x" />
							<add>
								<copy src="sibling(stat_p1_magica_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</add>
						</x>
						<y> <copy src="sibling(stat_p1_magica_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_magica_max">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user9" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_magica_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_magica_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_magica_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_magica_current" trait="alpha" />
						</alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x> 600 </x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_magica_div">
						<depth> 3 </depth>
						<string> / </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_magica_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_magica_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_magica_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_magica_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_magica_max" trait="x" />
							<sub src="stat_p1_magica_max" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_magica_current">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user8" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="StatsMenu" trait="_red_under" />
							<onlyif>
								<copy src="stat_p1" trait="user13" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_red_even" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_red_over" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</red>
						<green>
							<copy src="StatsMenu" trait="_green_under" />
							<onlyif>
								<copy src="stat_p1" trait="user13" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_green_even" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_green_over" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</green>
						<blue>
							<copy src="StatsMenu" trait="_blue_under" />
							<onlyif>
								<copy src="stat_p1" trait="user13" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_blue_even" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_blue_over" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</blue>
						<alpha>
							<copy src="StatsMenu" trait="_alpha_under" />
							<onlyif>
								<copy src="stat_p1" trait="user13" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_alpha_even" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
									<copy src="stat_p1" trait="user13" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_magica_max" trait="x" />
							<sub src="stat_p1_magica_max" trait="width" />
							<sub src="stat_p1_magica_div" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
				</rect>
				<rect name="stat_p1_fatigue_layout">
					<id> 14 </id>
					<target> &true; </target>
					<repeatvertical> &true; </repeatvertical>
					<user0> 6 </user0>			<!-- index value -->
					<depth> 5 </depth>
					<alpha> 0 </alpha>
					<red> 0 </red>
					<width> 618 </width>
					<height> <copy src="StatsMenu" trait="_topitemheight" /> </height> <!-- DarN 67 -->
					<locus> &true; </locus>
					<x> 65 </x>
					<y>
						<!-- <copy src="me()" trait="user0" />
						<mul> 74 </mul>
						<add> 107 </add> -->
						<copy src="me()" trait="user0" />
						<mul src="StatsMenu" trait="_topitemheight" />
						<add> 7 </add>
					</y>
					<xdefault> &false; </xdefault>
					<xup> <ref src="stat_p1_magica_layout" trait="mouseover" /> </xup>
					<xdown> <ref src="stat_p2_strength_layout" trait="mouseover" /> </xdown>
					<image name="fatigue_icon">
						<depth>
							<copy> 0 </copy>
							<sub>
								<copy> 2 </copy>
								<onlyifnot>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
								</onlyifnot>
							</sub>
						</depth>
						<filename> Menus\Class\Attributes\load_image_acrobatics_small.dds </filename>
						<x> 24 </x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y>
						<width>
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height>
						<zoom> 48 </zoom> <!-- DarN add -->
					</image>
					<text name="stat_p1_fatigue_label">
						<depth> 3 </depth>
						<string> <copy src="strings()" trait="_fatigue" /> </string>
						<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
						<wrapwidth> 300 </wrapwidth>
						<x>
							<copy src="sibling(fatigue_icon)" trait="x" />
							<add src="sibling(fatigue_icon)" trait="width" />
							<add> 20 </add>
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<image name="stat_p1_fatigue_bar">

include src="fill_bar.xml" />

						<x> 222 </x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> <sub> 3 </sub> </y> <!-- DarN 20 -->
						<user0>
							<copy src="stat_p1" trait="user10" />
							<max> 0 </max>
							<div>
								<copy src="stat_p1" trait="user11" />
								<max> 0 </max>
							</div>
						</user0>
						<user1> 2 </user1>
					</image>
					<text name="stat_p1_fatigue_parenthesis_1">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>(</string>
						<visible> <copy src="sibling(stat_p1_fatigue_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_fatigue_mod)" trait="x" />
							<sub>
								<copy src="sibling(stat_p1_fatigue_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</sub>
							<sub>
								<copy src="sibling(stat_p1_fatigue_pos)" trait="width" />
								<onlyif src="sibling(stat_p1_fatigue_pos)" trait="visible" />
							</sub>
						</x>
						<y> <copy src="sibling(stat_p1_fatigue_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_fatigue_pos">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &right; </justify>
						<string>+</string>
						<visible>
							<copy src="stat_p1" trait="user14" />
							<gt> 0 </gt>
						</visible>
						<x>
							<copy src="sibling(stat_p1_fatigue_mod)" trait="x" />
							<sub src="me()" trait="width" />
						</x>
						<y> <copy src="sibling(stat_p1_fatigue_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_fatigue_mod">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user14" />
						</string>
						<visible>
							<copy src="stat_p1" trait="user14" />
							<neq> 0 </neq>
						</visible>
						<justify> &center; </justify>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
						<alpha> 200 </alpha>
						<wrapwidth> 250 </wrapwidth>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<x>
							<copy src="stat_p1_fatigue_max" trait="x" />
							<add> 38 </add>
						</x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_fatigue_parenthesis_2">
						<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
						<justify> &center; </justify>
						<string>)</string>
						<visible> <copy src="sibling(stat_p1_fatigue_mod)" trait="visible" /> </visible>
						<x>
							<copy src="sibling(stat_p1_fatigue_mod)" trait="x" />
							<add>
								<copy src="sibling(stat_p1_fatigue_mod)" trait="width" />
								<add src="me()" trait="width" />
								<div> 2 </div>
							</add>
						</x>
						<y> <copy src="sibling(stat_p1_fatigue_mod)" trait="y" /> </y>
						<alpha> 200 </alpha>
						<red> 0 </red>
						<green> 0 </green>
						<blue> 0 </blue>
					</text>
					<text name="stat_p1_fatigue_max">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user11" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_fatigue_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_fatigue_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_fatigue_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_fatigue_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x> 600 </x> <!-- DarN 595 -->
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_fatigue_div">
						<depth> 3 </depth>
						<string> / </string>
						<justify> &right; </justify>
						<red>
							<copy src="stat_p1_fatigue_current" trait="red" />
						</red>
						<green>
							<copy src="stat_p1_fatigue_current" trait="green" />
						</green>
						<blue>
							<copy src="stat_p1_fatigue_current" trait="blue" />
						</blue>
						<alpha>
							<copy src="stat_p1_fatigue_current" trait="alpha" />
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_fatigue_max" trait="x" />
							<sub src="stat_p1_fatigue_max" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
					<text name="stat_p1_fatigue_current">
						<depth> 3 </depth>
						<string>
							<copy src="stat_p1" trait="user10" />
						</string>
						<justify> &right; </justify>
						<red>
							<copy src="StatsMenu" trait="_red_under" />
							<onlyif>
								<copy src="stat_p1" trait="user14" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_red_even" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_red_over" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</red>
						<green>
							<copy src="StatsMenu" trait="_green_under" />
							<onlyif>
								<copy src="stat_p1" trait="user14" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_green_even" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_green_over" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</green>
						<blue>
							<copy src="StatsMenu" trait="_blue_under" />
							<onlyif>
								<copy src="stat_p1" trait="user14" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_blue_even" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_blue_over" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</blue>
						<alpha>
							<copy src="StatsMenu" trait="_alpha_under" />
							<onlyif>
								<copy src="stat_p1" trait="user14" />
								<lt> 0 </lt>
							</onlyif>
							<add>
								<copy src="StatsMenu" trait="_alpha_even" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<eq> 0 </eq>
								</onlyif>
							</add>
							<add>
								<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
									<copy src="stat_p1" trait="user14" />
									<gt> 0 </gt>
								</onlyif>
							</add>
						</alpha>
						<font> <copy src="darnui_stats_settings" trait="_s1f" /> </font>
						<wrapwidth> 250 </wrapwidth>
						<x>
							<copy src="stat_p1_fatigue_max" trait="x" />
							<sub src="stat_p1_fatigue_max" trait="width" />
							<sub src="stat_p1_fatigue_div" trait="width" />
						</x>
						<y> <copy src="StatsMenu" trait="_topitem_y" /> </y> <!-- DarN 18 -->
					</text>
				</rect>
				<image name="stat_p1_lines">
					<filename> Textures\DarkUI\Menus\Stats\stat_player_linesdui.dds </filename>
					<depth> 2 </depth>
					<zoom> -1 </zoom>
					<width> 659 </width>
					<height> 286 </height> <!-- DarN 539 (220) -->
					<x> 45 </x>
					<y> -12 </y> <!-- DarN 85/-42 -->
				</image>
				<image name="stat_p1_icons">
					<filename> <copy src="darnui_stats_settings" trait="_spi" /> </filename>
					<depth> 7 </depth>
					<width> <!-- DarN 64 -->
						<copy> 64 </copy>
						<mul src="me()" trait="zoom" />
						<div> 100 </div>
					</width>
					<height> <!-- DarN 292 -->
						<copy> 292 </copy>
						<mul src="me()" trait="zoom" />
						<div> 100 </div>
					</height>
					<x> 121 </x>
					<y> <!-- DarN 107 -->
						<copy src="stat_p1_race_layout" trait="y" />
					</y>
					<zoom> 53 </zoom> <!-- DarN add -->
				</image>
			</rect>
			
			<!--***********************************************************************************************-->
			<rect name="stat_p2">
				<target> &true; </target> <!-- DarN cover settings -->
				<id> 20 </id>
				<clipwindow> 1 </clipwindow>
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 1 </eq>
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 8 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> 3 </y> <!-- DarN 3/-27 -->
				<user1> 50 </user1> <!-- attribute strength -->
				<user2> 40 </user2> <!-- attribute intelligence -->
				<user3> 30 </user3> <!-- attribute willpower -->
				<user4> 30 </user4> <!-- attribute agility -->
				<user5> 99 </user5> <!-- attribute speed -->
				<user6> 20 </user6> <!-- attribute endurance -->
				<user7> 45 </user7> <!-- attribute personality -->
				<user8> 60 </user8> <!-- attribute luck -->
				<user9> 50 </user9> <!-- base attribute strength -->
				<user10> 40 </user10> <!-- base attribute intelligence -->
				<user11> 30 </user11> <!-- base attribute willpower -->
				<user12> 30 </user12> <!-- base attribute agility -->
				<user13> 99 </user13> <!-- base attribute speed -->
				<user14> 20 </user14> <!-- base attribute endurance -->
				<user15> 45 </user15> <!-- base attribute personality -->
				<user16> 60 </user16> <!-- base attribute luck -->
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> 1 </depth>
					<width> 745 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 0 </x>
					<y> -430 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -22 </depth>
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -430 </y>
				</image>
				<image name="stats_page_2_tabs">
					<filename> <copy src="darnui_stats_settings" trait="_s01t" /> </filename>
					<width> 791 </width>
					<height> 176 </height>
					<x> 23 </x>
					<y> 539 </y>
					<depth> 0 </depth>
				</image>
				<rect name="stat_p2_layout">
					<alpha> 0 </alpha>
					<locus> &true; </locus>
					<y>
						<copy src="parent()" trait="y" />
						<add src="parent()" trait="height" />
						<sub src="me()" trait="height" />
						<sub src="stats_page_2_tabs" trait="height" />
						<add> 10 </add> <!-- ObXP -->
					</y> <!-- DarN -20 (0) -->
					<height> 290 </height> <!-- ObXP -->
					<image name="stat_p2_lines">
						<filename> <copy src="darnui_stats_settings" trait="_sal" /> </filename>
						<depth> 2 </depth>
						<zoom> -1 </zoom>
						<width> 625 </width>
						<height> <!-- DarN 562 (428) -->
							<copy src="parent()" trait="height" />
							<add> 44 </add>
						</height>
						<x> 50 </x>
						<y> 2 </y>
					</image>
					<image name="stat_p2_icons">
						<filename> <copy src="darnui_stats_settings" trait="_sai" /> </filename>
						<depth> 6 </depth>
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <!-- DarN 533 (430) -->
							<copy src="parent()" trait="height" />
							<add> 24 </add>
						</height>
						<x> 90 </x> <!-- DarN 81 -->
						<y> <!-- DarN 87 -->
							<copy src="sibling(stat_p2_strength_layout)" trait="y" />
							<sub> 3 </sub> <!-- ObXP -->
						</y>
						<zoom> 59 </zoom> <!-- ObXP -->
					</image>
					<rect name="stat_p2_strength_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 0 </user0>
						<depth> 5 </depth>
						<blue> 0 </blue>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &true; </xdefault>
						<xup> <ref src="stat_p1_fatigue_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_intelligence_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_strength">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user1" />
							</string>
							<justify> &right; </justify> <!-- DarN center -->
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user1" />
									<lt src="stat_p2" trait="user9" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<eq src="stat_p2" trait="user9" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<gt src="stat_p2" trait="user9" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user1" />
									<lt src="stat_p2" trait="user9" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<eq src="stat_p2" trait="user9" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<gt src="stat_p2" trait="user9" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user1" />
									<lt src="stat_p2" trait="user9" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<eq src="stat_p2" trait="user9" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<gt src="stat_p2" trait="user9" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user1" />
									<lt src="stat_p2" trait="user9" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user1" />
										<eq src="stat_p2" trait="user9" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user1" />
										<gt src="stat_p2" trait="user9" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_strength_modifier)" trait="visible" />
								</add>
							</x>
							<y>
								<copy src="StatsMenu" trait="_bottomitem_y" />
							</y>
						</text>
						<text name="stat_p2_st_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_strength_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_strength)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_strength)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_strength_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user1" />
								<sub src="stat_p2" trait="user9" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_strength_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_strength)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_strength_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user1" />
								<sub src="stat_p2" trait="user9" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user1" />
								<sub src="stat_p2" trait="user9" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_st_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_st_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_strength_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_strength_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_strength)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_st_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_strength_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_strength_modifier)" trait="x" />
								<add src="sibling(stat_p2_strength_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_strength)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_strength_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_strength" /> </string>
							<justify> &left; </justify>
						<red> <copy src="darnui_settings" trait="_lred" /> </red>
						<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
						<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
						<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
						<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_intelligence_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 1 </user0>
						<depth> 5 </depth>
						<red> 0 </red>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_strength_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_willpower_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_intelligence">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user2" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user2" />
									<lt src="stat_p2" trait="user10" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<eq src="stat_p2" trait="user10" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<gt src="stat_p2" trait="user10" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user2" />
									<lt src="stat_p2" trait="user10" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<eq src="stat_p2" trait="user10" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<gt src="stat_p2" trait="user10" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user2" />
									<lt src="stat_p2" trait="user10" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<eq src="stat_p2" trait="user10" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<gt src="stat_p2" trait="user10" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user2" />
									<lt src="stat_p2" trait="user10" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user2" />
										<eq src="stat_p2" trait="user10" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user2" />
										<gt src="stat_p2" trait="user10" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_intelligence_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_i_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_intelligence_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_intelligence)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_intelligence)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_intelligence_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user2" />
								<sub src="stat_p2" trait="user10" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_intelligence_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_intelligence)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_intelligence_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user2" />
								<sub src="stat_p2" trait="user10" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user2" />
								<sub src="stat_p2" trait="user10" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_i_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_i_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_intelligence_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_intelligence_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_intelligence)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_i_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_intelligence_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_intelligence_modifier)" trait="x" />
								<add src="sibling(stat_p2_intelligence_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_intelligence)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_intelligence_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_intelligence" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_willpower_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 2 </user0>
						<depth> 5 </depth>
						<green> 0 </green>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_intelligence_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_agility_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_willpower">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user3" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user3" />
									<lt src="stat_p2" trait="user11" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<eq src="stat_p2" trait="user11" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<gt src="stat_p2" trait="user11" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user3" />
									<lt src="stat_p2" trait="user11" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<eq src="stat_p2" trait="user11" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<gt src="stat_p2" trait="user11" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user3" />
									<lt src="stat_p2" trait="user11" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<eq src="stat_p2" trait="user11" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<gt src="stat_p2" trait="user11" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user3" />
									<lt src="stat_p2" trait="user11" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user3" />
										<eq src="stat_p2" trait="user11" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user3" />
										<gt src="stat_p2" trait="user11" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_willpower_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_w_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_willpower_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_willpower)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_willpower)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_willpower_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user3" />
								<sub src="stat_p2" trait="user11" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_willpower_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_willpower)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_willpower_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user3" />
								<sub src="stat_p2" trait="user11" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user3" />
								<sub src="stat_p2" trait="user11" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_w_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_w_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_willpower_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_willpower_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_willpower)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_w_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_willpower_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_willpower_modifier)" trait="x" />
								<add src="sibling(stat_p2_willpower_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_willpower)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_willpower_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_willpower" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_agility_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 3 </user0>
						<depth> 5 </depth>
						<blue> 0 </blue>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_willpower_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_speed_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_agility">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user4" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user4" />
									<lt src="stat_p2" trait="user12" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<eq src="stat_p2" trait="user12" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<gt src="stat_p2" trait="user12" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user4" />
									<lt src="stat_p2" trait="user12" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<eq src="stat_p2" trait="user12" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<gt src="stat_p2" trait="user12" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user4" />
									<lt src="stat_p2" trait="user12" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<eq src="stat_p2" trait="user12" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<gt src="stat_p2" trait="user12" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user4" />
									<lt src="stat_p2" trait="user12" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user4" />
										<eq src="stat_p2" trait="user12" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user4" />
										<gt src="stat_p2" trait="user12" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_agility_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_a_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_agility_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_agility)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_agility)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_agility_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user4" />
								<sub src="stat_p2" trait="user12" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_agility_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_agility)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_agility_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user4" />
								<sub src="stat_p2" trait="user12" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user4" />
								<sub src="stat_p2" trait="user12" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_a_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_a_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_agility_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_agility_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_agility)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_a_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_agility_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_agility_modifier)" trait="x" />
								<add src="sibling(stat_p2_agility_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_agility)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_agility_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_agility" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_speed_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 4 </user0>
						<depth> 5 </depth>
						<red> 0 </red>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_agility_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_endurance_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_speed">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user5" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user5" />
									<lt src="stat_p2" trait="user13" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<eq src="stat_p2" trait="user13" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<gt src="stat_p2" trait="user13" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user5" />
									<lt src="stat_p2" trait="user13" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<eq src="stat_p2" trait="user13" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<gt src="stat_p2" trait="user13" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user5" />
									<lt src="stat_p2" trait="user13" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<eq src="stat_p2" trait="user13" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<gt src="stat_p2" trait="user13" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user5" />
									<lt src="stat_p2" trait="user13" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user5" />
										<eq src="stat_p2" trait="user13" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user5" />
										<gt src="stat_p2" trait="user13" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_speed_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_s_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_speed_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_speed)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_speed)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_speed_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user5" />
								<sub src="stat_p2" trait="user13" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_speed_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_speed)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_speed_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user5" />
								<sub src="stat_p2" trait="user13" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user5" />
								<sub src="stat_p2" trait="user13" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_s_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_s_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_speed_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_speed_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_speed)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_s_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_speed_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_speed_modifier)" trait="x" />
								<add src="sibling(stat_p2_speed_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_speed)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_speed_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_speed" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_endurance_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 5 </user0>
						<depth> 5 </depth>
						<green> 0 </green>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_speed_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_personality_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_endurance">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user6" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user6" />
									<lt src="stat_p2" trait="user14" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<eq src="stat_p2" trait="user14" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<gt src="stat_p2" trait="user14" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user6" />
									<lt src="stat_p2" trait="user14" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<eq src="stat_p2" trait="user14" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<gt src="stat_p2" trait="user14" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user6" />
									<lt src="stat_p2" trait="user14" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<eq src="stat_p2" trait="user14" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<gt src="stat_p2" trait="user14" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user6" />
									<lt src="stat_p2" trait="user14" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user6" />
										<eq src="stat_p2" trait="user14" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user6" />
										<gt src="stat_p2" trait="user14" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_endurance_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_e_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ( </string>
							<visible> <copy src="sibling(stat_p2_endurance_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_endurance)" trait="x" />
								<add> 10 </add>
							</x>
							<y> <copy src="sibling(stat_p2_endurance)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_endurance_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user6" />
								<sub src="stat_p2" trait="user14" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_endurance_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_endurance)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_endurance_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user6" />
								<sub src="stat_p2" trait="user14" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user6" />
								<sub src="stat_p2" trait="user14" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_e_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_e_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_endurance_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_endurance_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_endurance)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_e_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string> ) </string>
							<visible> <copy src="sibling(stat_p2_endurance_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_endurance_modifier)" trait="x" />
								<add src="sibling(stat_p2_endurance_modifier)" trait="width" />
							</x>
							<y> <copy src="sibling(stat_p2_endurance)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_endurance_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_endurance" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_personality_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 6 </user0>
						<depth> 5 </depth>
						<blue> 0 </blue>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_endurance_layout" trait="mouseover" /> </xup>
						<xdown> <ref src="stat_p2_luck_layout" trait="mouseover" /> </xdown>
						<text name="stat_p2_personality">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user7" />
							</string>
							<justify> &right; </justify> <!-- DarN center -->
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user7" />
									<lt src="stat_p2" trait="user15" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<eq src="stat_p2" trait="user15" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<gt src="stat_p2" trait="user15" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user7" />
									<lt src="stat_p2" trait="user15" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<eq src="stat_p2" trait="user15" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<gt src="stat_p2" trait="user15" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user7" />
									<lt src="stat_p2" trait="user15" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<eq src="stat_p2" trait="user15" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<gt src="stat_p2" trait="user15" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user7" />
									<lt src="stat_p2" trait="user15" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user7" />
										<eq src="stat_p2" trait="user15" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user7" />
										<gt src="stat_p2" trait="user15" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_personality_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_p_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>(</string>
							<visible> <copy src="sibling(stat_p2_personality_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_personality)" trait="x" />
								<!-- <add src="sibling(stat_p2_personality)" trait="width" /> -->
								<add> 10 </add>
								<!-- <add>
									<copy src="sibling(stat_p2_personality_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_personality_pos)" trait="visible" />
								</add> -->
							</x>
							<y>
								<copy src="sibling(stat_p2_personality)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_personality_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user7" />
								<sub src="stat_p2" trait="user15" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_personality_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_personality)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_personality_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user7" />
								<sub src="stat_p2" trait="user15" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user7" />
								<sub src="stat_p2" trait="user15" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_p_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_p_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_personality_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_personality_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_personality)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_p_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>)</string>
							<visible> <copy src="sibling(stat_p2_personality_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_personality_modifier)" trait="x" />
								<add src="sibling(stat_p2_personality_modifier)" trait="width" />
								<!-- <add>
									<copy src="sibling(stat_p2_personality_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_personality_pos)" trait="visible" />
								</add> -->
							</x>
							<y>
								<copy src="sibling(stat_p2_personality)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_personality_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_personality" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
					<rect name="stat_p2_luck_layout">
						<id> 24 </id>
						<target> &true; </target>
						<repeatvertical> &true; </repeatvertical>
						<user0> 7 </user0>
						<depth> 5 </depth>
						<red> 0 </red>
						<width> 592 </width>
						<height> <copy src="StatsMenu" trait="_bottomitemheight" /> </height> <!-- DarN 64 -->
						<locus> &true; </locus>
						<x> 75 </x>
						<y>
							<copy src="me()" trait="user0" />
							<mul> <!-- DarN 67 -->
								<copy src="StatsMenu" trait="_bottomitemheight" />
								<add> 3 </add>
							</mul>
							<add src="sibling(stat_p2_lines)" trait="y" /> <!-- DarN 87 -->
							<add> 18 </add>
						</y>
						<xdefault> &false; </xdefault>
						<xup> <ref src="stat_p2_personality_layout" trait="mouseover" /> </xup>
						<text name="stat_p2_luck">
							<depth> 3 </depth>
							<string>
								<copy src="stat_p2" trait="user8" />
							</string>
							<justify> &right; </justify>
							<red>
								<copy src="StatsMenu" trait="_red_under" />
								<onlyif>
									<copy src="stat_p2" trait="user8" />
									<lt src="stat_p2" trait="user16" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_red_even" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<eq src="stat_p2" trait="user16" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_red_over" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<gt src="stat_p2" trait="user16" />
									</onlyif>
								</add>
							</red>
							<green>
								<copy src="StatsMenu" trait="_green_under" />
								<onlyif>
									<copy src="stat_p2" trait="user8" />
									<lt src="stat_p2" trait="user16" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_green_even" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<eq src="stat_p2" trait="user16" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_green_over" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<gt src="stat_p2" trait="user16" />
									</onlyif>
								</add>
							</green>
							<blue>
								<copy src="StatsMenu" trait="_blue_under" />
								<onlyif>
									<copy src="stat_p2" trait="user8" />
									<lt src="stat_p2" trait="user16" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_blue_even" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<eq src="stat_p2" trait="user16" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_blue_over" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<gt src="stat_p2" trait="user16" />
									</onlyif>
								</add>
							</blue>
							<alpha>
								<copy src="StatsMenu" trait="_alpha_under" />
								<onlyif>
									<copy src="stat_p2" trait="user8" />
									<lt src="stat_p2" trait="user16" />
								</onlyif>
								<add>
									<copy src="StatsMenu" trait="_alpha_even" />
									<onlyif>
										<copy src="stat_p2" trait="user8" />
										<eq src="stat_p2" trait="user16" />
									</onlyif>
								</add>
								<add>
									<copy src="StatsMenu" trait="_alpha_over" />
								<onlyif>
										<copy src="stat_p2" trait="user8" />
										<gt src="stat_p2" trait="user16" />
									</onlyif>
								</add>
							</alpha>
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<wrapwidth> 250 </wrapwidth>
							<x> <!-- DarN 467 -->
								<copy> 460 </copy>
								<add>
									<copy> 20 </copy>
									<onlyifnot src="sibling(stat_p2_luck_modifier)" trait="visible" />
								</add>
							</x>
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
						<text name="stat_p2_l_parenthesis_1">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>(</string>
							<visible> <copy src="sibling(stat_p2_luck_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_luck)" trait="x" />
								<!-- <add src="sibling(stat_p2_personality)" trait="width" /> -->
								<add> 10 </add>
								<!-- <add>
									<copy src="sibling(stat_p2_luck_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_luck_pos)" trait="visible" />
								</add> -->
							</x>
							<y>
								<copy src="sibling(stat_p2_luck)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_luck_pos">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>+</string>
							<visible>
								<copy src="stat_p2" trait="user8" />
								<sub src="stat_p2" trait="user16" />
								<gt> 0 </gt>
							</visible>
							<x>
								<copy src="sibling(stat_p2_luck_modifier)" trait="x" />
								<sub src="me()" trait="width" />
							</x>
							<y>
								<copy src="sibling(stat_p2_luck)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_luck_modifier">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>
								<copy src="stat_p2" trait="user8" />
								<sub src="stat_p2" trait="user16" />
							</string>
							<visible>
								<copy src="stat_p2" trait="user8" />
								<sub src="stat_p2" trait="user16" />
								<neq> 0 </neq>
							</visible>
							<x>
								<copy src="sibling(stat_p2_l_parenthesis_1)" trait="x" />
								<add src="sibling(stat_p2_l_parenthesis_1)" trait="width" />
								<add>
									<copy src="sibling(stat_p2_luck_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_luck_pos)" trait="visible" />
								</add>
							</x>
							<y> <copy src="sibling(stat_p2_luck)" trait="y" /> </y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_l_parenthesis_2">
							<font> <copy src="darnui_stats_settings" trait="_s2f" /> </font>
							<string>)</string>
							<visible> <copy src="sibling(stat_p2_luck_modifier)" trait="visible" /> </visible>
							<x>
								<copy src="sibling(stat_p2_luck_modifier)" trait="x" />
								<add src="sibling(stat_p2_luck_modifier)" trait="width" />
								<!-- <add>
									<copy src="sibling(stat_p2_luck_pos)" trait="width" />
									<onlyif src="sibling(stat_p2_luck_pos)" trait="visible" />
								</add> -->
							</x>
							<y>
								<copy src="sibling(stat_p2_luck)" trait="y" />
							</y>
							<alpha> 200 </alpha>
							<red> 0 </red>
							<green> 0 </green>
							<blue> 0 </blue>
						</text>
						<text name="stat_p2_luck_label">
							<depth> 3 </depth>
							<string> <copy src="strings()" trait="_luck" /> </string>
							<justify> &left; </justify>
							<red> <copy src="darnui_settings" trait="_lred" /> </red>
							<green> <copy src="darnui_settings" trait="_lgreen" /> </green>
							<blue> <copy src="darnui_settings" trait="_lblue" /> </blue>
							<alpha> <copy src="darnui_settings" trait="_lalpha" /> </alpha>
							<font> <copy src="darnui_settings" trait="_lfont" /> </font>
							<wrapwidth> 300 </wrapwidth>
							<x> 90 </x> <!-- DarN 100 -->
							<y> <copy src="StatsMenu" trait="_bottomitem_y" /> </y> <!-- DarN 16 -->
						</text>
					</rect>
				</rect>
			</rect>
			<!--***********************************************************************************************-->
			<rect name="stat_p3">
				<target> &true; </target> <!-- DarN cover settings -->
				<id> 30 </id>
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 2 </eq>
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 8 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> -27 </y> <!-- DarN 3 -->
				<user1> 10 </user1>		 <!-- level progress max -->
				<user2> 7 </user2>		 <!-- level progress current -->
				<user3> 0 </user3>		 <!-- minor skills label position -->
				<user4> &false; </user4> <!-- true if there is no major/minor distinction (chargen) -->
				<_inDungeon>
					<copy src="me()" trait="user3" />
					<lt> 1 </lt>
				</_inDungeon>
				<rect name="extra_cover_p3">
					<target> 2 </target>
					<depth> 2 </depth>
					<width> <copy src="parent()" trait="width" /> </width>
					<height> 50 </height>
					<x> 0 </x>
					<y> -40 </y>
				</rect>
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> 1 </depth>
					<width> 745 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 0 </x>
					<y> -400 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -22 </depth>
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -400 </y>
				</image>
				<image name="stats_page_3_tabs">
					<filename> <copy src="darnui_stats_settings" trait="_s02t" /> </filename>
					<width> 791 </width>
					<height> 176 </height>
					<x> 23 </x>
					<y> 569 </y>
					<depth> 0 </depth>
				</image>
				<image name="stat_p3_line_hor_1">
					<filename> <copy src="darnui_stats_settings" trait="_sbh1" /> </filename>
					<depth> 20 </depth>
					<width> 636 </width>
					<height> 3 </height>
					<x> 51 </x> <!-- DarN 46 -->
					<y>
						<copy> -10 </copy>
						<add>
							<copy> 16 </copy>
							<onlyif src="stat_p3" trait="_inDungeon" />
						</add>
					</y>
				</image>
				<image name="stat_p3_line_left">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height>
						<copy> 599 </copy>
						<sub>
							<copy> 27 </copy>
							<onlyif src="parent()" trait="_inDungeon" />
						</sub>
					</height>
					<x> 66 </x> <!-- DarN 57 -->
					<y>
						<copy src="sibling(stat_p3_line_hor_1)" trait="y" />
						<add> 1 </add>
					</y> <!-- DarN -7 -->
				</image>
				<image name="stat_p3_line_right">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height> <copy src="sibling(stat_p3_line_left)" trait="height" /> </height>
					<x> 674 </x> <!-- DarN 673 -->
					<y> <copy src="sibling(stat_p3_line_left)" trait="y" /> </y> <!-- DarN -7 -->
				</image>
				<image name="stat_p3_scroll_bar">

include src="vertical_scroll.xml" />

					<id> 32 </id>
					<x>
						<copy src="stat_p3_window" trait="x" />
						<add src="stat_p3_window" trait="width" />
						<add> 10 </add>
					</x>
					<y> <copy src="stat_p3_window" trait="y" /> </y>
					<height> <copy src="stat_p3_window" trait="height" /> </height>
					<depth> 5 </depth>
					<user1> 0 </user1> <!-- code set - minimum range value -->
					<user2> 0 </user2> <!-- maximum range valuec DarN 7 (0=off)-->
					<user3> 1 </user3> <!-- step distance -->
					<user4> 14 </user4> <!-- jump distance -->
					<user5> 0 </user5> <!-- code set - force value (must be 0 here) -->
					<user6> 33 </user6> <!-- marker's id - must change to enable dragging -->
					<!-- user7 --> <!-- current value -->
					<user8> 22 </user8> <!-- number of items visible --> <!-- DarN 15 -->
				</image>
				<image name="stat_p3_title_left">
					<filename> <copy src="darnui_stats_settings" trait="_sdbl" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p3_title_text" trait="x" />
						<sub>
							<copy src="stat_p3_title_text" trait="width" />
							<div> 2 </div>
						</sub>
						<sub> 55 </sub>
					</x>
					<y>
						<copy> -33 </copy>
						<add src="darnui_stats_settings" trait="_s3hboy" />
					</y>
				</image>
				<image name="stat_p3_title_right">
					<filename> <copy src="darnui_stats_settings" trait="_sdbr" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p3_title_text" trait="width" />
						<div> 2 </div>
						<add src="stat_p3_title_text" trait="x" />
						<add> 20 </add>
					</x>
					<y>
						<copy> -33 </copy>
						<add src="darnui_stats_settings" trait="_s3hboy" />
					</y>
				</image>
				<text name="stat_p3_title_text">
					<depth> 3 </depth>
					<justify> &center; </justify>
					<red> <copy src="darnui_stats_settings" trait="_s3hr" /> </red>
					<green> <copy src="darnui_stats_settings" trait="_s3hg" /> </green>
					<blue> <copy src="darnui_stats_settings" trait="_s3hb" /> </blue>
					<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
					<font> <copy src="darnui_stats_settings" trait="_s3hf" /> </font>
					<wrapwidth> 500 </wrapwidth>
					<clips> &true; </clips>
					<x> 370 </x>
					<y>
						<copy> -37 </copy>
						<add src="darnui_stats_settings" trait="_s3htoy" />
					</y>
					<_title_1> <copy src="strings()" trait="_majorskills" /> </_title_1>
					<_title_2> <copy src="strings()" trait="_minorskills" /> </_title_2>
					<_title_3> <copy src="strings()" trait="_skills" /> </_title_3>
					<string> <!-- this trait needs to be after the _title_# traits for its last line to work first time -->
						<copy src="stat_p3_scroll_bar" trait="user7" />
						<gt src="stat_p3" trait="user3" />
						<add>
							<copy> 3 </copy>
							<onlyif src="parent()" trait="_inDungeon" />
						</add>
						<min> 3 </min>
						<copy src="me()" trait="_title_" />
					</string>
				</text>
				<rect name="stat_p3_window">
					<focusinset> 4 </focusinset> <!-- DarN add -->
					<alpha> 0 </alpha>
					<depth> 3 </depth>
					<width> 600 </width>
					<height> 620 </height>
					<locus> &true; </locus>
					<clipwindow> &true; </clipwindow>
					<x> 75 </x> <!-- DarN 70 -->
					<!-- <y> 0 </y> --> <!-- DarN -30 -->
					<y>
						<copy> 0 </copy>
						<add>
							<copy> 16 </copy>
							<onlyif src="stat_p3" trait="_inDungeon" />
						</add>
					</y>
					<rect name="stat_p3_window_pane">
						<focusinset> 4 </focusinset> <!-- DarN add -->
						<id> 31 </id>
						<alpha> 0 </alpha>
						<depth> 2 </depth>
						<locus> &true; </locus>
						<y> 0 </y>
						<!-- 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> &true; </target>
						<xdefault> &true; </xdefault>
						<xlist> &xlist; </xlist>
						<xup> &first; </xup>
						<xdown> &last; </xdown>
						<xscroll> 0 </xscroll>
						<rect name="stat_p3_minor_label">
							<alpha> 0 </alpha>
							<depth> 3 </depth>
							<width> 600 </width>
							<height> 26 </height> <!-- DarN 40 -->
							<clips> &true; </clips>
							<locus> &true; </locus>
							<x> 0 </x>
							<y>
								<copy> 26 </copy> <!-- DarN 40 -->
								<mul src="stat_p3" trait="user3" />
								<add>
									<copy> -32 </copy> <!-- DarN 40/-26 -->
									<onlyif src="stat_p3" trait="_inDungeon" />
								</add>
								<add> -23 </add> <!-- DarN change? -25 -->
							</y>
							<image name="stat_p3_minor_label_left">
								<filename> <copy src="darnui_stats_settings" trait="_sdbl" /> </filename>
								<depth> 7 </depth>
								<width> 35 </width>
								<height> 17 </height>
								<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
								<clips> &true; </clips>
								<x>
									<copy src="stat_p3_minor_label_text" trait="x" />
									<sub>
										<copy src="stat_p3_minor_label_text" trait="width" />
										<div> 2 </div>
									</sub>
									<sub> 55 </sub>
								</x>
								<y>
									<copy> 35 </copy>
									<add src="darnui_stats_settings" trait="_s3hboy" />
								</y>
							</image>
							<image name="stat_p3_minor_label_right">
								<filename> <copy src="darnui_stats_settings" trait="_sdbr" /> </filename>
								<depth> 7 </depth>
								<width> 35 </width>
								<height> 17 </height>
								<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
								<clips> &true; </clips>
								<x>
									<copy src="stat_p3_minor_label_text" trait="width" />
									<div> 2 </div>
									<add src="stat_p3_minor_label_text" trait="x" />
									<add> 20 </add>
								</x>
								<y>
									<copy> 35 </copy>
									<add src="darnui_stats_settings" trait="_s3hboy" />
								</y>
							</image>
							<text name="stat_p3_minor_label_text">
								<depth> 3 </depth>
								<string> <copy src="strings()" trait="_minorskills" /> </string>
								<justify> &center; </justify>
								<red> <copy src="darnui_stats_settings" trait="_s3hr" /> </red>
								<green> <copy src="darnui_stats_settings" trait="_s3hg" /> </green>
								<blue> <copy src="darnui_stats_settings" trait="_s3hb" /> </blue>
								<alpha> <copy src="darnui_stats_settings" trait="_s3ha" /> </alpha>
								<font> <copy src="darnui_stats_settings" trait="_s3hf" /> </font>
								<wrapwidth> 500 </wrapwidth>
								<clips> &true; </clips>
								<x> 300 </x>
								<y>
									<copy> 30 </copy>
									<add src="darnui_stats_settings" trait="_s3htoy" />
								</y>
							</text>
						</rect>
						<!-- skill items are inserted here in the code from template at the bottom of this file -->
					</rect>
				</rect>
				<text name="ObXP_label">
					<depth> 3 </depth>
					<string> - Oblivion XP - </string>
					<justify> &center; </justify>
					<red> 217 </red>
					<green> 185 </green>
					<blue> 102 </blue>
					<alpha> 255 </alpha>
					<font> 4 </font>
					<x>
						<copy src="parent()" trait="width" />
						<div> 2 </div>
					</x>
					<y> 600 </y> <!-- DarN 580 -->
					<visible> &true; </visible>
				</text>
				<text name="stat_p3_progress_label">
					<depth> 3 </depth>
					<string> <copy src="strings()" trait="_levelprogress" /> </string>
					<justify> &left; </justify>
					<red> <copy src="darnui_stats_settings" trait="_s3lr" /> </red>
					<green> <copy src="darnui_stats_settings" trait="_s3lg" /> </green>
					<blue> <copy src="darnui_stats_settings" trait="_s3lb" /> </blue>
					<alpha> <copy src="darnui_stats_settings" trait="_s3la" /> </alpha>
					<!-- <font> <copy src="darnui_stats_settings" trait="_s3f" /> </font> -->
					<font> 3 </font>
					<wrapwidth> 500 </wrapwidth>
					<x> 100 </x>
					<y> 610 </y> <!-- DarN 580 -->
					<visible> &false; </visible>
				</text>
				<image name="stat_p3_progress">
					<locus> &true; </locus>
					<filename> <copy src="darnui_stats_settings" trait="_sslre" /> </filename>
					<depth> 7 </depth>
					<width> 218 </width>
					<height> 43 </height>
					<locus> &true; </locus>
					<x> 340 </x> <!-- DarN 390 -->
					<y> 605 </y> <!-- DarN 575 -->
					<visible> &false; </visible>
					<image name="stat_p3_progress_ribbon">
						<id> 55 </id>
						<filename> <copy src="darnui_stats_settings" trait="_sslrf" /> </filename>
						<depth> 8 </depth>
						<width>
							<copy src="stat_p3" trait="user2" />
							<div src="stat_p3" trait="user1" />
							<mul> 193 </mul>
						</width>
						<height> 20 </height>
						<locus> &true; </locus>
						<x> 26 </x>
						<y> 6 </y>
						<image name="stat_p3_progress_slider">
							<filename> <copy src="darnui_stats_settings" trait="_sslrs" /> </filename>
							<depth> 1 </depth>
							<width> 12 </width>
							<height> 23 </height>
							<x>
								<copy src="parent()" trait="width" />
								<sub> 10 </sub>
							</x>
							<y> -1 </y>

!-- ******************************************** -->

!-- Level Progress Percentage -->

!-- ******************************************** -->

							<text name="level_prog">
								<depth> 10 </depth>
								<string>
									<copy src="stat_p3_progress_ribbon" trait="width" />
									<div>193</div>
									<mul>100</mul>
								</string>
								<visible> <copy src="darnui_stats_settings" trait="_ppv" /> </visible>
								<!-- <red> <copy src="darnui_stats_settings" trait="_ppr" /> </red>
								<green> <copy src="darnui_stats_settings" trait="_ppg" /> </green>
								<blue> <copy src="darnui_stats_settings" trait="_ppb" /> </blue> -->
								<red> 217 </red>
								<green> 185 </green>
								<blue> 102 </blue>
								<alpha> <copy src="darnui_stats_settings" trait="_ppa" /> </alpha>
								<!-- <font> <copy src="darnui_stats_settings" trait="_ppf" /> </font> -->
								<font> 3 </font> <!-- DarN -->
								<wrapwidth> 480 </wrapwidth>
								<justify> &center; </justify>
								<x>
									<copy src="stat_p3_progress_ribbon" trait="x" />
									<add>50</add>
									<add src="darnui_stats_settings" trait="_ppnlox" />
								</x>
								<y>
									<copy> 0 </copy> <!-- DarN -5 -->
									<add src="darnui_stats_settings" trait="_ppnloy" />
								</y>
								<_addnum>
									<add>2</add>
									<onlyif>
										<copy src="skill_prog" trait="width" />
										<lt src="darnui_stats_settings" trait="_ppmws" />
									</onlyif>
									<add>2</add>
								</_addnum>
							</text>
							<text name="level_prog_ds">
								<depth> 9 </depth>
								<string> <copy src="level_prog" trait="string" /> </string>
								<visible> <copy src="darnui_stats_settings" trait="_ppsv" /> </visible>
								<red> <copy src="darnui_stats_settings" trait="_ppsr" /> </red>
								<green> <copy src="darnui_stats_settings" trait="_ppsg" /> </green>
								<blue> <copy src="darnui_stats_settings" trait="_ppsb" /> </blue>
								<alpha> <copy src="darnui_stats_settings" trait="_ppsa" /> </alpha>
								<font> <copy src="darnui_stats_settings" trait="_ppf" /> </font>
								<wrapwidth> 480 </wrapwidth>
								<justify> &center; </justify>
								<x>
									<copy src="level_prog" trait="x" />
									<add src="darnui_stats_settings" trait="_ppnlsox" />
								</x>
								<y>
									<copy src="level_prog" trait="y" />
									<add src="darnui_stats_settings" trait="_ppnlsoy" />
								</y>
							</text>
							<text name="level_pct">
								<depth> 10 </depth>
								<string> % </string>
								<visible> <copy src="darnui_stats_settings" trait="_ppv" /> </visible>
								<red> <copy src="level_prog" trait="red" /> </red>
								<green> <copy src="level_prog" trait="green" /> </green>
								<blue> <copy src="level_prog" trait="blue" /> </blue>
								<alpha> <copy src="level_prog" trait="alpha" /> </alpha>
								<font> <copy src="level_prog" trait="font" /> </font>
								<wrapwidth> 480 </wrapwidth>
								<justify> &center; </justify>
								<x>
									<copy src="level_prog" trait="x" />
									<add src="level_prog" trait="width" />
									<add src="level_prog" trait="_addnum" />
								</x>
								<y>
									<copy src="level_prog" trait="y" />
								</y>
							</text>
							<text name="level_pct_ds">
								<depth> 9 </depth>
								<string> % </string>
								<visible> <copy src="darnui_stats_settings" trait="_ppsv" /> </visible>
								<red> <copy src="darnui_stats_settings" trait="_ppsr" /> </red>
								<green> <copy src="darnui_stats_settings" trait="_ppsg" /> </green>
								<blue> <copy src="darnui_stats_settings" trait="_ppsb" /> </blue>
								<alpha> <copy src="darnui_stats_settings" trait="_ppsa" /> </alpha>
								<font> <copy src="darnui_stats_settings" trait="_ppf" /> </font>
								<wrapwidth> 480 </wrapwidth>
								<justify> &center; </justify>
								<x>
									<copy src="level_pct" trait="x" />
									<add src="darnui_stats_settings" trait="_ppnlsox" />
								</x>
								<y>
									<copy src="level_pct" trait="y" />
									<add src="darnui_stats_settings" trait="_ppnlsoy" />
								</y>
							</text>

!-- ******************************************** -->

!-- Level Progress Percentage -->

!-- ******************************************** -->

						</image>
					</image>
				</image>
			</rect>
			<!--***********************************************************************************************-->
			<rect name="stat_p4">
				<target> &true; </target> <!-- DarN cover settings -->
				<id> 40 </id>
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 3 </eq>
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 8 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> -27 </y> <!-- DarN 3 -->
				<rect name="extra_cover_p4">
					<target> 2 </target>
					<depth> 2 </depth>
					<width> <copy src="parent()" trait="width" /> </width>
					<height> 50 </height>
					<x> 0 </x>
					<y> -40 </y>
				</rect>
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> 1 </depth>
					<width> 745 </width>
					<height> 792 </height>
					<cropy>
						 <copy>-300</copy>
					</cropy>
					<x> 0 </x>
					<y>
					 	<copy>-400</copy>
					 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -14 </depth>
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -400 </y>
				</image>
				<image name="stats_page_4_tabs">
					<filename> <copy src="darnui_stats_settings" trait="_s03t" /> </filename>
					<width> 791 </width>
					<height> 176 </height>
					<x> 23 </x>
					<y> 569 </y>
					<depth> 0 </depth>
				</image>
				<image name="stat_p4_title_left">
					<filename> <copy src="darnui_stats_settings" trait="_sdbl" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s4ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p4_title_text" trait="x" />
						<sub>
							<copy src="stat_p4_title_text" trait="width" />
							<div> 2 </div>
						</sub>
						<sub> 55 </sub>
					</x>
					<y>
						<copy> -33 </copy>
						<add src="darnui_stats_settings" trait="_s4hboy" />
					</y>
				</image>
				<image name="stat_p4_title_right">
					<filename> <copy src="darnui_stats_settings" trait="_sdbr" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s4ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p4_title_text" trait="width" />
						<div> 2 </div>
						<add src="stat_p4_title_text" trait="x" />
						<add> 20 </add>
					</x>
					<y>
						<copy> -33 </copy>
						<add src="darnui_stats_settings" trait="_s4hboy" />
					</y>
				</image>
				<text name="stat_p4_title_text">
					<depth> 3 </depth>
					<justify> &center; </justify>
					<red> <copy src="darnui_stats_settings" trait="_s4hr" /> </red>
					<green> <copy src="darnui_stats_settings" trait="_s4hg" /> </green>
					<blue> <copy src="darnui_stats_settings" trait="_s4hb" /> </blue>
					<alpha> <copy src="darnui_stats_settings" trait="_s4ha" /> </alpha>
					<font> <copy src="darnui_stats_settings" trait="_s4hf" /> </font>
					<wrapwidth> 500 </wrapwidth>
					<clips> &true; </clips>
					<x> 370 </x>
					<y>
						<copy> -40 </copy>
						<add src="darnui_stats_settings" trait="_s4htoy" />
					</y>
					<string> <copy src="strings()" trait="_factions" /> </string>
				</text>
				<image name="stat_p4_line_hor_1">
					<filename> <copy src="darnui_stats_settings" trait="_sbh1" /> </filename>
					<depth> 9 </depth>
					<width> 636 </width>
					<height> 3 </height>
					<x> 46 </x>
					<y> -1 </y> <!-- DarN -7 -->
				</image>
				<image name="stat_p4_line_left">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height> 602 </height>
					<x> 66 </x> <!-- DarN 60 -->
					<y> 0 </y>
				</image>
				<image name="stat_p4_line_right">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height> 602 </height>
					<x> 669 </x> <!-- DarN 678 -->
					<y> 0 </y>
				</image>
				<image name="stat_p4_line_hor_2">
					<filename> <copy src="darnui_stats_settings" trait="_sbh1" /> </filename>
					<depth> 9 </depth>
					<width> 636 </width>
					<height> 3 </height>
					<x> 46 </x>
					<y> 602 </y> <!-- DarN -7 -->
				</image>
				<image name="stat_p4_scroll_bar">

include src="vertical_scroll.xml" />

					<id> 42 </id>
					<x>
						<copy src="stat_p4_window" trait="x" />
						<add src="stat_p4_window" trait="width" />
						<add> 10 </add>
					</x>
					<y>
						<copy src="stat_p4_window" trait="y" />
						<add> 32 </add>
					</y>
					<height>
						<copy src="stat_p4_window" trait="height" />
						<sub> 64 </sub>
					</height>
					<depth> 5 </depth>
					<user1> 0 </user1> <!-- code set - minimum range value -->
					<user2>
						<copy src="stat_p4_window_pane" trait="child_count" />
						<sub src="me()" trait="user8" />
					</user2> 		<!-- maximum range value -->
					<user3> 1 </user3> 	<!-- step distance -->
					<user4> 7 </user4> 	<!-- jump distance -->
					<user5> 0 </user5> 	<!-- starting value - must be 0 here, change by code -->
					<user6> 43 </user6> 	<!-- marker's id - must change to enable dragging -->
					<!-- user7 --> 		<!-- current value -->
					<user8> 8 </user8> 	<!-- number of items visible -->
					<user9>
						<copy src="stat_p4_down" trait="clicked" />
						<sub src="stat_p4_up" trait="clicked" />
					</user9>		<!-- Manual step value (multiplied by step distance and added to scroll value -->
					<user10> </user10>		<!-- reserved -->
				</image>
				<rect name="stat_p4_up">
					<target> &true; </target>
					<xdefault> &true; </xdefault>
					<repeatvertical> &true; </repeatvertical>
					<width> 5 </width>
					<height> 5 </height>
					<x> 60 </x>
					<y> 60 </y>
					<xup> <ref src="stat_p4_up" trait="clicked" /> </xup>
					<xdown> <ref src="stat_p4_down" trait="clicked" /> </xdown>
				</rect>
				<rect name="stat_p4_down">
					<target> &true; </target>
					<xdefault> &false; </xdefault>
					<repeatvertical> &true; </repeatvertical>
					<width> 5 </width>
					<height> 5 </height>
					<x> 60 </x>
					<y> 60 </y>
					<xup> <ref src="stat_p4_up" trait="clicked" /> </xup>
					<xdown> <ref src="stat_p4_down" trait="clicked" /> </xdown>
				</rect>
				<rect name="stat_p4_window">
					<alpha> 0 </alpha>
					<depth> 3 </depth>
					<width> 600 </width>
					<height> 600 </height> <!-- DarN 620 -->
					<locus> &true; </locus>
					<clipwindow> &true; </clipwindow>
					<x> 70 </x>
					<y> 0 </y>
					<rect name="stat_p4_window_pane">
						<id> 41 </id>
						<alpha> 0 </alpha>
						<locus> &true; </locus>
						<y>
							<copy> 0 </copy>
							<sub src="stat_p4_scroll_bar" trait="user7" />
							<mul> 75 </mul>
						</y>
						<!-- 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> &true; </xdefault>
						<xlist> &xlist; </xlist>
						<!--xup> &last; </xup>
						<xdown> &first; </xdown-->
						<xscroll> <ref src="stat_p4_scroll_bar" trait="user5" /> </xscroll>
						<!-- faction items are inserted here in the code from template at the bottom of this file -->
					</rect>
				</rect>
			</rect>
			<!--***********************************************************************************************-->
			<rect name="stat_p5">
				<target> &true; </target> <!-- DarN cover settings -->
				<id> 50 </id>
				<visible>
					<copy src="StatsMenu" trait="user0" />
					<eq> 4 </eq> <!-- DarN 5 -->
				</visible> <!-- current visible tab page = me -->
				<locus> &true; </locus>
				<depth> 8 </depth>
				<width> 730 </width>
				<height> 730 </height>
				<x> 0 </x>
				<y> -27 </y> <!-- DarN 3 -->
				<rect name="extra_cover_p5">
					<target> 2 </target>
					<depth> 2 </depth>
					<width> <copy src="parent()" trait="width" /> </width>
					<height> 50 </height>
					<x> 0 </x>
					<y> -40 </y>
				</rect>
				<image name="top_extend_left">
					<filename> <copy src="darnui_stats_settings" trait="_smb1" /> </filename>
					<depth> 1 </depth>
					<width> 745 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 0 </x>
					<y> -400 </y>
				</image>
				<image name="top_extend_right">
					<filename> <copy src="darnui_stats_settings" trait="_smb2" /> </filename>
					<depth> -22 </depth>
					<width> 54 </width>
					<height> 792 </height>
					<cropy> -300 </cropy>
					<x> 700 </x>
					<y> -400 </y>
				</image>
				<image name="stats_page_5_tabs">
					<filename> <copy src="darnui_stats_settings" trait="_s04t" /> </filename>
					<width> 791 </width>
					<height> 176 </height>
					<x> 23 </x>
					<y> 569 </y>
					<depth> 0 </depth>
				</image>
				<image name="stat_p5_line_left">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height> 638 </height>
					<x> 66 </x>
					<y> -13 </y>
				</image>
				<image name="stat_p5_line_right">
					<filename> <copy src="darnui_stats_settings" trait="_sbv2" /> </filename>
					<depth> 20 </depth>
					<width> 3 </width>
					<height> 638 </height>
					<x> 670 </x>
					<y> -13 </y>
				</image>
				<image name="stat_p5_line_bottom">
					<filename> <copy src="darnui_stats_settings" trait="_sbh2" /> </filename>
					<depth> 9 </depth>
					<width> 636 </width>
					<height> 3 </height>
					<x> 36 </x>
					<y> 623 </y>
				</image>
				<text name="stat_p5_title_text">
					<depth> 3 </depth>
					<justify> &center; </justify>
					<red> <copy src="darnui_stats_settings" trait="_s5hr" /> </red>
					<green> <copy src="darnui_stats_settings" trait="_s5hg" /> </green>
					<blue> <copy src="darnui_stats_settings" trait="_s5hb" /> </blue>
					<alpha> <copy src="darnui_stats_settings" trait="_s5ha" /> </alpha>
					<font> <copy src="darnui_stats_settings" trait="_s5hf" /> </font>
					<wrapwidth> 500 </wrapwidth>
					<clips> &true; </clips>
					<x> 370 </x>
					<y> -46 </y>
					<string> Accomplishments </string>
				</text>
				<image name="stat_p5_line_hor_1">
					<filename> <copy src="darnui_stats_settings" trait="_sbh1" /> </filename>
					<depth> 9 </depth>
					<width> 636 </width>
					<height> 3 </height>
					<x> 46 </x>
					<y> -13 </y>
				</image>
				<image name="stat_p5_title_left">
					<filename> <copy src="darnui_stats_settings" trait="_sdbl" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s5ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p5_title_text" trait="x" />
						<sub>
							<copy src="stat_p5_title_text" trait="width" />
							<div> 2 </div>
						</sub>
						<sub> 55 </sub>
					</x>
					<y> -41 </y>
				</image>
				<image name="stat_p5_title_right">
					<filename> <copy src="darnui_stats_settings" trait="_sdbr" /> </filename>
					<depth> 7 </depth>
					<width> 35 </width>
					<height> 17 </height>
					<alpha> <copy src="darnui_stats_settings" trait="_s5ha" /> </alpha>
					<clips> &true; </clips>
					<x>
						<copy src="stat_p5_title_text" trait="width" />
						<div> 2 </div>
						<add src="stat_p5_title_text" trait="x" />
						<add> 20 </add>
					</x>
					<y> -41 </y>
				</image>
				<image name="stat_p5_scroll_bar">

include src="vertical_scroll.xml" />

					<id> 52 </id>
					<x>
						<copy src="stat_p5_window" trait="x" />
						<add src="stat_p5_window" trait="width" />
						<add> 10 </add>
					</x>
					<y>
						<copy src="stat_p5_window" trait="y" />
						<add> 34 </add>
					</y>
					<height>
						<copy src="stat_p5_window" trait="height" />
						<sub> 64 </sub>
					</height>
					<depth> 5 </depth>
					<user1> 0 </user1>		<!-- Minimum value that can be scrolled to (should usually be zero) -->
					<user2>
						<copy src="stat_p5_window_pane" trait="child_count" />
						<!-- <sub src="me()" trait="user8" /> -->
						<sub> 20 </sub>
					</user2>				<!-- Maximum value that can be scrolled to (should be the number of
												items minus the number of items visible. i.e. if your list has
												8 items and you can see 2 at any one time, this should be 6 -->
					<user3> 1 </user3>		<!-- When the scroll arrow is clicked on, this is how many items it will advance -->
					<user4> 24 </user4>		<!-- When the scroll bar is clicked on, this is how many items it will advance DarN 30 -->
					<user5> 0 </user5>		<!-- The starting position of the scroll bar (set this only once) -->
					<user6> 53 </user6>		<!-- A unique ID so that the scroll marker can be dragged around -->
					<!-- user7 --> <!-- current value -->
					<user8> 35 </user8>		<!-- How many items are visible at once DarN (6)-->
					<user9>
						<copy src="stat_p5_down" trait="clicked" />
						<sub src="stat_p5_up" trait="clicked" />
					</user9>		<!-- Manual step value (multiplied by step distance and added to scroll value -->
					<user10> </user10>		<!-- reserved -->
				</image>
				<rect name="stat_p5_up">
					<target> &true; </target>
					<xdefault> &true; </xdefault>
					<repeatvertical> &true; </repeatvertical>
					<width> 5 </width>
					<height> 5 </height>
					<x> 60 </x>
					<y> 60 </y>
					<xup> <ref src="stat_p5_up" trait="clicked" /> </xup>
					<xdown> <ref src="stat_p5_down" trait="clicked" /> </xdown>
				</rect>
				<rect name="stat_p5_down">
					<target> &true; </target>
					<xdefault> &false; </xdefault>
					<repeatvertical> &true; </repeatvertical>
					<width> 5 </width>
					<height> 5 </height>
					<x> 60 </x>
					<y> 60 </y>
					<xup> <ref src="stat_p5_up" trait="clicked" /> </xup>
					<xdown> <ref src="stat_p5_down" trait="clicked" /> </xdown>
				</rect>
				<rect name="stat_p5_window">
					<alpha> 0 </alpha>
					<depth> 3 </depth>
					<width> 600 </width>
					<height> 630 </height>
					<locus> &true; </locus>
					<target> &true; </target>
					<clipwindow> &true; </clipwindow>
					<x> 70 </x>
					<y> -7 </y> <!-- DarN 3 -->
					<rect name="stat_p5_window_pane">
						<id> 51 </id>
						<alpha> 0 </alpha>
						<locus> &true; </locus>
						<y>
							<copy> 0 </copy>
							<sub src="stat_p5_scroll_bar" trait="user7" />
							<mul> 18 </mul>
						</y>
						<!-- misc items are inserted here in the code from template at the bottom of this file -->
					</rect>
				</rect>
			</rect>
	<!--************************************************************-->
			<rect name="stat_tabs">
				<locus> &true; </locus>
				<depth> 5 </depth>
				<width> 730 </width>
				<height> 128 </height>
				<x> 0 </x>
				<y> 594 </y>
				<rect name="stat_tabs_prev">
					<id> 8 </id>
					<target> &true; </target>
					<width> 1 </width>
					<height> 1 </height>
					<x> -1 </x>
					<y> -1 </y>
					<clicksound>5</clicksound>
				</rect>
				<rect name="stat_tabs_next">
					<id> 9 </id>
					<target> &true; </target>
					<width> 1 </width>
					<height> 1 </height>
					<x> -1 </x>
					<y> -1 </y>
					<clicksound>5</clicksound>
				</rect>
				<rect name="stat_tabs_p1">
					<id> 1 </id>
					<!-- <target> <copy src="stat_p1" trait="visible" /> <eq> &false; </eq> </target> -->
					<target> <copy src="stat_p1" trait="visible" /> <eq> &false; </eq> </target>
					<depth> 5 </depth>
					<width> 135 </width>
					<height> 85 </height>
					<x> 28 </x>
					<y> 37 </y>
					<locus> &true; </locus>
					<clicksound>5</clicksound>
					<user1>
						<!-- <copy src="stat_p1" trait="visible" /> -->
						<copy src="stat_p1" trait="visible" />
						<eq> &false; </eq>
					</user1>
					<image name="stat_tabs_p1_icon">
						<filename> <copy src="darnui_stats_settings" trait="_ati" /> </filename>
						<cropx>
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropx>
						<cropy>
							<copy> 128 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropy> <!-- DarN 128 -->
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height> <!-- DarN 64 -->
						<!-- <x> 45 </x> --> <!-- DarN 37 -->
						<x>
							<copy src="parent()" trait="width" />
							<sub src="me()" trait="width" />
							<div> 2 </div>
						</x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y> <!-- DarN 8 -->
						<zoom>
							<copy> 75 </copy>
							<add>
								<copy> 15 </copy>
								<onlyif>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
									<or> <not src="parent()" trait="target" /> </or>
								</onlyif>
							</add>
						</zoom> <!-- DarN add -->
					</image>
					<image name="stat_tabs_p1_selection_off">
						<filename> <copy src="darnui_stats_settings" trait="_gtso" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &true; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
					<image name="stat_tabs_p1_selection_on">
						<filename> <copy src="darnui_stats_settings" trait="_gtson" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &false; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
				</rect>
				<rect name="stat_tabs_p2">
					<id> 2 </id>
					<target> <copy src="stat_p3" trait="visible" /> <eq> &false; </eq> </target>
					<depth> 5 </depth>
					<width> 135 </width>
					<height> 85 </height>
					<x> 165 </x>
					<y> 37 </y>
					<locus> &true; </locus>
					<user1>
						<copy src="stat_p3" trait="visible" />
						<eq> &false; </eq>
					</user1>
					<clicksound>5</clicksound>
					<image name="stat_tabs_p2_icon">
						<filename> <copy src="darnui_stats_settings" trait="_ati" /> </filename>
						<cropx>
							<copy> 128 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropx> <!-- DarN 64 -->
						<cropy>
							<copy> 128 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropy> <!-- DarN 128 -->
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height> <!-- DarN 64 -->
						<!-- <x> 45 </x> --> <!-- DarN 37 -->
						<x>
							<copy src="parent()" trait="width" />
							<sub src="me()" trait="width" />
							<div> 2 </div>
						</x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y> <!-- DarN 8 -->
						<zoom>
							<copy> 75 </copy>
							<add>
								<copy> 15 </copy>
								<onlyif>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
									<or> <not src="parent()" trait="target" /> </or>
								</onlyif>
							</add>
						</zoom> <!-- DarN add -->
					</image>
					<image name="stat_tabs_p2_selection_off">
						<filename> <copy src="darnui_stats_settings" trait="_gtso" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &true; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
					<image name="stat_tabs_p2_selection_on">
						<filename> <copy src="darnui_stats_settings" trait="_gtson" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &false; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
				</rect>
				<rect name="stat_tabs_p3">
					<id> 3 </id>
					<target> <copy src="stat_p4" trait="visible" /> <eq> &false; </eq> </target>
					<depth> 5 </depth>
					<width> 135 </width>
					<height> 85 </height>
					<x> 304 </x>
					<y> 37 </y>
					<locus> &true; </locus>
					<user1>
						<copy src="stat_p4" trait="visible" />
						<eq> &false; </eq>
					</user1>
					<clicksound>5</clicksound>
					<image name="stat_tabs_p3_icon">
						<filename> <copy src="darnui_stats_settings" trait="_ati" /> </filename>
						<cropx>
							<copy> 192 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropx> <!-- DarN 128 -->
						<cropy>
							<copy> 128 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropy> <!-- DarN 128 -->
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height> <!-- DarN 64 -->
						<!-- <x> 45 </x> --> <!-- DarN 37 -->
						<x>
							<copy src="parent()" trait="width" />
							<sub src="me()" trait="width" />
							<div> 2 </div>
						</x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y> <!-- DarN 8 -->
						<zoom>
							<copy> 75 </copy>
							<add>
								<copy> 15 </copy>
								<onlyif>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
									<or> <not src="parent()" trait="target" /> </or>
								</onlyif>
							</add>
						</zoom> <!-- DarN add -->
					</image>
					<image name="stat_tabs_p3_selection_off">
						<filename> <copy src="darnui_stats_settings" trait="_gtso" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &true; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
					<image name="stat_tabs_p3_selection_on">
						<filename> <copy src="darnui_stats_settings" trait="_gtson" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &false; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
				</rect>
				<rect name="stat_tabs_p4">
					<id> 4 </id>
					<target> <copy src="stat_p5" trait="visible" /> <eq> &false; </eq> </target>
					<depth> 5 </depth>
					<width> 135 </width>
					<height> 85 </height>
					<x> 443 </x>
					<y> 37 </y>
					<locus> &true; </locus>
					<user1>
						<copy src="stat_p5" trait="visible" />
						<eq> &false; </eq>
					</user1>
					<clicksound>5</clicksound>
					<image name="stat_tabs_p4_icon">
						<filename> <copy src="darnui_stats_settings" trait="_ati" /> </filename>
						<cropx>
							<copy> 256 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropx> <!-- DarN 192 -->
						<cropy>
							<copy> 128 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropy> <!-- DarN 128 -->
						<depth> -1 </depth>
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
						<height> <copy src="me()" trait="width" /> </height> <!-- DarN 64 -->
						<!-- <x> 45 </x> --> <!-- DarN 37 -->
						<x>
							<copy src="parent()" trait="width" />
							<sub src="me()" trait="width" />
							<div> 2 </div>
						</x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y> <!-- DarN 8 -->
						<zoom>
							<copy> 75 </copy>
							<add>
								<copy> 15 </copy>
								<onlyif>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
									<or> <not src="parent()" trait="target" /> </or>
								</onlyif>
							</add>
						</zoom> <!-- DarN add -->
					</image>
					<image name="stat_tabs_p4_selection_off">
						<filename> <copy src="darnui_stats_settings" trait="_gtso" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &true; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
					<image name="stat_tabs_p4_selection_on">
						<filename> <copy src="darnui_stats_settings" trait="_gtson" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &false; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
				</rect>
				<rect name="stat_tabs_p5">
					<id> 5 </id>
					<target> <copy src="stat_p0" trait="visible" /> <eq> &false; </eq> </target>
					<depth> 5 </depth>
					<width> 135 </width>
					<height> 85 </height>
					<x> 578 </x>
					<y> 37 </y>
					<locus> &true; </locus>
					<user1>
						<copy src="stat_p0" trait="visible" />
						<eq> &false; </eq>
					</user1>
					<clicksound>5</clicksound>
					<image name="stat_tabs_p5_icon">
						<filename> <copy src="darnui_stats_settings" trait="_ati" /> </filename>
						<cropx>
							<copy> 0 </copy> <!-- DarN 256 -->
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropx> <!-- DarN 256 -->
						<cropy>
							<copy> 128 </copy> <!-- DarN 128 -->
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</cropy> <!-- DarN 128 -->
						<width> <!-- DarN 64 -->
							<copy> 64 </copy>
							<mul src="me()" trait="zoom" />
							<div> 100 </div>
						</width>
												<height> <copy src="me()" trait="width" /> </height> <!-- DarN 64 -->
						<!-- <x> 45 </x> --> <!-- DarN 37 -->
						<x>
							<copy src="parent()" trait="width" />
							<sub src="me()" trait="width" />
							<div> 2 </div>
						</x>
						<y>
							<copy src="parent()" trait="height" />
							<sub src="me()" trait="height" />
							<div> 2 </div>
						</y> <!-- DarN 8 -->
						<zoom>
							<copy> 75 </copy>
							<add>
								<copy> 15 </copy>
								<onlyif>
									<copy src="parent()" trait="mouseover" />
									<eq> 1 </eq>
									<or> <not src="parent()" trait="target" /> </or>
								</onlyif>
							</add>
						</zoom> <!-- DarN add -->
					</image>
					<image name="stat_tabs_p5_selection_off">
						<filename> <copy src="darnui_stats_settings" trait="_gtso" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &true; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
					<image name="stat_tabs_p5_selection_on">
						<filename> <copy src="darnui_stats_settings" trait="_gtson" /> </filename>
						<visible>
							<copy src="parent()" trait="user1" />
							<eq> &false; </eq>
						</visible>
						<width> 136 </width>
						<height> 36 </height>
						<x> 0 </x>
						<y> 24 </y>
					</image>
				</rect>
			</rect>
		</image>
	</rect>	<!-- stat layout -->
	<!--************************************************************-->
	
	<image name="stat_pop_background">
		<id> 61 </id>
		<target> &true; </target>
		<filename> <copy src="darnui_stats_settings" trait="_mpb" /> </filename>
		<depth> -9 </depth>
		<zoom> -1 </zoom>
		<alpha>
			<copy> 255 </copy>
			<onlyif>
				<copy src="me()" trait="user0" />
				<gt> 0 </gt>
			</onlyif>
		</alpha>
		<width> 419 </width>
		<height>
			<copy src="stat_pop_text" trait="y" />
			<add src="stat_pop_text" trait="height" />
			<add> 25 </add>
			<add>
				<copy>
					<copy src="stat_pop_ObXP_line1" traut="height" />
					<sub> 210 </sub>
				</copy>
				<onlyif>
					<copy src="ObXP_layout" trait="mouseover"/>
					<gt> 0 </gt>
				</onlyif>
			</add>
		</height>
		<x>
			<copy src="stat_layout" trait="x" />
			<add src="stat_background" trait="x" />
			<add src="stat_background" trait="width" />
			<sub>
				<copy src="me()" trait="width" />
				<mul>
					<copy> 1 </copy>
					<sub src="me()" trait="user0" />
				</mul>
			</sub>
			<sub> 20 </sub>
		</x>
		<y> 170 </y>
		<locus> &true; </locus>
		<user0> 0.0 </user0> <!-- animation step (0.0 - 1.0) -->
		<user1> 0.24 </user1> <!-- animation speed in seconds -->
		<user2>	icon </user2> <!-- icon -->
		<user3>	Cast spells to inflict magical, fire, frost, shock, and poison damage or to reduce resistances to magical attacks. </user3> <!-- text -->
		<user4> &true; </user4> <!-- visibility of image -->
		<user5> -1 </user5>		<!-- Hand to hand damage (icon and text are visible when > -1) -->
		<!-- POPUP BORDER -->
		<image name="magicpop_border_ULcorner">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbc" /> </filename>
			<x> 0 </x>
			<y> 0 </y>
			<width> 10 </width>
			<height> 10 </height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_top">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbeh" /> </filename>
			<x>
				<copy src="sibling(magicpop_border_ULcorner)" trait="x" />
				<add src="sibling(magicpop_border_ULcorner)" trait="width" />
			</x>
			<y>
				<copy src="sibling(magicpop_border_ULcorner)" trait="y" />
			</y>
			<width>
				<copy src="sibling(magicpop_border_URcorner)" trait="x" />
				<sub src="sibling(magicpop_border_ULcorner)" trait="x" />
				<sub src="sibling(magicpop_border_ULcorner)" trait="width" />
			</width>
			<height> 11 </height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_URcorner">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbc" /> </filename>
			<x>
				<copy src="parent()" trait="width" />
				<sub src="me()" trait="width" />
				<add> 2 </add>
			</x>
			<y> 0 </y>
			<width>
				<copy src="sibling(magicpop_border_ULcorner)" trait="width" />
			</width>
			<height>
				<copy src="sibling(magicpop_border_ULcorner)" trait="height" />
			</height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_left">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbev" /> </filename>
			<x>
				<copy src="sibling(magicpop_border_ULcorner)" trait="x" />
			</x>
			<y>
				<copy src="sibling(magicpop_border_ULcorner)" trait="y" />
				<add src="sibling(magicpop_border_ULcorner)" trait="height" />
			</y>
			<width>11</width>
			<height>
				<copy src="sibling(magicpop_border_LLcorner)" trait="y" />
				<sub src="sibling(magicpop_border_ULcorner)" trait="y" />
				<sub src="sibling(magicpop_border_ULcorner)" trait="height" />
			</height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_LLcorner">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbc" /> </filename>
			<x> 0 </x>
			<y>
				<copy src="parent()" trait="height" />
				<sub src="me()" trait="height" />
			</y>
			<width> 10 </width>
			<height> 10 </height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_bottom">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbeh" /> </filename>
			<x>
				<copy src="sibling(magicpop_border_LLcorner)" trait="x" />
				<add src="sibling(magicpop_border_LLcorner)" trait="width" />
			</x>
			<y>
				<copy src="sibling(magicpop_border_LLcorner)" trait="y" />
			</y>
			<width>
				<copy src="sibling(magicpop_border_LRcorner)" trait="x" />
				<sub src="sibling(magicpop_border_LLcorner)" trait="x" />
				<sub src="sibling(magicpop_border_LLcorner)" trait="width" />
			</width>
			<height> 11 </height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_LRcorner">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbc" /> </filename>
			<x>
				<copy src="parent()" trait="width" />
				<sub src="me()" trait="width" />
				<add> 2 </add>
			</x>
			<y>
				<copy src="sibling(magicpop_border_LLcorner)" trait="y" />
			</y>
			<width>
				<copy src="sibling(magicpop_border_ULcorner)" trait="width" />
			</width>
			<height>
				<copy src="sibling(magicpop_border_ULcorner)" trait="height" />
			</height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<image name="magicpop_border_right">
			<depth> 3 </depth>
			<filename> <copy src="darnui_stats_settings" trait="_mpbev" /> </filename>
			<x>
				<copy src="sibling(magicpop_border_URcorner)" trait="x" />
			</x>
			<y>
				<copy src="sibling(magicpop_border_URcorner)" trait="y" />
				<add src="sibling(magicpop_border_URcorner)" trait="height" />
			</y>
			<width> 11 </width>
			<height>
				<copy src="sibling(magicpop_border_LRcorner)" trait="y" />
				<sub src="sibling(magicpop_border_URcorner)" trait="y" />
				<sub src="sibling(magicpop_border_URcorner)" trait="height" />
			</height>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
		</image>
		<!-- POPUP CONTENTS -->
		<image name="stat_pop_image">
			<depth> 1 </depth>
			<visible>
				<copy src="parent()" trait="user4" />
			</visible>
			<filename> <copy src="parent()" trait="user2" /> </filename>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<width> 256 </width>
			<height> 256 </height>
			<zoom>
				<copy> -28 </copy>
				<onlyif src="me()" trait="_page_3_test" />
				<add> 100 </add>
			</zoom>
			<x>
				<copy> 41 </copy>
				<onlyif src="me()" trait="_page_3_test" />
				<add> 85 </add>
			</x>
			<y> 30 </y>
			<_page_3_test>
				<copy src="StatsMenu" trait="user0" />
				<eq> 2 </eq>
			</_page_3_test>
		</image>
		<text name="stat_pop_text">
			<depth> 7 </depth>
			<_string_1> <copy src="parent()" trait="user3" /> </_string_1>
			<_string_2> <copy src="ObXP_layout" trait="_description1" /> </_string_2>
			<_string_3> <copy src="ObXP_layout" trait="_description2" /> </_string_3>
			<_value> 
				<copy> 1 </copy>
				<add> 
					<copy> 1 </copy>
					<onlyif>
						<copy src="ObXP_layout" trait="mouseover"/>
						<gt> 0 </gt>
					</onlyif>
				</add>	
				<add> 
					<copy> 2 </copy>
					<onlyif>
						<copy src="stat_p1_level_layout" trait="mouseover"/>
						<gt> 0 </gt>
					</onlyif>
				</add>	
			</_value>
			<string>
				<copy src="me()" trait="_value"/>
				<copy src="me()" trait="_string_"/>
			</string>			
			<justify> &left; </justify>
			<font> 2 </font>	<!-- DarN 3 -->
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<red> 217 </red> <!-- DarN 117 -->
			<green> 185 </green> <!-- DarN 59 -->
			<blue> 102 </blue> <!-- DarN 33 -->
			<wrapwidth> 360 </wrapwidth>
			<x> 30 </x>
			<y>
				<copy src="sibling(stat_pop_image)" trait="height" />
				<add src="sibling(stat_pop_image)" trait="y" />
				<onlyif src="sibling(stat_pop_image)" trait="visible" />
				<add> 15 </add>
				<add>
					<copy> 14 </copy>
					<onlyifnot src="sibling(stat_pop_image)" trait="visible" />
				</add>
				<add>
					<copy>
						<copy src="stat_pop_ObXP_image" trait="height"/>
						<add> 20 </add>
					</copy>
					<onlyif>
						<copy src="stat_pop_ObXP_image" trait="visible"/>
					</onlyif>
				</add>
			</y>
		</text>
		<image name="stat_pop_hand2hand_icon">
			<visible>
				<copy src="StatsMenu" trait="user0" />
				<eq> 2 </eq> <!-- DarN 3 -->
				<and>
					<copy src="parent()" trait="user5" />
					<gte> 0 </gte>
				</and>
			</visible>
			<depth> 7 </depth>
			<filename> Icons\Weapons\HandToHand.dds </filename>
			<zoom> -1 </zoom>
			<alpha> <copy src="parent()" trait="alpha" /> </alpha>
			<height> 32 </height>
			<width> 32 </width>
			<x>
				<copy src="parent()" trait="width" />
				<sub> <!-- DarN 128 -->
					<copy src="me()" trait="width" />
					<add src="sibling(stat_pop_hand2hand_damage)" trait="width" />
					<add> 30 </add> <!-- DarN 10 buffer + 20 -->
				</sub>
			</x>
			<y>
				<copy src="sibling(stat_pop_text)" trait="y" />
				<add src="sibling(stat_pop_text)" trait="height" />
				<sub> 24 </sub>
			</y>
		</image>
		<text name="stat_pop_hand2hand_damage">
			<visible>
				<copy src="sibling(stat_pop_hand2hand_icon)" trait="visible" />
			</visible>
			<depth> 7 </depth>
			<string>
				<copy src="parent()" trait="user5" />
			</string>
			<font> 3 </font>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<red> 217 </red> <!-- DarN 117 -->
			<green> 185 </green> <!-- DarN 59 -->
			<blue> 102 </blue> <!-- DarN 33 -->
			<x>
				<copy src="sibling(stat_pop_hand2hand_icon)" trait="x" />
				<add src="sibling(stat_pop_hand2hand_icon)" trait="width" />
				<add> 10 </add>
			</x>
			<y>
				<copy src="sibling(stat_pop_hand2hand_icon)" trait="y" />
			</y>
		</text>
		
		<image name="stat_pop_ObXP_image">
			<depth> 1 </depth>
			<visible>
				<copy src="ObXP_layout" trait="mouseover"/>
				<gt> 0 </gt>
				<or>
					<copy src="stat_p1_level_layout" trait="mouseover"/>
					<gt> 0 </gt>
				</or>
			</visible>
			<_value> 
				<copy> 0 </copy>
				<add> 
					<copy> 1 </copy>
					<onlyif>
						<copy src="ObXP_layout" trait="mouseover"/>
						<gt> 0 </gt>
					</onlyif>
				</add>	
				<add> 
					<copy> 2 </copy>
					<onlyif>
						<copy src="stat_p1_level_layout" trait="mouseover"/>
						<gt> 0 </gt>
					</onlyif>
				</add>	
			</_value>
			<_filename_1> Menus\Oblivion XP\OblivionXPLogo_Red.dds </_filename_1>
			<_filename_2> Menus\Oblivion XP\OblivionXPLogo_Green.dds </_filename_2>
			<filename> 
				<copy src="me()" trait="_value"/>
				<copy src="me()" trait="_filename_"/>
			</filename>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<width> 122 </width>
			<height> 175 </height>
			<x> 145 </x>
			<y> 30 </y>
			<zoom> 50 </zoom>
		</image>
		<text name="stat_pop_ObXP_restedXP">
			<visible>
				<copy src="ObXP_layout" trait="mouseover"/>
				<gt> 0 </gt>
			</visible>
			<depth> 7 </depth>
			<string> <copy src="ObXP_layout" trait="_restedXP"/> </string>
			<font> 2 </font>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<red> 217 </red> <!-- DarN 117 -->
			<green> 185 </green> <!-- DarN 59 -->
			<blue> 102 </blue> <!-- DarN 33 -->
			<x>	<copy src="sibling(stat_pop_text)" trait="x" />	</x>
			<y>
				<copy src="sibling(stat_pop_text)" trait="y" />
				<add src="sibling(stat_pop_text)" trait="height" />
				<add> 10 </add>
			</y>
		</text>
		<text name="stat_pop_ObXP_totalXP">
			<visible>
				<copy src="ObXP_layout" trait="mouseover"/>
				<gt> 0 </gt>
			</visible>
			<depth> 7 </depth>
			<string> <copy src="ObXP_layout" trait="_totalXP"/> </string>
			<font> 2 </font>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<red> 217 </red> <!-- DarN 117 -->
			<green> 185 </green> <!-- DarN 59 -->
			<blue> 102 </blue> <!-- DarN 33 -->
			<x>	<copy src="sibling(stat_pop_text)" trait="x" />	</x>
			<y>
				<copy src="sibling(stat_pop_text)" trait="y" />
				<add src="sibling(stat_pop_text)" trait="height" />
				<add> 40 </add>
			</y>
		</text>
		<text name="stat_pop_ObXP_hourlyXP">
			<visible>
				<copy src="ObXP_layout" trait="mouseover"/>
				<gt> 0 </gt>
			</visible>
			<depth> 7 </depth>
			<string> <copy src="ObXP_layout" trait="_hourlyXP"/> </string>
			<font> 2 </font>
			<alpha>
				<copy src="parent()" trait="alpha" />
			</alpha>
			<red> 217 </red> <!-- DarN 117 -->
			<green> 185 </green> <!-- DarN 59 -->
			<blue> 102 </blue> <!-- DarN 33 -->
			<x>	<copy src="sibling(stat_pop_text)" trait="x" />	</x>
			<y>
				<copy src="sibling(stat_pop_text)" trait="y" />
				<add src="sibling(stat_pop_text)" trait="height" />
				<add> 70 </add>
			</y>
		</text>
	</image>
	<!--************************************************************-->
	<template name="stat_skill_template">
		<rect name="stat_item">
			<id> 34 </id>
			<focusinset> 6 </focusinset> <!-- DarN add -->
			<target> &true; </target>
			<repeatvertical> &true; </repeatvertical>
			<alpha> 0 </alpha>
			<depth> 3 </depth>
			<width> 600 </width>
			<height> 23 </height> <!-- DarN 36/26 -->
			<clips> &true; </clips>
			<locus> &true; </locus>
			<x> 0 </x>
			<y>
				<copy> 27 </copy> <!-- DarN 40 -->
				<mul src="me()" trait="listindex" />
			</y>
			<listclip>
				<copy src="me()" trait="listindex" />
				<gte>
					<copy src="stat_p3_scroll_bar" trait="user7" />
					<add src="stat_p3_scroll_bar" trait="user8" />
				</gte>
				<or>
					<copy src="me()" trait="listindex" />
					<lt src="stat_p3_scroll_bar" trait="user7" />
				</or>
			</listclip>
			<listindex> 0 </listindex> <!-- position in list (0 is first) -->
			<user1> 100 </user1> <!-- skill progression max -->
			<user2> 50 </user2> <!-- skill progression current -->
			<user3> 10 </user3> <!-- skill current -->
			<user4> Destruction </user4> <!-- skill name -->
			<user5> Skill icon </user5> <!-- skill icon -->
			<user6> 0 </user6> <!-- internal use only -->
			<user7> 0 </user7> <!-- skill base -->
			<!-- This element is a list item. If it gets an input command it doesn't know how to handle
			 it will defer the command to its parent. The xlist trait set to true triggers this. -->
			<xdefault> &false; </xdefault>
			<xlist> &xitem; </xlist>
			<!-- <xup> &prev; </xup>
			<xdown> &next; </xdown> -->
			<xscroll> 0 </xscroll>
			<image name="stat_item_icon">
				<filename>
					<copy src="parent()" trait="user5" />
				</filename>
				<depth> 1 </depth>
				<width> 20 </width> <!-- DarN 32 -->
				<height> 20 </height> <!-- DarN 32 -->
				<zoom> 30 </zoom> <!-- DarN 50 -->
				<clips> &true; </clips>
				<x> 3 </x>
				<y> 0 </y> <!-- DarN 3 -->
			</image>
			<text name="stat_item_label">
				<depth> 1 </depth>
				<string>
					<copy src="parent()" trait="user4" />
				</string>
				<justify> &left; </justify>
				<red> 217 </red>
				<green> 185 </green>
				<blue> 102 </blue>
				<alpha> 255 </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s3f" /> </font>
				<wrapwidth> 300 </wrapwidth>
				<clips> &true; </clips>
				<x> <!-- DarN 75 -->
					<copy src="sibling(stat_item_icon)" trait="x" />
					<add src="sibling(stat_item_icon)" trait="width" />
					<add> 10 </add>
				</x>
				<y>
					<copy> 14 </copy> <!-- DarN 38 -->
					<sub>
						<copy src="me()" trait="height" />
						<div> 2 </div>
					</sub>
					<!-- <add> -24 </add> --> <!-- DarN -22 -->
				</y>
			</text>
			<!--text name="stat_item_value_base">
				<depth> 1 </depth>
				<string>
					<copy src="parent()" trait="user7" />
				</string>
				<justify> &right; </justify> 
				<font> 2 </font> 
				<red>
					<copy src="StatsMenu" trait="_red_even" />
				</red>
				<green>
					<copy src="StatsMenu" trait="_green_even" />
				</green>
				<blue>
					<copy src="StatsMenu" trait="_blue_even" />
				</blue>
				<alpha>
					<copy src="StatsMenu" trait="_alpha_even" />
				</alpha>
				<wrapwidth> 250 </wrapwidth>
				<clips> &true; </clips>
				<x> 
					<copy src="sibling(temp_fill_bar)" trait="x" />
					<add src="sibling(temp_fill_bar)" trait="width" />
					<add> 35 </add>
				</x>
				<y> 5 </y>
			</text-->
			<text name="stat_item_value">
				<depth> 1 </depth>
				<string>
					<copy src="parent()" trait="user3" />
				</string>
				<justify> &right; </justify> <!-- DarN &center; -->
				<font> 2 </font> <!-- DarN 3 -->
				<red>
					<copy src="StatsMenu" trait="_red_under" />
					<onlyif>
						<copy src="stat_item" trait="user3" />
						<lt src="stat_item" trait="user7" />
					</onlyif>
					<add>
						<copy src="StatsMenu" trait="_red_even" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<eq src="stat_item" trait="user7" />
						</onlyif>
					</add>
					<add>
						<copy src="StatsMenu" trait="_red_over" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<gt src="stat_item" trait="user7" />
						</onlyif>
					</add>
				</red>
				<green>
					<copy src="StatsMenu" trait="_green_under" />
					<onlyif>
						<copy src="stat_item" trait="user3" />
						<lt src="stat_item" trait="user7" />
					</onlyif>
					<add>
						<copy src="StatsMenu" trait="_green_even" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<eq src="stat_item" trait="user7" />
						</onlyif>
					</add>
					<add>
						<copy src="StatsMenu" trait="_green_over" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<gt src="stat_item" trait="user7" />
						</onlyif>
					</add>
				</green>
				<blue>
					<copy src="StatsMenu" trait="_blue_under" />
					<onlyif>
						<copy src="stat_item" trait="user3" />
						<lt src="stat_item" trait="user7" />
					</onlyif>
					<add>
						<copy src="StatsMenu" trait="_blue_even" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<eq src="stat_item" trait="user7" />
						</onlyif>
					</add>
					<add>
						<copy src="StatsMenu" trait="_blue_over" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<gt src="stat_item" trait="user7" />
						</onlyif>
					</add>
				</blue>
				<alpha>
					<copy src="StatsMenu" trait="_alpha_under" />
					<onlyif>
						<copy src="stat_item" trait="user3" />
						<lt src="stat_item" trait="user7" />
					</onlyif>
					<add>
						<copy src="StatsMenu" trait="_alpha_even" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<eq src="stat_item" trait="user7" />
						</onlyif>
					</add>
					<add>
						<copy src="StatsMenu" trait="_alpha_over" />
						<onlyif>
							<copy src="stat_item" trait="user3" />
							<gt src="stat_item" trait="user7" />
						</onlyif>
					</add>
				</alpha>
				<wrapwidth> 250 </wrapwidth>
				<clips> &true; </clips>
				<x> <!-- DarN 555 -->
					<copy src="parent()" trait="width" />
					<sub> 10 </sub>
				</x>
				<y> 5 </y>
			</text>
			<text name="stat_item_modifier">
				<depth> 1 </depth>
				<visible>
					<copy src="parent()" trait="user3" />
					<sub src="parent()" trait="user7" />
					<neq> 0 </neq>
				</visible>
				<justify> &right; </justify>
				<font> 2 </font>
				<red> 217 </red>
				<green> 185 </green>
				<blue> 102 </blue>
				<alpha> 255 </alpha>
				<string>
					<copy src="parent()" trait="user3" />
					<sub src="parent()" trait="user7" />
				</string>
				<x>
					<copy src="sibling(stat_item_value)" trait="x" />
					<add src="sibling(stat_item_value)" trait="x" />
					<sub src="sibling(stat_item_value)" trait="width" />
					<sub> 50 </sub>					
					<add>
						<copy src="sibling(stat_item_pos)" trait="width" />
						<onlyif src="sibling(stat_item_pos)" trait="visible" />
					</add>
					<div> 2 </div>
				</x>
				<y> 5 </y>
			</text>
			<text name="stat_item_pos">
				<font> 2 </font>
				<string> + </string>
				<red> 217 </red>
				<green> 185 </green>
				<blue> 102 </blue>
				<alpha> 255 </alpha>
				<visible>
					<copy src="parent()" trait="user3" />
					<sub src="parent()" trait="user7" />
					<gt> 0 </gt>
				</visible>
				<x>
					<copy src="sibling(stat_item_modifier)" trait="x" />
					<sub src="sibling(stat_item_modifier)" trait="width" />
					<sub src="me()" trait="width" />
				</x>
				<y>
					<copy src="sibling(stat_item_modifier)" trait="y" />
				</y>
			</text>
			<image name="stat_item_line">
				<filename>
					<copy src="parent()" trait="listindex" />
					<mod> 3 </mod>
					<add> 1 </add>
					<copy src="me()" trait="_file_" />
				</filename>
				<depth> -2 </depth>
				<width> 636 </width>
				<height> 3 </height>
				<clips> &true; </clips>
				<x> -30 </x>
				<y> 21 </y> <!-- DarN 37 -->
				<_file_1> <copy src="darnui_stats_settings" trait="_sbh3" /> </_file_1>
				<_file_2> <copy src="darnui_stats_settings" trait="_sbh2" /> </_file_2>
				<_file_3> <copy src="darnui_stats_settings" trait="_sbh1" /> </_file_3>
			</image>
		</rect>
	</template>
	<!--***********************************************************************************************-->
	<template name="stat_faction_template">
		<rect name="stat_faction_item">
			<id> 44 </id>
			<target> &true; </target>
			<repeatvertical> &true; </repeatvertical>
			<alpha> 0 </alpha>
			<depth> 3 </depth>
			<width> 600 </width>
			<height> 75 </height>
			<clips> &true; </clips>
			<locus> &true; </locus>
			<x> 0 </x>
			<y>
				<copy src="me()" trait="height" />
				<mul src="me()" trait="listindex" />
			</y>
			<listindex> 1 </listindex> <!-- position in list -->
			<user1> Mages Guild </user1> <!-- faction name -->
			<user2> Apprentice </user2> <!-- faction rank -->
			<user3> Wizard </user3> <!-- faction next rank -->
			<user4> faction icon </user4> <!-- faction icon -->
			<user5> &false; </user5> <!-- is faction active/visible -->
			<!-- This element is a list item. If it gets an input command it doesn't know how to handle
			 it will defer the command to its parent. The xlist trait set to true triggers this. -->
			<xdefault> &false; </xdefault>
			<xlist> &xitem; </xlist>
			<xup> &prev; </xup>
			<xdown> &next; </xdown>
			<xscroll>
				<copy src="me()" trait="listindex" />
				<sub>
					<copy src="stat_p4_scroll_bar" trait="user8" />
					<div> 2 </div>
					<ceil> 0 </ceil>
				</sub>
				<add> 1 </add>
			</xscroll>
			<image name="stat_faction_item_icon">
				<filename> <copy src="parent()" trait="user4" /> </filename>
				<width> 64 </width>
				<height> 64 </height>
				<zoom>50</zoom>
				<x> 15 </x>
				<y> 5 </y>
				<depth> 1 </depth>
				<clips> &true; </clips>
			</image>
			<text name="stat_faction_item_name">
				<string> <copy src="parent()" trait="user1" /> </string>
				<red> <copy src="darnui_stats_settings" trait="_s4far" /> </red>
				<green> <copy src="darnui_stats_settings" trait="_s4fag" /> </green>
				<blue> <copy src="darnui_stats_settings" trait="_s4fab" /> </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s4faa" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s4faf" /> </font>
				<wrapwidth> 430 </wrapwidth>
				<clips> &true; </clips>
				<!-- <x>	<copy src="darnui_stats_settings" trait="_s4fax" /> </x> -->
				<x>
					<copy src="sibling(stat_faction_item_icon)" trait="x" />
					<add src="sibling(stat_faction_item_icon)" trait="width" />
					<add> 20 </add>
				</x>
				<y> <copy src="darnui_stats_settings" trait="_s4fay" /> </y>
				<depth> 1 </depth>
			</text>
			<text name="stat_faction_item_rank">
				<string> <copy src="parent()" trait="user2" /> </string>
				<red> 217 </red> <!--<copy src="darnui_stats_settings" trait="_s4frr" /> and so on... -->
				<green> 185 </green>
				<blue> 102 </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s4fra" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s4frf" /> </font>
				<wrapwidth> 600 </wrapwidth>
				<clips> &true; </clips>
				<x>	<copy src="sibling(stat_faction_item_name)" trait="x" /> </x>
				<y> <copy src="darnui_stats_settings" trait="_s4fry" /> </y>
				<depth> 1 </depth>
			</text>
			<text name="stat_faction_item_next_label">
				<depth> 1 </depth>
				<visible> <copy src="darnui_stats_settings" trait="_s4fnrv" /> </visible>
				<string> <copy src="darnui_stats_settings" trait="_s4fnrt" /> </string>
				<justify> &left; </justify>
				<red> <copy src="darnui_stats_settings" trait="_s4fnrr" /> </red>
				<green> <copy src="darnui_stats_settings" trait="_s4fnrg" /> </green>
				<blue> <copy src="darnui_stats_settings" trait="_s4fnrb" /> </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s4fnra" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s4fnrf" /> </font>
				<wrapwidth> 300 </wrapwidth>
				<clips> &true; </clips>
				<x> <copy src="darnui_stats_settings" trait="_s4fnrx" /> </x>
				<!--<y> <copy src="darnui_stats_settings" trait="_s4fnry" /> </y>-->
				<y> <copy src="stat_faction_item_rank" trait="y" /> </y>
			</text>
			<text name="stat_faction_item_next">
				<depth> 1 </depth>
				<visible> <copy src="darnui_stats_settings" trait="_s4fnrv" /> </visible>
				<string> <copy src="parent()" trait="user3" /> </string>
				<justify> &left; </justify>
				<red> <copy src="darnui_stats_settings" trait="_s4fnrr" /> </red>
				<green> <copy src="darnui_stats_settings" trait="_s4fnrg" /> </green>
				<blue> <copy src="darnui_stats_settings" trait="_s4fnrb" /> </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s4fnra" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s4fnrf" /> </font>
				<wrapwidth> 300 </wrapwidth>
				<clips> &true; </clips>
				<x>
					<copy src="stat_faction_item_next_label" trait="x" />
					<add src="stat_faction_item_next_label" trait="width" />
					<add src="darnui_stats_settings" trait="_s4fnrs" />
				</x>
				<!--<y> <copy src="darnui_stats_settings" trait="_s4fnry" /> </y>-->
				<y> <copy src="stat_faction_item_rank" trait="y" /> </y>
			</text>
			<image name="stat_faction_line">
				<filename>
					<copy src="parent()" trait="listindex" />
					<mod> 3 </mod>
					<add> 1 </add>
					<copy src="me()" trait="_file_" />
				</filename>
				<depth> -2 </depth>
				<width> 636 </width>
				<height> 3 </height>
				<clips> &true; </clips>
				<x> -30 </x>
				<y> 73 </y>
				<_file_1> <copy src="darnui_stats_settings" trait="_sbh3" /> </_file_1>
				<_file_2> <copy src="darnui_stats_settings" trait="_sbh2" /> </_file_2>
				<_file_3> <copy src="darnui_stats_settings" trait="_sbh1" /> </_file_3>
			</image>
		</rect>
	</template>
	<!--***********************************************************************************************-->
	<!-- DarN List on page 4 -->
	<template name="stat_misc_template">
		<rect name="stat_misc_item">
			<id> 44 </id>
			<target> &false; </target>
			<alpha> 0 </alpha>
			<depth> 3 </depth>
			<width> 600 </width>
			<height> 18 </height> <!-- DarN 32 -->
			<clips> &true; </clips>
			<locus> &true; </locus>
			<x> 0 </x>
			<y>
				<copy src="me()" trait="height" />
				<mul src="me()" trait="listindex" />
			</y>
			<listindex> 0 </listindex> <!-- position in list -->
			<user1> Label </user1> <!-- label text -->
			<user2> 0 </user2> <!-- value text -->
			<image name="alternate">
				<filename> Faders\black.dds </filename>
				<clips> &true; </clips>
				<x> 0 </x>
				<y> 1 </y>
				<width> <copy src="parent()" trait="width" /> </width>
				<height>
					<copy src="parent()" trait="height" />
					<sub> 2 </sub>
				</height>
				<alpha> 20 </alpha>
				<visible> <!-- DarN shade odd lines -->
					<copy src="parent()" trait="listindex" />
					<mod> 2 </mod>
					<eq> 1 </eq>
					<and src="darnui_stats_settings" trait="_s5_alternate" />
				</visible>
			</image>
			<text name="stat_misc_label">
				<depth> 1 </depth>
				<string> <copy src="parent()" trait="user1" /> </string>
				<red> <copy src="darnui_stats_settings" trait="_s5tr" /> </red>
				<green> <copy src="darnui_stats_settings" trait="_s5tg" /> </green>
				<blue> <copy src="darnui_stats_settings" trait="_s5tb" /> </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s5ta" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s5tf" /> </font>
				<wrapwidth> 450 </wrapwidth>
				<clips> &true; </clips>
				<x> 30 </x>
				<y> 4 </y> <!-- DarN 16 -->
			</text>
			<text name="stat_misc_value">
				<depth> 1 </depth>
				<string>
					<copy src="parent()" trait="user2" />
				</string>
				<justify> &right; </justify>
				<red> <copy src="darnui_stats_settings" trait="_s5tr" /> </red>
				<green> <copy src="darnui_stats_settings" trait="_s5tg" /> </green>
				<blue> <copy src="darnui_stats_settings" trait="_s5tb" /> </blue>
				<alpha> <copy src="darnui_stats_settings" trait="_s5ta" /> </alpha>
				<font> <copy src="darnui_stats_settings" trait="_s5tf" /> </font>
				<wrapwidth> 150 </wrapwidth>
				<clips> &true; </clips>
				<x> 570 </x> <!-- DarN 550 -->
				<y> 4 </y> <!-- DarN 16 -->
			</text>
		</rect>
	</template>

/menu>


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-06-10 (木) 20:33:58