2011-06-13 18:48:09 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
<name>terrasync</name>
|
2022-09-28 14:43:50 +00:00
|
|
|
|
2013-10-24 21:47:22 +00:00
|
|
|
<nasal>
|
2022-09-28 14:43:50 +00:00
|
|
|
<open>
|
|
|
|
<![CDATA[
|
|
|
|
var computeStatusText = func {
|
|
|
|
# first, check if the system is actually enabled
|
|
|
|
if (!getprop('/sim/terrasync/enabled'))
|
|
|
|
return "Downloading disabled";
|
|
|
|
|
|
|
|
# only happens if terrasync failed to activate, so
|
|
|
|
# indicates a problem
|
|
|
|
if (!getprop('/sim/terrasync/active'))
|
|
|
|
return "Automatic download inactive";
|
|
|
|
|
|
|
|
# we need to suggest some remedial action here!
|
|
|
|
if (getprop('/sim/terrasync/stalled'))
|
|
|
|
return "Downloading has stalled. Check your network connection and settings";
|
|
|
|
|
|
|
|
if (getprop('/sim/terrasync/busy')) {
|
|
|
|
var kbytesSec = getprop('/sim/terrasync/transfer-rate-bytes-sec') / 1024;
|
|
|
|
return sprintf('Downloading: %dKB/sec', int(kbytesSec));
|
|
|
|
}
|
|
|
|
|
|
|
|
# we are enabled but not busy, so idle
|
|
|
|
return "Ready";
|
|
|
|
}
|
|
|
|
|
|
|
|
# timer function, update summary status string
|
|
|
|
var updateStatusText = func {
|
|
|
|
var s = computeStatusText();
|
|
|
|
setprop("/sim/gui/dialogs/terrasync/status", s);
|
|
|
|
|
|
|
|
var msg = "";
|
|
|
|
if (getprop("/sim/terrasync/available")) {
|
|
|
|
if (getprop("/sim/terrasync/enabled"))
|
|
|
|
msg = "Automatic download active; monitor your bandwidth on metered connection.";
|
|
|
|
} else {
|
|
|
|
if (getprop("/sim/terrasync/intialized"))
|
|
|
|
msg = "Automatic download not active.";
|
|
|
|
else
|
|
|
|
msg = "Automatic download not supported.";
|
|
|
|
}
|
|
|
|
setprop("/sim/terrasync/ui-message-node", msg);
|
|
|
|
}
|
|
|
|
|
|
|
|
# the TerraSync properties of interest are tied, so we can't use a
|
|
|
|
# listener. Let's poll while the dialog is open; not ideal but not
|
|
|
|
# a major problem.
|
|
|
|
var statusTimer = maketimer(0.4, updateStatusText);
|
|
|
|
statusTimer.start();
|
|
|
|
updateStatusText();
|
|
|
|
|
|
|
|
setprop("/sim/gui/dialogs/terrasync/display-mode", "0");
|
|
|
|
]]>
|
|
|
|
</open>
|
2013-10-24 21:47:22 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<close>
|
|
|
|
statusTimer.stop();
|
|
|
|
statusTimer = nil;
|
|
|
|
</close>
|
|
|
|
|
2013-10-24 21:47:22 +00:00
|
|
|
</nasal>
|
2022-09-28 14:43:50 +00:00
|
|
|
|
2011-06-13 18:48:09 +00:00
|
|
|
<layout>vbox</layout>
|
2022-09-28 14:43:50 +00:00
|
|
|
<default-padding>3</default-padding>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2022-09-28 14:43:50 +00:00
|
|
|
<default-padding>1</default-padding>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2011-06-13 18:48:09 +00:00
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
2019-04-08 12:16:34 +00:00
|
|
|
<label>Automatic Download of Scenery and Data (TerraSync)</label>
|
2011-06-13 18:48:09 +00:00
|
|
|
</text>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<empty><stretch>1</stretch></empty>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
2012-08-27 22:21:50 +00:00
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
2022-09-28 14:43:50 +00:00
|
|
|
<padding>5</padding>
|
2012-08-27 22:21:50 +00:00
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<group>
|
2022-09-28 14:43:50 +00:00
|
|
|
<layout>hbox</layout>
|
2013-10-24 21:47:22 +00:00
|
|
|
<halign>left</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
|
|
|
<text>
|
2022-09-28 14:43:50 +00:00
|
|
|
<name>message</name>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.4</green>
|
|
|
|
<blue>0.4</blue>
|
|
|
|
</color>
|
|
|
|
<property>/sim/terrasync/ui-message-node</property>
|
|
|
|
<live>true</live>
|
2015-05-03 16:13:50 +00:00
|
|
|
</text>
|
2022-09-28 14:43:50 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<name>terrasync-enabled</name>
|
|
|
|
<halign>left</halign>
|
2013-10-24 21:47:22 +00:00
|
|
|
<property>/sim/terrasync/enabled</property>
|
2019-04-08 12:16:34 +00:00
|
|
|
<label>Enable automatic scenery download</label>
|
2015-05-03 16:13:50 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>terrasync-enabled</object-name>
|
|
|
|
</binding>
|
|
|
|
<enable>
|
|
|
|
<not-equals>
|
|
|
|
<property>/sim/terrasync/scenery-dir</property>
|
|
|
|
<value></value>
|
|
|
|
</not-equals>
|
|
|
|
</enable>
|
|
|
|
</checkbox>
|
2022-09-28 14:43:50 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>left</halign>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<!-- only for a gap -->
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<checkbox>
|
|
|
|
<name>ai-data-enabled</name>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/terrasync/ai-data-enabled</property>
|
2019-04-08 12:16:34 +00:00
|
|
|
<label>Update AI Traffic during FG start</label>
|
2015-05-03 16:13:50 +00:00
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>ai-data-enabled</object-name>
|
|
|
|
</binding>
|
|
|
|
<enable>
|
2022-09-28 14:43:50 +00:00
|
|
|
<property>/sim/terrasync/enabled</property>
|
|
|
|
<property>/sim/traffic-manager/enabled</property>
|
2015-05-03 16:13:50 +00:00
|
|
|
</enable>
|
|
|
|
</checkbox>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2019-04-08 12:16:34 +00:00
|
|
|
<button>
|
|
|
|
<legend>Update Now</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<enable>
|
2022-09-28 14:43:50 +00:00
|
|
|
<property>/sim/terrasync/enabled</property>
|
|
|
|
<property>/sim/traffic-manager/enabled</property>
|
|
|
|
<property>/sim/terrasync/ai-data-enabled</property>
|
2019-04-08 12:16:34 +00:00
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/terrasync/ai-data-enabled</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/terrasync/ai-data-update-now</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<!-- <checkbox>
|
2015-05-03 16:13:50 +00:00
|
|
|
<name>other-data-enabled</name>
|
|
|
|
<halign>left</halign>
|
|
|
|
<property>/sim/terrasync/other-data-enabled</property>
|
|
|
|
<label>Download other data files</label>
|
|
|
|
<live>true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<object-name>other-data-enabled</object-name>
|
|
|
|
</binding>
|
|
|
|
<enable>
|
|
|
|
<property>/sim/terrasync/enabled</property>
|
|
|
|
</enable>
|
2022-09-28 14:43:50 +00:00
|
|
|
</checkbox> -->
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<halign>center</halign>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<text>
|
|
|
|
<name>warning_text</name>
|
|
|
|
<color>
|
|
|
|
<red>1.0</red>
|
|
|
|
<green>0.4</green>
|
|
|
|
<blue>0.4</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
<label/>
|
|
|
|
</text>
|
|
|
|
</group>
|
2022-09-28 14:43:50 +00:00
|
|
|
</group>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
<default-padding>5</default-padding>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2011-06-13 18:48:09 +00:00
|
|
|
<halign>left</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend>Information</legend>
|
2022-09-28 14:43:50 +00:00
|
|
|
<equal>true</equal>
|
2015-05-03 16:13:50 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/gui/dialogs/terrasync/display-mode</property>
|
|
|
|
<value>0</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2022-09-28 14:43:50 +00:00
|
|
|
<legend>Log</legend>
|
|
|
|
<equal>true</equal>
|
2015-05-03 16:13:50 +00:00
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>/sim/gui/dialogs/terrasync/display-mode</property>
|
|
|
|
<value>1</value>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- 'tabbed' group controlled by display-mode property -->
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2011-06-13 18:48:09 +00:00
|
|
|
<halign>left</halign>
|
|
|
|
|
2015-05-03 16:13:50 +00:00
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<halign>fill</halign>
|
|
|
|
<valign>fill</valign>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<halign>left</halign>
|
|
|
|
<valign>top</valign>
|
|
|
|
<equal>false</equal>
|
|
|
|
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/gui/dialogs/terrasync/display-mode</property>
|
|
|
|
<value>0</value>
|
|
|
|
</equals>
|
|
|
|
</visible>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
2020-06-28 00:02:17 +00:00
|
|
|
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Status:</label>
|
|
|
|
<live>true</live>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>1</col>
|
2015-05-03 16:13:50 +00:00
|
|
|
<colspan>2</colspan>
|
|
|
|
|
|
|
|
<halign>left</halign>
|
2020-06-28 00:02:17 +00:00
|
|
|
<!-- status text is generated by Nasal dynamically -->
|
2015-05-03 16:13:50 +00:00
|
|
|
<property>/sim/gui/dialogs/terrasync/status</property>
|
|
|
|
<live>true</live>
|
2020-06-28 00:02:17 +00:00
|
|
|
<halign>right</halign>
|
2015-05-03 16:13:50 +00:00
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>KBytes downloaded:</label>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<format>%d</format>
|
|
|
|
<property>/sim/terrasync/downloaded-kbytes</property>
|
|
|
|
<live>true</live>
|
|
|
|
<halign>right</halign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>2</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Processed elements:</label>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>2</row>
|
|
|
|
<col>1</col>
|
|
|
|
<format>%s</format>
|
|
|
|
<property>/sim/terrasync/update-count</property>
|
|
|
|
<live>true</live>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<halign>right</halign>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>3</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Processed scenery tiles:</label>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>3</row>
|
|
|
|
<col>1</col>
|
|
|
|
<format>%s</format>
|
|
|
|
<property>/sim/terrasync/tile-count</property>
|
|
|
|
<live>true</live>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<halign>right</halign>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
2020-06-28 00:02:17 +00:00
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<row>4</row>
|
|
|
|
<col>0</col>
|
|
|
|
<label>Number of errors:</label>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>4</row>
|
|
|
|
<col>1</col>
|
|
|
|
<format>%s</format>
|
|
|
|
<property>/sim/terrasync/error-count</property>
|
|
|
|
<live>true</live>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<halign>right</halign>
|
|
|
|
<color>
|
|
|
|
<red>0.7</red>
|
|
|
|
<green>0.7</green>
|
|
|
|
<blue>0.7</blue>
|
|
|
|
<alpha>1</alpha>
|
|
|
|
</color>
|
|
|
|
</text>
|
2015-05-03 16:13:50 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<loglist>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
|
|
|
|
<visible>
|
|
|
|
<equals>
|
|
|
|
<property>/sim/gui/dialogs/terrasync/display-mode</property>
|
|
|
|
<value>1</value>
|
|
|
|
</equals>
|
|
|
|
</visible>
|
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<halign>fill</halign>
|
|
|
|
<valign>fill</valign>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
<pref-width>600</pref-width>
|
2015-05-03 16:13:50 +00:00
|
|
|
<pref-height>300</pref-height>
|
|
|
|
<logclass>terrasync</logclass>
|
|
|
|
</loglist>
|
|
|
|
</group>
|
2013-02-09 11:34:44 +00:00
|
|
|
</group> <!-- end of tabbed group -->
|
2022-09-28 14:43:50 +00:00
|
|
|
</group>
|
2013-02-09 11:34:44 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<hrule/>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>3</default-padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<button>
|
|
|
|
<legend>Close</legend>
|
|
|
|
<equal>true</equal>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2011-06-13 18:48:09 +00:00
|
|
|
|
2022-09-28 14:43:50 +00:00
|
|
|
<empty><stretch>true</stretch></empty>
|
2012-08-27 22:21:50 +00:00
|
|
|
</group>
|
|
|
|
|
2011-06-13 18:48:09 +00:00
|
|
|
</PropertyList>
|