<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">

	<windowclass name="feuillepersonnage_equipement">
		<frame name="generique_feuillepersonnage_equipement" />
		<datasource name="feuillepersonnage" />
		<placement>
			<size>
				<width>449</width>
				<height>651</height>
			</size>
			<position>
				<x>415</x>
				<y>450</y>
			</position>
		</placement>
		
		<sheetdata>

<!-- Armes -->

			<windowlist name="ListeArmes">				
				<bounds rect="15,88,417,82" />
				<!-- <frame name="frameFondBleu" /> -->			
				<datasource>.ListeArmes</datasource>
				<class>ITEM_ListeArmes</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.ArmeNom.getValue());
						local name2 = string.lower(w2.ArmeNom.getValue());

						--[[Champ1 Vide]]
						if name1 == "" then							
							return true;
						--[[Champ2 Vide]]
						elseif name2 == "" then							
							return false;
						--[[Les 2 Champs sont pleins]]
						else
							return name1 > name2;
						end
					end

					function onListRearranged(listchanged)
						local containermapping = {};

						for k, w in ipairs(getWindows()) do
							local entry = {};
							entry.name = w.ArmeNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeArmes</to>
					<position>insidebottomright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeArmes</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>			


<!-- Armes à distance -->

			<windowlist name="ListeArmesadistance">				
				<bounds rect="15,230,417,82" />
				<!-- <frame name="frameFondBleu" /> -->			
				<datasource>.ListeArmesadistance</datasource>
				<class>ITEM_ListeArmesadistance</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.ArmesadistanceNom.getValue());
						local name2 = string.lower(w2.ArmesadistanceNom.getValue());

						--[[Champ1 Vide]]
						if name1 == "" then							
							return true;
						--[[Champ2 Vide]]
						elseif name2 == "" then							
							return false;
						--[[Les 2 Champs sont pleins]]
						else
							return name1 > name2;
						end
					end

					function onListRearranged(listchanged)
						local containermapping = {};

						for k, w in ipairs(getWindows()) do
							local entry = {};
							entry.name = w.ArmesadistanceNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeArmesadistance</to>
					<position>insidebottomright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeArmesadistance</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>	

<!-- Écoles -->

			<stringfield name="Ecoles" >
				<bounds rect="15,348,171,50" />
				<multiline spacing="12" />
				<font name="sheetlabelsmall2" />
			</stringfield>	

<!-- Richesses -->

			<numberfield name="Miches_valeur" source="Miches.base">				
				<bounds rect="217,370,45,26" />
				<font name="sheetnumber" />			
			</numberfield>
			
			<numberfield name="Ecus_valeur" source="Ecus.base">				
				<bounds rect="296,370,45,26" />
				<font name="sheetnumber" />			
			</numberfield>

			<numberfield name="Couronnes_valeur" source="Couronnes.base">				
				<bounds rect="379,370,45,26" />
				<font name="sheetnumber" />				
			</numberfield>

<!-- Materiels -->

			<windowlist name="ListeMateriels">				
				<bounds rect="15,440,417,196" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeMateriels</datasource>
				<class>ITEM_ListeMateriels</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<columns>
					<filldown />
					<width>104</width>
				</columns>
				
				<script>
					function onSortCompare(w1, w2)
						local name1 = string.lower(w1.Materiels1.getValue());
						local name2 = string.lower(w2.Materiels1.getValue());

						--[[Champ1 Vide]]
						if name1 == "" then							
							return true;
						--[[Champ2 Vide]]
						elseif name2 == "" then							
							return false;
						--[[Les 2 Champs sont pleins]]
						else
							return name1 > name2;
						end
					end

					function onListRearranged(listchanged)
						local containermapping = {};

						for k, w in ipairs(getWindows()) do
							local entry = {};
							entry.name = w.Materiels1.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeMateriels</to>
					<position>belowright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeMateriels</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>
			
		</sheetdata>
	</windowclass>
	
<!--===========================================================================================-->
	<windowclass name="ITEM_ListeArmes">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="ArmeNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>0</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-325</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Famille -->
			<textlistitemvalue name="ArmeFamille">
				<anchored>
					<left>
						<parent>ArmeNom</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-267</offset>
					</right>
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Allonge -->
			<textlistitemvalue name="ArmeAllonge">
				<anchored>
					<left>
						<parent>ArmeFamille</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-208</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Dégâts -->
			<textlistitemvalue name="ArmeDegats">
				<anchored>
					<left>
						<parent>ArmeAllonge</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-158</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Tech4 -->
			<textlistitemvalue name="ArmeTech4">
				<anchored>
					<left>
						<parent>ArmeDegats</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-77</offset>
					</right>
				</anchored>				
			</textlistitemvalue>

			<!----------------------------------- Tech5 -->
			<textlistitemvalue name="ArmeTech5">
				<anchored>
					<left>
						<parent>ArmeTech4</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>0</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
		</sheetdata>
	</windowclass>
	
<!--===========================================================================================-->
	<windowclass name="ITEM_ListeArmesadistance">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="ArmesadistanceNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>0</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-328</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Famille -->
			<textlistitemvalue name="ArmesadistanceFamille">
				<anchored>
					<left>
						<parent>ArmesadistanceNom</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-277</offset>
					</right>
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Dégâts -->
			<textlistitemvalue name="ArmesadistanceDegats">
				<anchored>
					<left>
						<parent>ArmesadistanceFamille</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-230</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Portée -->
			<textlistitemvalue name="ArmesadistancePortee">
				<anchored>
					<left>
						<parent>ArmesadistanceDegats</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-172</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Pénétration -->
			<textlistitemvalue name="ArmesadistancePenetration">
				<anchored>
					<left>
						<parent>ArmesadistancePortee</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-108</offset>
					</right>
				</anchored>				
			</textlistitemvalue>

			<!----------------------------------- Tech4 -->
			<textlistitemvalue name="ArmesadistanceTech4">
				<anchored>
					<left>
						<parent>ArmesadistancePenetration</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-52</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			<!----------------------------------- Tech5 -->
			<textlistitemvalue name="ArmesadistanceTech5">
				<anchored>
					<left>
						<parent>ArmesadistanceTech4</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>0</offset>
					</right>
				</anchored>				
			</textlistitemvalue>			
		</sheetdata>
	</windowclass>

	<!--===========================================================================================-->
	<windowclass name="ITEM_ListeMateriels">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Matériels -->
			<textlistitemvalue name="Materiels1">
				<anchored>
					<left>
						<anchor>left</anchor>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-10</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>						

			<!----------------------------------- Matériels -->
			<textlistitemvalue name="Materiels2">
				<anchored>
					<left>
						<anchor>left</anchor>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-10</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>						
			<!----------------------------------- Matériels -->
			<textlistitemvalue name="Materiels3">
				<anchored>
					<left>
						<anchor>left</anchor>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>0</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>	
			</sheetdata>
	</windowclass>	
	
</root>