<?xml version="1.0"?>


<PropertyList>
    <name>lag-adjust</name>
    <layout>vbox</layout>
    <resizable>false</resizable>


    <!-- titlebar -->
    <group>
        <layout>hbox</layout>
        <empty><stretch>1</stretch></empty>

        <text>
            <label>Lag-correction settings</label>
        </text>

        <empty><stretch>1</stretch></empty>

        <button>
            <pref-width>16</pref-width>
            <pref-height>16</pref-height>
            <legend></legend>
            <keynum>27</keynum>
            <border>2</border>
            <binding>
                <command>dialog-close</command>
            </binding>
        </button>
    </group>
    <hrule/>

    <!-- main dialog area -->
    <group>
		<layout>table</layout>
        <halign>center</halign>

		<text>
          <row>0</row>
          <col>0</col>
          <halign>right</halign>
          <label>Master switch:</label>
        </text>
		<checkbox>
            <row>0</row>
            <col>1</col>
            <colspan>2</colspan>
            <halign>left</halign>
            <name>master</name>
            <property>/sim/multiplay/lag/master</property>
            <binding>
                <command>dialog-apply</command>
                <object-name>master</object-name>
            </binding>
        </checkbox>

		<text>
          <row>1</row>
          <col>0</col>
          <halign>right</halign>
          <label>Lag adjustment:</label>
        </text>
        <slider>
          <row>1</row>
          <col>1</col>
          <name>lag-adjustment</name>
          <min>-0.1</min>
          <max>0.15</max>
          <step>0.001</step>
          <property>/sim/multiplay/lag/offset</property>
          <binding>
            <command>dialog-apply</command>
            <object-name>lag-adjustment</object-name>
          </binding>
        </slider>
        <text>
          <!--<visible>
            <property>/sim/multiplay/online</property>
          </visible> -->
          <row>1</row>
          <col>3</col>
          <halign>left</halign>
          <label>MMMMMMMMMMMMMMMMMM</label>
          <format>%.3f s</format>
          <property>/sim/multiplay/lag/offset</property>
          <live>true</live>
        </text>

        <text>
            <row>2</row>
            <col>0</col>
            <label>Apply to close mp</label>
            <halign>right</halign>
        </text>
        <checkbox>
            <row>2</row>
            <col>1</col>
            <colspan>2</colspan>
            <halign>left</halign>
            <name>apply-close</name>
            <property>/sim/multiplay/lag/apply-close</property>
            <binding>
                <command>dialog-apply</command>
                <object-name>apply-close</object-name>
            </binding>
        </checkbox>
        <slider>
          <row>2</row>
          <col>2</col>
          <name>Range</name>
          <min>1</min>
          <max>15</max>
          <step>0.1</step>
          <property>/sim/multiplay/lag/range</property>
          <binding>
            <command>dialog-apply</command>
            <object-name>range</object-name>
          </binding>
        </slider>
		<text>
          <!-- <visible>
            <property>/sim/multiplay/online</property>
          </visible> -->
          <row>2</row>
          <col>3</col>
          <halign>left</halign>
          <label>MMMMMMMMMMMMMMMMMMMMM</label>
          <format>%.1f nm</format>
          <property>/sim/multiplay/lag/range</property>
          <live>true</live>
        </text>

        <text>
            <row>3</row>
            <col>0</col>
            <label>Spectator mode</label>
            <halign>right</halign>
        </text>
        <checkbox>
            <row>3</row>
            <col>1</col>
            <colspan>2</colspan>
            <halign>left</halign>
            <name>spectator</name>
            <!-- <label>Hide replay sessions over MP (less annoying to other players)</label> -->
            <property>/sim/multiplay/lag/spectator</property>
            <binding>
                <command>dialog-apply</command>
                <object-name>spectator</object-name>
            </binding>
        </checkbox>
        <slider>
          <row>3</row>
          <col>2</col>
          <name>spectator-offset</name>
          <min>0</min>
          <max>1</max>
          <step>0.05</step>
          <property>/sim/multiplay/lag/spectator-offset</property>
          <binding>
            <command>dialog-apply</command>
            <object-name>spectator-offset</object-name>
          </binding>
        </slider>
		<text>
          <!-- <visible>
            <property>/sim/multiplay/online</property>
          </visible> -->
          <row>3</row>
          <col>3</col>
          <halign>left</halign>
          <label>MMMMMMMMMMMMMMMMMMMMM</label>
          <format>%.2f s</format>
          <property>/sim/multiplay/lag/spectator-offset</property>
          <live>true</live>
        </text>
    </group>

</PropertyList>