<!-- This file is provided under the Open Game License version 1.0a
  -- For more information on OGL and related issues, see 
  --   http://www.wizards.com/WFRP2
  --
  -- For information on the Fantasy Grounds WFRP2 Ruleset licensing and
  -- the OGL license text, see the WFRP2 ruleset license in the program
  -- options.
  --
  -- All producers of work derived from this definition are adviced to
  -- familiarize themselves with the above licenses, and to take special
  -- care in providing the definition of Product Identity (as specified
  -- by the OGL) in their products.
  --
  -- Copyright 2006 SmiteWorks Ltd.
  -->

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

	<windowclass name="charsheet_spellitem">
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
		
		
        <sheetdata>

			<textlistitemvalue name="name">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>2</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-310</offset>
					</right>
					<top>
						<anchor>top</anchor>
						<offset>5</offset>
					</top>
				</anchored>
				<font>sheetlabelsmall</font>
				<tabtarget>
					<next>castnum</next>
					<prev>count</prev>
				</tabtarget>
			</textlistitemvalue>

			<numberfield name="castnum">
				<anchored>
					<left>
						<parent>name</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>7</offset>
					</top>
					<size>
						<width>25</width>
						<height>14</height>
					</size>
				</anchored>
				<frame>
					<name>textlinesmall</name>
					<offset>0,0,0,0</offset>
				</frame>
				<keyeditframe>
					<name>sheetfocus</name>
					<offset>6,5,6,5</offset>
				</keyeditframe>
				<font>sheetnumbersmall</font>
				<hideonvalue>0</hideonvalue>
				<tabtarget>
					<next>focalis</next>
					<prev>count</prev>
				</tabtarget>
			</numberfield>
			
			<textlistitemvalue name="focalis">
				<anchored>
					<left>
						<parent>castnum</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>10</offset>
					</top>
					<size>
						<width>35</width>
					</size>
				</anchored>
				<font>sheetlabelsmall</font>
				<multilinespacing>15</multilinespacing>
				<frame>
					<name>textline</name>
					<offset>0,5,0,0</offset>
				</frame>
				<tabtarget>
					<next>porteesort</next>
					<prev>count</prev>
				</tabtarget>
			</textlistitemvalue>
									
			<textlistitemvalue name="porteesort">
				<anchored>
					<left>
						<parent>focalis</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>10</offset>
					</top>
					<size>
						<width>30</width>
					</size>
				</anchored>
				<font>sheetlabelsmall</font>
				<multilinespacing>15</multilinespacing>
				<frame>
					<name>textline</name>
					<offset>0,5,0,0</offset>
				</frame>
				<tabtarget>
					<next>shortdescription</next>
					<prev>count</prev>
				</tabtarget>
			</textlistitemvalue>
            
            <textlistitemvalue name="shortdescription">
				<anchored>
					<left>
						<parent>porteesort</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>10</offset>
					</top>
					<size>
						<width>110</width>
					</size>
				</anchored>
				<font>sheetlabelsmall</font>
				<multilinespacing>15</multilinespacing>
				<frame>
					<name>textline</name>
					<offset>0,5,0,0</offset>
				</frame>
				<tabtarget>
					<next>maintien</next>
					<prev>count</prev>
				</tabtarget>
			</textlistitemvalue>
			
			<textlistitemvalue name="maintien">
				<anchored>
					<left>
						<parent>shortdescription</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>10</offset>
					</top>
					<size>
						<width>25</width>
					</size>
				</anchored>
				<font>sheetlabelsmall</font>
				<multilinespacing>15</multilinespacing>
				<frame>
					<name>textline</name>
					<offset>0,5,0,0</offset>
				</frame>
				<tabtarget>
					<next>name</next>
					<prev>count</prev>
				</tabtarget>
			</textlistitemvalue>

			<windowreferencefield name="shortcut">
				<anchored>
					<left>
						<parent>maintien</parent>
						<anchor>right</anchor>
						<offset>10</offset>
					</left>
					<top>
						<anchor>top</anchor>
						<offset>5</offset>
					</top>
					<size>
						<width>20</width>
						<height>20</height>
					</size>
				</anchored>
				<icon>
					<normal>button_openwindow</normal>
					<empty>button_emptytarget</empty>
					<pressed>button_emptytarget</pressed>
				</icon>
				<allowdrop />
			</windowreferencefield>

		</sheetdata>
	</windowclass>


	<windowclass name="charsheet_spells">
		<datasource name="spellsheet" />
		<placement>
			<size>
				<width>252</width>
				<height>611</height>
			</size>
		</placement>
		<sheetdata>
			<genericcontrol name="spelllistframe">
				<bounds>15,20,485,400</bounds>
				<frame>
					<name>sheetgroup</name>
				</frame>
			</genericcontrol>


			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetop</position>
					<offset>0,11</offset>
				</anchored>
				<center />
				<font>sheetlabel</font>
				<static>Pouvoirs psychiques</static>
				</stringcontrol>

			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>13,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Nom</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>171,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Seuil</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>208,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Focal.</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>252,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Portée</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>292,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Description</static>
			</stringcontrol>
			
            <stringcontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopleft</position>
					<offset>411,25</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Maintien</static>
			</stringcontrol>

<!--			<stringcontrol name="step1astring">
				<anchored>
					<to>spelllistframe</to>
					<position>insidebottom</position>
					<offset>0,10</offset>
				</anchored>
				<center />
				<font>sheetlabelsmall</font>
				<static>Drag spells from the Spell Library or shortcut to the Sheet</static>
			</stringcontrol> -->

			<windowlist name="spelllist">
				<anchored>
					<to>spelllistframe</to>
					<position>over</position>
					<offset>-12,-9</offset>
					<top>
						<parent>spelllistframe</parent>
						<offset>30</offset>
					</top>
				</anchored>
				<datasource>.spelllist</datasource>
				<class>charsheet_spellitem</class>
				<allowcreate />
				<allowdelete />
					<script>
						function onDrop(x, y, draginfo)
						    if draginfo.isType("shortcut") then
						        if draginfo.getShortcutData() == "spelldesc" then
						            local sourcenode = draginfo.getDatabaseNode();
						            local newwin = createWindow();
						            newwin.name.setValue(sourcenode.getChild("name").getValue());
						            newwin.castnum.setValue(sourcenode.getChild("castnum").getValue());
						            newwin.shortdescription.setValue(sourcenode.getChild("shortdescription").getValue());
						            newwin.shortcut.setValue(draginfo.getShortcutData());
						            return true;
						        end
						    end
						end
					</script>
			</windowlist>

			<scrollercontrol>
				<anchored>
					<to>spelllistframe</to>
					<position>insidetopright</position>
					<offset>12,9</offset>
					<size>
						<width>35</width>
						<height>17</height>
					</size>
				</anchored>
				<target>weaponslist</target>
				<button>
					<normal>button_scroller</normal>
					<pressed>button_scroller_down</pressed>
				</button>
			</scrollercontrol>


			<genericcontrol name="spellhintframe">
				<bounds>15,420,485,180</bounds>
				<frame>
					<name>sheetgroup</name>
				</frame>
			</genericcontrol>

			<stringcontrol name="introstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetop</position>
					<offset>0,7</offset>
				</anchored>
				<static>Utiliser les Pouvoirs</static>
				<center />
			</stringcontrol>

			<stringcontrol name="step1astring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>10,27</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>1: Vous pouvez utiliser la compétence "concentration" avant de faire votre Jet de Puissance (1 AC)</static>
			</stringcontrol>
			<stringcontrol name="step1bstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,37</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Sur un succès, vous bénéficiez d'un bonus supplémentaire au Jet de Puissance = à votre Bonus de FM.</static>
			</stringcontrol>

			<stringcontrol name="step2astring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>10,52</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>2: Jet de Puissance</static>
			</stringcontrol>
			<stringcontrol name="step2bstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,62</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Effectuez un jet de Puissance : Nbre de Dés de votre Niveau Psy + Bonus FM + Bonus Concentration</static>
			</stringcontrol>

			<stringcontrol name="step3astring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>10,77</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>3: Phénomènes Psychiques</static>
			</stringcontrol>
			<stringcontrol name="step3bstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,87</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Si vous faîtes des 9 sur le jet de Puissance, vous provoquez un Phénomène Psychique.</static>
			</stringcontrol>
			<stringcontrol name="step3cstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,97</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Vous devez effectuez un jet par 9 octenus sur la Table 6–2 : Phénomènes Psychique P.162</static>
			</stringcontrol>

			<stringcontrol name="step4astring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>10,112</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>4: Surpuissance</static>
			</stringcontrol>
			<stringcontrol name="step4bstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,122</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Si vous dépassez d’un certain nombre de points le seuil d’un pouvoir, il gagne en efficacité.</static>
			</stringcontrol>
			<stringcontrol name="step4cstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,132</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Elle peut accroître sa portée, sa durée ou les dégâts qu’il inflige. Voir description du pouvoir.</static>
			</stringcontrol>

			<stringcontrol name="step5astring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>10,147</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>5: Maintien</static>
			</stringcontrol>
			<stringcontrol name="step5bstring">
				<anchored>
					<to>spellhintframe</to>
					<position>insidetopleft</position>
					<offset>15,157</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Maintenir des effets psychiques nécessite un jet de Puissance tous les 10 rounds.</static>
			</stringcontrol>

		</sheetdata>
	</windowclass>
</root>
