<!-- 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/d20
  --
  -- For information on the Fantasy Grounds d20 Ruleset licensing and
  -- the OGL license text, see the d20 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 2007 SmiteWorks Ltd.
  -->

<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">
	<windowclass name="charsheet_textlistitem">
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
		<sheetdata>
			<textlistitemvalue name="value">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>2</offset>
					</left>
					<right>
						<anchor>right</anchor>
						<offset>-2</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
			</textlistitemvalue>
		</sheetdata>
	</windowclass>

	<windowclass name="charsheet_specialabilityitem">
		<sizelimits>
			<minimum>
				<height>10</height>
			</minimum>
		</sizelimits>
		<sheetdata>
			<specialabilitynumber name="number">
				<anchored>
					<right>
						<anchor>right</anchor>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
					<size>
						<width>30</width>
						<height>16</height>
					</size>
				</anchored>
				<font>sheetnumbersmall</font>
				<frame>
					<name>modifier</name>
					<offset>4,4,4,4</offset>
				</frame>
			</specialabilitynumber>

			<specialabilitydice name="dice">
				<anchored>
					<right>
						<parent>number</parent>
						<anchor>left</anchor>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
					<size>
						<width>35</width>
						<height>15</height>
					</size>
				</anchored>
				<frame>
					<name>modifier</name>
					<offset>4,4,4,5</offset>
				</frame>
			</specialabilitydice>

			<textlistitemvalue name="value">
				<anchored>
					<left>
						<anchor>left</anchor>
						<offset>2</offset>
					</left>
					<right>
						<parent>dice</parent>
						<anchor>left</anchor>
						<offset>-2</offset>
					</right>
					<top>
						<anchor>top</anchor>
					</top>
				</anchored>
				<script>
					function onDrop(x, y, draginfo)
						if draginfo.isType("number") then
							window.number.enable(true);
							window.number.setSourceValue(draginfo.getNumberData());
							return true;
						end

						if draginfo.isType("dice") then
							window.dice.enable(true);
							window.dice.setSourceValue(draginfo.getDieList());
							return true;
						end
					end
				</script>
			</textlistitemvalue>
		</sheetdata>
	</windowclass>

	<windowclass name="charsheet_abilities">
		<placement>
			<size>
				<width>252</width>
				<height>611</height>
			</size>
		</placement>
		<nodelete />
		<sheetdata>
		
		
			<!-- Stress -->
			<genericcontrol name="stressframe">
				<bounds>15,20,485,105</bounds>
				<frame>
					<name>sheetgroup</name>
				</frame>
			</genericcontrol>
            
			<stringcontrol>
				<anchored>
					<to>stressframe</to>
					<position>insidetop</position>
					<offset>0,11</offset>
				</anchored>
				<center />
				<font>sheetlabel</font>
				<static>Échelle de Stress</static>
			</stringcontrol>

			
            <checkbox name="Calme">
				<anchored>
					<to>stressframe</to>
					<position>insidebottomleft</position>
					<offset>15,45</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
            <checkbox name="Énervé">
				<anchored>
                    <to>Calme</to>
                    <position>right</position>
                    <offset>30,0</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
            <checkbox name="Stressé">
				<anchored>
                    <to>Énervé</to>
                    <position>right</position>
                    <offset>30,0</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
            <checkbox name="Angoissé">
				<anchored>
                    <to>Stressé</to>
                    <position>right</position>
                    <offset>30,0</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
            <checkbox name="Paniqué">
				<anchored>
                    <to>Angoissé</to>
                    <position>right</position>
                    <offset>30,0</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
            <checkbox name="Choqué">
				<anchored>
                    <to>Paniqué</to>
                    <position>right</position>
                    <offset>30,0</offset>
					<size>
						<width>50</width>
						<height>12</height>
					</size>
				</anchored>
            </checkbox>
			
        <!--1ère ligne -->
		
			<stringcontrol>
				<anchored>
					<to>Calme</to>
					<position>aboveright</position>
					<offset>12,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Calme</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Énervé</to>
					<position>aboveright</position>
					<offset>12,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Enervé</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Stressé</to>
					<position>aboveright</position>
					<offset>12,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Stressé</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Angoissé</to>
					<position>aboveright</position>
					<offset>8,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Angoissé</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Paniqué</to>
					<position>aboveright</position>
					<offset>9,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Paniqué</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Choqué</to>
					<position>aboveright</position>
					<offset>12,2</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Choqué</static>
			</stringcontrol>

		<!-- 2ème ligne -->

			<stringcontrol>
				<anchored>
					<to>Calme</to>
					<position>belowright</position>
					<offset>6,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N0 (D8)</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Énervé</to>
					<position>belowright</position>
					<offset>4,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N1 (D10)</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Stressé</to>
					<position>belowright</position>
					<offset>4,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N2 (D10)</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Angoissé</to>
					<position>belowright</position>
					<offset>4,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N3 (D12)</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Paniqué</to>
					<position>belowright</position>
					<offset>5,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N4 (D12)</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Choqué</to>
					<position>belowright</position>
					<offset>4,5</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>N5 (D12)</static>
			</stringcontrol>

		<!-- 3ème ligne -->	
		
				<!-- 2ème ligne -->

			<stringcontrol>
				<anchored>
					<to>Calme</to>
					<position>belowright</position>
					<offset>22,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>-</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Énervé</to>
					<position>belowright</position>
					<offset>12,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>-1D x1</static>
			</stringcontrol>
			<stringcontrol>
				<anchored>
					<to>Stressé</to>
					<position>belowright</position>
					<offset>10,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>-1D x2</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Angoissé</to>
					<position>belowright</position>
					<offset>11,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>-1D x4</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Paniqué</to>
					<position>belowright</position>
					<offset>-4,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>-2D x1/-1D x4</static>
			</stringcontrol>
            <stringcontrol>
				<anchored>
					<to>Choqué</to>
					<position>belowright</position>
					<offset>6,20</offset>
				</anchored>
				<font>sheetlabelsmall</font>
				<static>Trauma</static>
			</stringcontrol>
			
			<!-- SEQUELLES PHYSIQUES -->
			<genericcontrol name="featframe">
				<bounds>15,125,240,465</bounds>
				<frame>
					<name>sheetgroup</name>
				</frame>
			</genericcontrol>
			
			<stringcontrol>
				<anchored>
					<to>featframe</to>
					<position>insidetop</position>
					<offset>0,11</offset>
				</anchored>
				<center />
				<font>sheetlabel</font>
				<static>Séquelles physiques</static>
			</stringcontrol>
			
			<windowlist name="featlist">
				<anchored>
					<to>featframe</to>
					<position>over</position>
					<offset>-12,-9</offset>
					<top>
						<parent>featframe</parent>
						<offset>30</offset>
					</top>
				</anchored>
				<datasource>.featlist</datasource>
				<class>charsheet_textlistitem</class>
				<allowcreate />
				<script>
					function onSortCompare(w1, w2)
						if w1.value.getValue() == "" then
							return true;
						elseif w2.value.getValue() == "" then
							return false;
						end
					
						return w1.value.getValue() &gt; w2.value.getValue();
					end
					
					function onClickDown(button, x, y)
						if not getNextWindow(nil) then
							createWindow().value.setFocus();
							return true;
						end
					end
				</script>
			</windowlist>

			<!-- SEQUELLES PSYCHOLOGIQUES -->
			<genericcontrol name="specialabilityframe">
				<bounds>255,125,240,465</bounds>
				<frame>
					<name>sheetgroup</name>
				</frame>
			</genericcontrol>

			<stringcontrol>
				<anchored>
					<to>specialabilityframe</to>
					<position>insidetop</position>
					<offset>0,11</offset>
				</anchored>
				<font>sheetlabel</font>
				<center />
				<static>Séquelles psychologiques</static>
			</stringcontrol>
¨
			<windowreferencecontrol>
				<anchored>
					<to>specialabilityframe</to>
					<position>insidetopright</position>
					<offset>13,10</offset>
					<size>
						<width>40</width>
						<height>15</height>
					</size>
				</anchored>
				<nodrag />
				<closetoggle />
			</windowreferencecontrol>

			<windowlist name="specialabilitylist">
				<anchored>
					<to>specialabilityframe</to>
					<position>over</position>
					<offset>-12,-9</offset>
					<top>
						<parent>specialabilityframe</parent>
						<offset>30</offset>
					</top>
				</anchored>
				<datasource>.specialabilitylist</datasource>
				<class>charsheet_specialabilityitem</class>
				<allowcreate />
				<script>
					function onSortCompare(w1, w2)
						if w1.value.getValue() == "" then
							return true;
						elseif w2.value.getValue() == "" then
							return false;
						end
					
						return w1.value.getValue() &gt; w2.value.getValue();
					end
					
					function onClickDown(button, x, y)
						if not getNextWindow(nil) then
							createWindow().value.setFocus();
							return true;
						end
					end
				</script>
			</windowlist>
		</sheetdata>
	</windowclass>
</root>
