<?xml version="1.0"?>

<PropertyList>

    <name>vehicle-dialog</name>
    <layout>vbox</layout>
    <resizable>false</resizable>
    <modal>false</modal>
    <draggable>true</draggable>


    <group>
        <layout>hbox</layout>

        <empty><stretch>true</stretch></empty>
        <text>
            <label>Vehicle Options</label>
        </text>
        <empty><stretch>true</stretch></empty>

        <button>
            <legend/>
            <key>Esc</key>
            <pref-width>32</pref-width>
            <pref-height>16</pref-height>
            <binding>
                <command>dialog-close</command>
            </binding>
	</button>
	</group>
	<hrule/>
    
  
    
	<group>
	<layout>vbox</layout>
	<padding>6</padding>
    
    <button>
        <halign>left</halign>
        <legend>Enable Performance Mode</legend>
        <pref-width>150</pref-width>
        <pref-height>28</pref-height>
        <enable>
            <and>
                <not>
                    <property>/sim/freeze/replay-state</property>
                </not>
        
            </and>
        </enable>
        <binding>
            <command>property-assign</command><!-- dialog-apply would apply values to all objects here - setlistener reacts on them in unfortunate way-->
            <property>/controls/mode</property>
            <value>1</value>
        </binding>
    </button>
    
    <button>
        <halign>left</halign>
        <legend>Enable Comfort Mode</legend>
        <pref-width>150</pref-width>
        <pref-height>28</pref-height>
        <enable>
            <and>
                <not>
                    <property>/sim/freeze/replay-state</property>
                </not>
        
            </and>
        </enable>
        <binding>
            <command>property-assign</command><!-- dialog-apply would apply values to all objects here - setlistener reacts on them in unfortunate way-->
            <property>/controls/mode</property>
            <value>0.65</value>
        </binding>
    </button>
    
    <button>
        <halign>left</halign>
        <legend>Enable Low Power Mode</legend>
        <pref-width>150</pref-width>
        <pref-height>28</pref-height>
        <enable>
            <and>
                <not>
                    <property>/sim/freeze/replay-state</property>
                </not>
        
            </and>
        </enable>
        <binding>
            <command>property-assign</command><!-- dialog-apply would apply values to all objects here - setlistener reacts on them in unfortunate way-->
            <property>/controls/mode</property>
            <value>0.4</value>
        </binding>
    </button>
    
           
        </group>
        <text>
            <label>Advanced Steering</label>
        </text>
        <text>
            <label>*Experimental</label>
        </text>
        <group>
            <layout>hbox</layout>
            <button>
                <halign>left</halign>
                <legend>Enable</legend>
                <pref-width>150</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <and>
                        <not>
                            <property>/sim/freeze/replay-state</property>
                        </not>
                        
                    </and>
                </enable>
                <binding>
                    <command>enableAdvancedSteering</command>
                </binding>
            </button>
            <button>
                <halign>left</halign>
                <legend>Disable</legend>
                <pref-width>150</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <and>
                        <not>
                            <property>/sim/freeze/replay-state</property>
                        </not>
        
                    </and>
                </enable>
                <binding>
                    <command>disableAdvancedSteering</command><!-- dialog-apply would apply values to all objects here - setlistener reacts on them in unfortunate way-->
                </binding>
            </button>
        </group>
      
        <hrule/>
        
        <group>
        <layout>vbox</layout>
        <padding>6</padding>
        <text><label>Welcome message</label></text>
        <button>
            <halign>left</halign>
            <legend>Disable welcome message</legend>
            <pref-width>160</pref-width>
            <pref-height>28</pref-height>
            <enable>
                <or>
                    <equals>
                        <property>systems/welcome-message</property>
                        <value>1</value>
                    </equals>
                    <equals>
                        <property>systems/welcome-message</property>
                        <value>2</value>
                    </equals>
                    <equals>
                        <property>systems/welcome-message</property>
                        <value>3</value>
                    </equals>
                </or>
            </enable>
            <binding>
    			<command>property-assign</command>
    			<property>systems/welcome-message</property>
                <value>0</value>
            </binding>
        </button>
      </group>
      <group>
          <layout>hbox</layout>
          <padding>2</padding>
          <button>
              <halign>left</halign>
              <legend>Enable Chinese</legend>
              <pref-width>100</pref-width>
              <pref-height>28</pref-height>
              <enable>
                  <or>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>0</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>2</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>3</value>
                      </equals>
                  </or>
              </enable>
              <binding>
      			<command>property-assign</command>
      			<property>systems/welcome-message</property>
                  <value>1</value>
              </binding>
          </button>
          <button>
              <halign>left</halign>
              <legend>Enable English</legend>
              <pref-width>100</pref-width>
              <pref-height>28</pref-height>
              <enable>
                  <or>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>0</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>1</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>3</value>
                      </equals>
                  </or>
              </enable>
              <binding>
      			<command>property-assign</command>
      			<property>systems/welcome-message</property>
                  <value>2</value>
              </binding>
          </button>
          <button>
              <halign>left</halign>
              <legend>Enable Special</legend>
              <pref-width>100</pref-width>
              <pref-height>28</pref-height>
              <enable>
                  <or>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>0</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>1</value>
                      </equals>
                      <equals>
                          <property>systems/welcome-message</property>
                          <value>2</value>
                      </equals>
                  </or>
              </enable>
              <binding>
      			<command>property-assign</command>
      			<property>systems/welcome-message</property>
                  <value>3</value>
              </binding>
          </button>
        </group>
        
        <hrule/>
        <text><label>Configuration</label></text>
        <group>
            <layout>hbox</layout>
            <!--<button>
                <halign>left</halign>
                <legend>Type A</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <property>systems/speedometer/type</property>
                    <value>1</value>
                </enable>
                <binding>
        			<command>property-assign</command>
        			<property>systems/speedometer/type</property>
                    <value>0</value>
                </binding>
            </button>
            
            <button>
                <halign>left</halign>
                <legend>Type O</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <not>
                        <property>systems/speedometer/type</property>
                        <value>1</value>
                    </not>
                </enable>
                <binding>
        			<command>property-assign</command>
        			<property>systems/speedometer/type</property>
                    <value>1</value>
                </binding>
            </button>-->
            <group>
                <layout>vbox</layout>
                <text><label>Speedometer type</label></text>
                <combo>
                    <name>speedType</name>
                    <row>1</row>
                    <col>6</col>
                    <pref-width>120</pref-width>
                    <halign>left</halign>
                    <name>Speedometer Type</name>
                    <property>/systems/speedometer/type</property>
                    <value>Type_A</value>
                    <value>Type_M</value>
                    <value>Type_B</value>
                    <value>Type_BT</value>
                    <value>Concept</value>
                    <value>Original</value>
                    <binding>
            			<command>dialog-apply</command>
            			<object-name>speedType</object-name>
                    </binding>
                </combo>
            </group>
            
            <group>
                <layout>vbox</layout>
                <text><label>Battery gauge type</label></text>
                <combo>
                    <name>batteryType</name>
                    <row>1</row>
                    <col>6</col>
                    <pref-width>120</pref-width>
                    <halign>left</halign>
                    <name>Battery gauge Type</name>
                    <property>/systems/battery-gauge/type</property>
                    <value>Type_A</value>
                    <value>Type_M</value>
                    <value>Type_BT</value>
                    <value>Concept</value>
                    <value>Original</value>
                    <binding>
            			<command>dialog-apply</command>
            			<object-name>batteryType</object-name>
                    </binding>
                </combo>
            </group>
            
        </group>
        <group>
            <layout>vbox</layout>
            <text><label>Plate</label></text>
            <combo>
                <name>plateSelection</name>
                <row>1</row>
                <col>6</col>
                <pref-width>120</pref-width>
                <halign>left</halign>
                <name>Plate Selection</name>
                <property>/systems/plate</property>
                <value>NONE</value>
                <value>JLH0762</value>
                <value>JAD00762</value>
                <value>YBD00404</value>
                <value>YAD07749</value>
                <value>SAD00818</value>
                <binding>
        			<command>dialog-apply</command>
        			<object-name>plateSelection</object-name>
                </binding>
            </combo>
        </group>
        <group>
            <layout>vbox</layout>
            <button>
                <halign>left</halign>
                <legend>Select Livery</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
				<binding>
					<command>nasal</command>
					<script>followme.liveryFuse.dialog.toggle()</script>
				</binding>
            </button>
            <button>
                <halign>left</halign>
                <legend>Select Message</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
				<binding>
						<command>nasal</command>
						<script>aircraft.livery.dialog.toggle()</script>
				</binding>
            </button>
        </group>
        <group>
            <layout>vbox</layout>
            <checkbox>
                <halign>left</halign>
                <label>  Enable Co-driver Model</label>
                <property>/systems/codriver-enable</property>
                <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </checkbox>
        </group>
        <group>
            <layout>vbox</layout>
            <checkbox>
                <halign>left</halign>
                <label>  Enable Smart Screen</label>
                <property>/systems/screen-enable</property>
                <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </checkbox>
        </group>
        <hrule/>
        <group>
            <layout>hbox</layout>
            <text>
                <label>Rescue</label>
            </text>
            <button>
                <halign>right</halign>
                <legend>Flip Vehicle</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <and>
                        <not>
                            <property>/sim/freeze/replay-state</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                    </and>
                </enable>
                <binding>
        			<command>property-assign</command>
        			<property>/orientation/roll-deg</property>
                    <value>0</value>
                </binding>
            </button>

            <button>
                <halign>right</halign>
                <legend>Quick Recharge</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <and>
                        <not>
                            <property>/sim/freeze/replay-state</property>
                        </not>
                        <less-than>
                            <property>velocities/groundspeed-kt</property>
                            <value>1.0</value>
                        </less-than>
                        <not>
                            <property>/controls/engines/engine/started</property>
                        </not>
                    </and>
                </enable>
				<binding>
					<command>nasal</command>
					<script>followme.circuit_1.parallelConnection[0].units[0].resetRemainingToFull()</script>
				</binding>
            </button>
        
            
        </group>
       

        <hrule/>
        <group>
            <layout>hbox</layout>
            <button>
                <halign>right</halign>
                <legend>Start Engine</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                    <not>
                        <property>/controls/engines/engine/started</property>
                    </not>
                </enable>
				<binding>
					<command>nasal</command>
					<script>engine.startEngine()</script>
				</binding>
            </button>
            <button>
                <halign>right</halign>
                <legend>Stop Engine</legend>
                <pref-width>120</pref-width>
                <pref-height>28</pref-height>
                <enable>
                   <property>/controls/engines/engine/started</property>
                </enable>
				<binding>
					<command>nasal</command>
					<script>engine.stopEngine()</script>
				</binding>
            </button>
        </group>
	
        <hrule/>

</PropertyList>
