<?xml version="1.0" encoding="UTF-8"?>
<!--####################################################################
Lake of Constance Hangar
Boeing 707 for Flightgear
Copyright (C) 2013 M.Kraus

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Every software has a developer, also free software. 
As a gesture of courtesy and respect, I would be delighted 
if you contacted me before making any changes to this software. 
<info (at) marc-kraus.de> April, 2017
########################################################################-->
<PropertyList>
 	<path>book.ac</path>
 	
	<animation>
		<type>material</type>
		<object-name>back</object-name>
		<object-name>board</object-name>
		<object-name>bracket</object-name>
		<object-name>pages</object-name>
		<object-name>pages.001</object-name>
		<object-name>saddle</object-name>
		<object-name>flagGB</object-name>
		<object-name>flagGER</object-name>
		<object-name>flagES</object-name>
		<object-name>flagCZ</object-name>
		<object-name>flagPOR</object-name>
		<object-name>flagITA</object-name>
		<condition>	
			<not><property>/sim/rendering/rembrandt/enabled</property></not>
		</condition>
		<emission>
		  <red>0.3</red>
		  <green>0.3</green>
		  <blue>0.3</blue>
		  <factor-prop>systems/electrical/outputs/engineer-dim</factor-prop>
		</emission>
	</animation>
	
	<animation>
		<type>select</type>
		<object-name>pages.001</object-name>
		<condition>	
			<and>	
				<greater-than>
					<property>b707/manual/page</property>
					<value>0</value>
				</greater-than>
				<greater-than>
		  		<property>b707/manual/board</property>
					<value>0.94</value>
				</greater-than>
			</and>
		</condition>
	</animation>
	
	<!-- Open cover -->
	<animation>
		  <type>rotate</type>
		  <object-name>board</object-name>
		  <object-name>saddle</object-name>
		  <property>b707/manual/board</property>
			<interpolation>
				<entry><ind>0.0</ind><dep>  0.0</dep></entry>
				<entry><ind>0.6</ind><dep>-100.0</dep></entry>
			</interpolation>
		  <axis>
		   <x>0</x>
		   <y>1</y>
		   <z>0</z>
		  </axis>
		  <center>
		  <x-m>0.0004</x-m>
		  <y-m>0.0</y-m>
		  <z-m>0.0036</z-m>
		  </center>  
	</animation>
	
	<animation>
		  <type>rotate</type>
		  <object-name>board</object-name>
		  <property>b707/manual/board</property>
			<interpolation>
				<entry><ind>0.6</ind><dep>   0.0</dep></entry>
				<entry><ind>1.0</ind><dep> -85.0</dep></entry>
			</interpolation>
		  <axis>
		   <x>0</x>
		   <y>1</y>
		   <z>0</z>
		  </axis>
		  <center>
		  <x-m>0.0068</x-m>
		  <y-m>0.0</y-m>
		  <z-m>0.0445</z-m>
		  </center>  
	</animation>

	<animation>
		  <type>pick</type>
		  <object-name>board</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
            	var b = getprop("b707/manual/board") or 0;
            	if(b){
            		interpolate("b707/manual/board", 0, 0.4);
            	}else{
            		interpolate("b707/manual/board", 1, 0.4);
            	}
            </script>
        </binding>          
		  </action>
	</animation> 

	<animation>
		  <type>pick</type>
		  <object-name>flagGB</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>2</value>
        </binding> 
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	         
		  </action>
	</animation> 	

	<animation>
		  <type>pick</type>
		  <object-name>flagES</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>13</value>
        </binding>
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	          
		  </action>
	</animation>

	<animation>
		  <type>pick</type>
		  <object-name>flagGER</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>24</value>
        </binding> 
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	         
		  </action>
	</animation> 	 	

	<animation>
		  <type>pick</type>
		  <object-name>flagCZ</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>35</value>
        </binding> 
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	         
		  </action>
	</animation> 

	<animation>
		  <type>pick</type>
		  <object-name>flagPOR</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>46</value>
        </binding> 
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	         
		  </action>
	</animation> 

	<animation>
		  <type>pick</type>
		  <object-name>flagITA</object-name>
		  <action>
		    <button>0</button>
		    <repeatable>false</repeatable>
        <binding>
				  <command>property-assign</command>
				  <property>b707/manual/page</property>
				  <value>57</value>
        </binding> 
				<binding>
				  <command>nasal</command>
				  <script>b707.manual();</script>
				</binding>	         
		  </action>
	</animation> 
		
	<animation>
		<type>pick</type>
		<object-name>pages</object-name>
		<action>
		  <button>0</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>					
		</action>
		<action>
		  <button>3</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>	
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>				
		</action>
		<action>
		  <button>4</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>-1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>					
		</action>
	</animation>
	
	<animation>
		<type>pick</type>
		<object-name>pages.001</object-name>
		<action>
		  <button>0</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>-1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>					
		</action>
		<action>
		  <button>3</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>-1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>				
		</action>
		<action>
		  <button>4</button>
		  <repeatable>true</repeatable>
		  <binding>
		    <command>property-adjust</command>
		    <property>b707/manual/page</property>
		    <step>1</step>
		    <min>0</min>
		    <max>100</max>
		    <wrap>false</wrap>
		  </binding>
		  <binding>
		    <command>nasal</command>
		    <script>b707.manual();</script>
		  </binding>				
		</action>
	</animation>
	
	<!-- page number -->
	<model>
	  <name>pageNumber</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.14</x-m>
			<y-m>-0.10</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/page</property>
				<character-size type="double">0.007</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageNumber</object-name>
		<condition>	
			<greater-than>
				<property>b707/manual/page</property>
				<value>0</value>
			</greater-than>
		</condition>
	</animation>
	
	<!-- Title -->
	<model>
	  <name>pageTitle</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.086</x-m>
			<y-m> 0.070</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/title</property>
				<character-size type="double">0.012</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageTitle</object-name>
		<condition>
			<not>	
				<property>b707/manual/title</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Subtitle 1 -->
	<model>
	  <name>pageSubTitle1</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.086</x-m>
			<y-m> 0.055</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/subtitle1</property>
				<character-size type="double">0.009</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageSubTitle1</object-name>
		<condition>
			<not>	
				<property>b707/manual/subtitle1</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>

	<!-- Text 1 -->
	<model>
	  <name>pageText1</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.036</x-m>
			<y-m> 0.045</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/text1</property>
				<character-size type="double">0.007</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>left-top</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageText1</object-name>
		<condition>
			<not>	
				<property>b707/manual/text1</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Subtitle 2 -->
	<model>
	  <name>pageSubTitle2</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.086</x-m>
			<y-m> 0.015</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/subtitle2</property>
				<character-size type="double">0.009</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageSubTitle2</object-name>
		<condition>
			<not>	
				<property>b707/manual/subtitle2</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Text 2 -->
	<model>
	  <name>pageText2</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.036</x-m>
			<y-m> 0.005</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/text2</property>
				<character-size type="double">0.007</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>left-top</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageText2</object-name>
		<condition>
			<not>	
				<property>b707/manual/text2</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Subtitle 3 -->
	<model>
	  <name>pageSubTitle3</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.086</x-m>
			<y-m>-0.025</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/subtitle3</property>
				<character-size type="double">0.009</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageSubTitle3</object-name>
		<condition>
			<not>	
				<property>b707/manual/subtitle3</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Text 3 -->
	<model>
	  <name>pageText3</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.036</x-m>
			<y-m>-0.035</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/text3</property>
				<character-size type="double">0.007</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>left-top</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageText3</object-name>
		<condition>
			<not>	
				<property>b707/manual/text3</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Subtitle 4 -->
	<model>
	  <name>pageSubTitle4</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.086</x-m>
			<y-m>-0.055</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/subtitle4</property>
				<character-size type="double">0.009</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>center-center</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageSubTitle4</object-name>
		<condition>
			<not>	
				<property>b707/manual/subtitle4</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
	
	<!-- Text 4 -->
	<model>
	  <name>pageText4</name>
		<path>Aircraft/707/Models/Cockpit/Manual/layout.xml</path>
		<offsets>
			<x-m> 0.036</x-m>
			<y-m>-0.065</y-m>
			<z-m> 0.0131</z-m>
		</offsets>
		<overlay>
			<params>
				<property type="string">b707/manual/text4</property>
				<character-size type="double">0.007</character-size>
				<color>
					<red   type="double">0.0</red>
					<green type="double">0.0</green>
					<blue  type="double">0.0</blue>
				</color>
				<alignment>left-top</alignment>
			</params>
		</overlay>
	</model>

	<animation>
		<type>select</type>
		<object-name>pageText4</object-name>
		<condition>
			<not>	
				<property>b707/manual/text4</property>
				<value type="string"></value>
			</not>
		</condition>
	</animation>
			
</PropertyList>
