
<!-- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
	La Brigade Chimérique
	Version 1.0.0
	Février 2011
	
	/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

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


	
	<windowclass name="feuillepersonnage_surhomme">
		<frame name="generique_feuillepersonnage_surhomme" />
		<datasource name="feuillepersonnage" />
		<placement>
			<size>
				<width>408</width>
				<height>576</height>
			</size>
			<position>
				<x>415</x>
				<y>450</y>
			</position>
		</placement>
		
		<sheetdata>

<!-- Réserve de Combat -->
			
			<numberfield name="Combat_valeur" source="Reserve.combat">				
				<bounds rect="149,60,26,26" />
				<font name="sheetnumbersmall" />						
				<tooltip text="ReserveCombat" />				
				<description text="Réserve de Combat"/>	
				<noreset />
			</numberfield>

<!-- Réserve de Radium -->
			
			<numberfield name="Radium_valeur" source="Reserve.radium">				
				<bounds rect="337,60,26,26" />
				<font name="sheetnumbersmall" />						
				<tooltip text="ReserveRadium" />				
				<description text="Réserve de Radium"/>	
				<noreset />
			</numberfield>

<!-- Pouvoirs -->

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

			<checkbox name="Indemne"  source="Indemne.Cocher">			
				<bounds rect="45,344,12,12" />
			</checkbox>		

			<checkbox name="Indemne2"  source="Indemne2.Cocher">			
				<bounds rect="45,356,12,12" />
			</checkbox>		

			<checkbox name="Touche"  source="Touche.Cocher">			
				<bounds rect="113,344,12,12" />
			</checkbox>					
			
			<checkbox name="Touche2"  source="Touche2.Cocher">			
				<bounds rect="113,356,12,12" />
			</checkbox>		

			<checkbox name="Gravementatteint"  source="Gravementatteint.Cocher">			
				<bounds rect="210,344,12,12" />
			</checkbox>		

			<checkbox name="Gravementatteint2"  source="Gravementatteint2.Cocher">			
				<bounds rect="210,356,12,12" />
			</checkbox>		
			
			<checkbox name="Auseuildelamort"  source="Auseuildelamort.Cocher">			
				<bounds rect="330,350,12,12" />
			</checkbox>		

<!-- Ressources & Equipement -->

			<windowlist name="ListeEquipement">				
				<bounds rect="16,423,380,120" />
				<!-- <frame name="frameFondBleu" /> -->
				<datasource>.ListeEquipement</datasource>
				<class>ITEM_ListeEquipement</class>
				<allowcreate />
				<allowdelete />
				<skipempty />
				<columns>
					<filldown />
					<width>190</width>
				</columns>				
				<script>
					function onSortCompare(w1, w2)
						local name1 = string.lower(w1.Equipement.getValue());
						local name2 = string.lower(w2.Equipement.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.Equipement.getValue();
							entry.window = w;
							table.insert(containermapping, entry);
						end	
					end
				</script>
			</windowlist>
			
			<scrollercontrol>
				<anchored>
					<to>ListeEquipement</to>
					<position>belowright</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>			

			<numberfield name="Traindevie_valeur" source="Ressources.traindevie">				
				<bounds rect="335,402,22,20" />
				<font name="sheetnumbersmall" />						
				<tooltip text="Train de vie" />				
				<description text="Train de vie"/>	
				<noreset />
				<script>
					function onInit()
						if getValue() &lt; 0 then
							setValue(0);
						elseif getValue() &gt; 6 then
							setValue(6);
						end
					end
								
					function onValueChanged()
						if getValue() &lt; 0 then
							setValue(0);
						elseif getValue() &gt; 6 then
							setValue(6);
						end
					end
				</script>
			</numberfield>
			
		</sheetdata>
	</windowclass>
	
	
	<!--===========================================================================================-->
	<windowclass name="ITEM_ListePouvoirs">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Nom -->
			<textlistitemvalue name="PouvoirNom">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>0</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-250</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>		
				</anchored>
			</textlistitemvalue>
			
			<!----------------------------------- Niveau -->
			<numberfield name="PouvoirNiveau" source="Pouvoir.niveau">
			<noreset />
				<anchored>
					<left>
						<parent>PouvoirNom</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-223</offset>
					</right>
				</anchored>
				
				<font name="sheetnumbersmall" />
				<script>
					function onInit()
						if getValue() &lt; 0 then
							setValue(0);
						elseif getValue() &gt; 6 then
							setValue(6);
						end
					end
								
					function onValueChanged()
						if getValue() &lt; 0 then
							setValue(0);
						elseif getValue() &gt; 6 then
							setValue(6);
						end
					end
				</script>
			</numberfield>
			
			<!----------------------------------- Portée -->
			<textlistitemvalue name="PouvoirPortee">
				<anchored>
					<left>
						<parent>PouvoirNiveau</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-170</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Durée -->
			<textlistitemvalue name="PouvoirDuree">
				<anchored>
					<left>
						<parent>PouvoirPortee</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-127</offset>
					</right>
				</anchored>				
			</textlistitemvalue>
			
			<!----------------------------------- Autres -->
			<textlistitemvalue name="PouvoirAutres">
				<anchored>
					<left>
						<parent>PouvoirDuree</parent>
						<anchor>right</anchor>
						<offset>5</offset>
					</left>					
					<top>
						<anchor>top</anchor>
					</top>
					<right>
						<anchor>right</anchor>
						<offset>-75</offset>
					</right>
				</anchored>				
			</textlistitemvalue>	
	
			<!----------------------------------- Contrainte -->
			<textlistitemvalue name="PouvoirContrainte">
				<anchored>
					<left>
						<parent>PouvoirAutres</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_ListeEquipement">
		
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
	
		<sheetdata>			
			<!----------------------------------- Equipement -->
			<textlistitemvalue name="Equipement">
				<anchored>
					<left>
						<anchor>left</anchor>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-20</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>			
			
		</sheetdata>
	</windowclass>	
	
	
	
	
	
	
</root>