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


	
	<windowclass name="feuillepersonnage_underground">
		<frame name="generique_feuillepersonnage_underground" />
		<datasource name="feuillepersonnage" />
		<placement>
			<size>
				<width>463</width>
				<height>651</height>
			</size>
			<position>
				<x>415</x>
				<y>450</y>
			</position>
		</placement>
		
		<sheetdata>
			
			<windowlist name="ListeArmesAFeu">				
				<bounds rect="10,92,434,93" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeArmesAFeu</datasource>
				<class>ITEM_ListeArmesAFeu</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.ArmesAFeuNom.getValue());
						local name2 = string.lower(w2.ArmesAFeuNom.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.ArmesAFeuNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeArmesAFeu</to>
					<position>belowright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeArmesAFeu</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>

			<windowlist name="ListeArmesMelee">				
				<bounds rect="10,250,212,78" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeArmesMelee</datasource>
				<class>ITEM_ListeArmesMelee</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.ArmesMeleeNom.getValue());
						local name2 = string.lower(w2.ArmesMeleeNom.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.ArmesMeleeNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeArmesMelee</to>
					<position>below</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeArmesMelee</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>

			<windowlist name="ListeArtefacts">				
				<bounds rect="241,250,212,76" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeArtefacts</datasource>
				<class>ITEM_ListeArtefacts</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.ArtefactsNom.getValue());
						local name2 = string.lower(w2.ArtefactsNom.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.ArtefactsNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeArtefacts</to>
					<position>belowright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeArtefacts</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>

			<windowlist name="ListeRituels">				
				<bounds rect="10,385,441,92" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeRituels</datasource>
				<class>ITEM_ListeRituels</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<script>
				function onSortCompare(w1, w2)
						local name1 = string.lower(w1.RituelsNom.getValue());
						local name2 = string.lower(w2.RituelsNom.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.RituelsNom.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeRituels</to>
					<position>belowright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeRituels</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>



			<windowlist name="ListeEquipement">				
				<bounds rect="15,510,447,133" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeEquipement</datasource>
				<class>ITEM_ListeEquipement</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<columns>
					<filldown />
					<width>216</width>
				</columns>
				
				<script>
					function onSortCompare(w1, w2)
						local name1 = string.lower(w1.Equipement1.getValue());
						local name2 = string.lower(w2.Equipement1.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.Equipement1.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeEquipement</to>
					<position>insidebottomright</position>
					<size>
						<width>45</width>
						<height>27</height>
					</size>
				</anchored>
				<target>ListeEquipement</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>
			
		</sheetdata>
	</windowclass>	



	
	<!--===========================================================================================-->
	<windowclass name="ITEM_ListeArmesAFeu">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="ArmesAFeuNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>5</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-255</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Calibre -->
			<textlistitemvalue name="ArmesAFeuCalibre">
				<anchored>
					<left>
						<parent>ArmesAFeuNom</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-180</offset>
					</right>
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Chargeur -->
			<numberfield name="ArmesAFeuChargeur_valeur" source="Valeurs.ArmesAFeuChargeur">
			<noreset />
				<anchored>
					<left>
						<parent>ArmesAFeuCalibre</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-90</offset>
					</right>
				</anchored>			
			<font name="sheetnumbersmall" />
			</numberfield>
			
			<!----------------------------------- Dégâts Max. -->
			<numberfield name="ArmesAFeuDegatMax_valeur" source="Valeurs.ArmesAFeuDegatMax">
			<noreset />
				<anchored>
					<left>
						<parent>ArmesAFeuChargeur_valeur</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>20</offset>
					</right>
				</anchored>	
			<font name="sheetnumbersmall" />
			</numberfield>
		</sheetdata>
	</windowclass>
	
	<!--===========================================================================================-->
	<windowclass name="ITEM_ListeArmesMelee">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="ArmesMeleeNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>5</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-105</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			
			<!----------------------------------- Bonus aux dégâts -->
			<numberfield name="ArmesMeleeBonusDegats_valeur" source="Valeurs.ArmesMeleeBonusDegats">
			<noreset />
				<displaysign />
				<anchored>
					<left>
						<parent>ArmesMeleeNom</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-10</offset>
					</right>
				</anchored>			
			<font name="sheetnumbersmall" />
			</numberfield>
		</sheetdata>
	</windowclass>

	<!--===========================================================================================-->
	<windowclass name="ITEM_ListeArtefacts">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="ArtefactsNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>5</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-55</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			
			<!----------------------------------- Niveau -->
			<numberfield name="ArtefactsNiveau_valeur" source="Valeurs.ArtefactsNiveau">
			<noreset />
				<anchored>
					<left>
						<parent>ArtefactsNom</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>5</offset>
					</right>
				</anchored>			
			<font name="sheetnumbersmall" />
			</numberfield>
		</sheetdata>
	</windowclass>

	<!--===========================================================================================-->
	<windowclass name="ITEM_ListeRituels">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="RituelsNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>5</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-190</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			
			<!----------------------------------- Niveau -->
			<numberfield name="RituelsNiveau_valeur" source="Valeurs.RituelsNiveau">
			<noreset />
				<anchored>
					<left>
						<parent>RituelsNom</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-140</offset>
					</right>
				</anchored>			
			<font name="sheetnumbersmall" />
			</numberfield>
			
			
			<!----------------------------------- Charges -->			
			<numberfield name="RituelsCharges_valeur" source="Valeurs.RituelsCharges">
			<noreset />
				<anchored>
					<left>
						<parent>RituelsNiveau_valeur</parent>
						<anchor>right</anchor>
						<offset>2</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-80</offset>
					</right>
				</anchored>			
			<font name="sheetnumbersmall" />
			</numberfield>

			<stringfield name="stat">
				<anchored>
					<left>
						<parent>RituelsCharges_valeur</parent>
						<anchor>right</anchor>
						<offset>-20</offset>
					</left>
					<top>
						<anchor>top</anchor>
					</top>
					<size>
						<width>90</width>
						<height>18</height>
					</size>
				</anchored>
				<font>sheettextsmall2</font>
				<stateframe>
					<hover>
						<name>sheetfocus</name>
						<offset>6,7,90,10</offset>
					</hover>
				</stateframe> 
				<static />
				<center />
				<script>
					function setStat(value)
						if value and value ~= "" then
                            setValue(value);
						else
							setValue("Mineure(s)");
						end
					end
                    
					function cycleStat()
						local cyclemap = { ["Mineure(s)"] = "Conséquente(s)", ["Conséquente(s)"] = "Majeure(s)", ["Majeure(s)"] = "Mineure(s)" };
						local statnow = getValue() or "Cliquer";
						setStat(cyclemap[statnow]);
					end
                    
   					function onClickDown(button, x, y)
                        cycleStat();
					end
                </script>
			</stringfield>
		</sheetdata>
	</windowclass>

		<!--===========================================================================================-->
	<windowclass name="ITEM_ListeEquipement">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Equipement -->
			<textlistitemvalue name="Equipement1">
				<anchored>
					<left>
						<anchor>left</anchor>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-10</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>						
		</sheetdata>
	</windowclass>
	
</root>