Add the Browser based moving map to the menubar
needs --httpd=nnnn on startup
This commit is contained in:
parent
2e53c6d119
commit
fd720ac8bf
3 changed files with 14 additions and 0 deletions
|
@ -67,6 +67,8 @@
|
|||
<!-- Equipment menu -->
|
||||
<equipment>Ausrüstung</equipment> <!-- English: "Equipment" -->
|
||||
<map>Karte</map> <!-- English: "Map" -->
|
||||
<map-canvas>Karte (Canvas)</map-canvas>
|
||||
<map-browser>Karte (Im Browser)</map-browser>
|
||||
<stopwatch>Stoppuhr</stopwatch> <!-- English: "Stopwatch" -->
|
||||
<fuel-and-payload>Treibstoff und Ladung</fuel-and-payload> <!-- English: "Fuel and Payload" -->
|
||||
<radio>Funkfrequenzen</radio> <!-- English: "Radio Settings" -->
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<equipment>Equipment</equipment>
|
||||
<map>Map</map>
|
||||
<map-canvas>Map (Canvas)</map-canvas>
|
||||
<map-browser>Map (opens in browser)</map-browser>
|
||||
<stopwatch>Stopwatch</stopwatch>
|
||||
<fuel-and-payload>Fuel and Payload</fuel-and-payload>
|
||||
<radio>Radio Settings</radio>
|
||||
|
|
|
@ -348,6 +348,17 @@
|
|||
</binding>
|
||||
</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>
|
||||
<name>stopwatch</name>
|
||||
|
|
Loading…
Reference in a new issue