1
0
Fork 0

Add the Browser based moving map to the menubar

needs --httpd=nnnn on startup
This commit is contained in:
Torsten Dreyer 2014-09-12 21:55:42 +02:00
parent 2e53c6d119
commit fd720ac8bf
3 changed files with 14 additions and 0 deletions

View file

@ -67,6 +67,8 @@
<!-- Equipment menu --> <!-- Equipment menu -->
<equipment>Ausrüstung</equipment> <!-- English: "Equipment" --> <equipment>Ausrüstung</equipment> <!-- English: "Equipment" -->
<map>Karte</map> <!-- English: "Map" --> <map>Karte</map> <!-- English: "Map" -->
<map-canvas>Karte (Canvas)</map-canvas>
<map-browser>Karte (Im Browser)</map-browser>
<stopwatch>Stoppuhr</stopwatch> <!-- English: "Stopwatch" --> <stopwatch>Stoppuhr</stopwatch> <!-- English: "Stopwatch" -->
<fuel-and-payload>Treibstoff und Ladung</fuel-and-payload> <!-- English: "Fuel and Payload" --> <fuel-and-payload>Treibstoff und Ladung</fuel-and-payload> <!-- English: "Fuel and Payload" -->
<radio>Funkfrequenzen</radio> <!-- English: "Radio Settings" --> <radio>Funkfrequenzen</radio> <!-- English: "Radio Settings" -->

View file

@ -55,6 +55,7 @@
<equipment>Equipment</equipment> <equipment>Equipment</equipment>
<map>Map</map> <map>Map</map>
<map-canvas>Map (Canvas)</map-canvas> <map-canvas>Map (Canvas)</map-canvas>
<map-browser>Map (opens in browser)</map-browser>
<stopwatch>Stopwatch</stopwatch> <stopwatch>Stopwatch</stopwatch>
<fuel-and-payload>Fuel and Payload</fuel-and-payload> <fuel-and-payload>Fuel and Payload</fuel-and-payload>
<radio>Radio Settings</radio> <radio>Radio Settings</radio>

View file

@ -348,6 +348,17 @@
</binding> </binding>
</item> </item>
<item>
<name>map-browser</name>
<binding>
<command>nasal</command>
<script>
var _url = "http://localhost:" ~ getprop("/sim/http/options/listening-port") ~ "/gui/map/";
fgcommand("open-browser", props.Node.new({ "url": _url }));
</script>
</binding>
</item>
<item> <item>
<name>stopwatch</name> <name>stopwatch</name>