603bdb6094
- vfrmap - wind labels more compact - vfrmap - default with transparency - vfrstarter - remember display settings on restarts - addon-main - show vfrstarter when was shown on latest flight
195 lines
5.2 KiB
XML
195 lines
5.2 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
<name>vfrmap</name>
|
|
<layout>vbox</layout>
|
|
<resizable>true</resizable>
|
|
<modal>false</modal>
|
|
<x>5</x>
|
|
<y>5</y>
|
|
<default-padding>3</default-padding>
|
|
|
|
<color>
|
|
<alpha type="float">0.7</alpha>
|
|
</color>
|
|
|
|
<nasal>
|
|
<open>
|
|
var mapDialog = cmdarg();
|
|
var setTransparency = func(updateDialog){
|
|
var alpha = (getprop("/gui/map/transparent") or 0);
|
|
mapDialog.getNode("color/alpha").setValue(1-alpha*0.3);
|
|
if (updateDialog)
|
|
{
|
|
var n = props.Node.new({ "dialog-name": "vfrmap" });
|
|
fgcommand("dialog-close", n);
|
|
fgcommand("dialog-show", n);
|
|
}
|
|
}
|
|
|
|
var reinit = func() {
|
|
setTransparency(1);
|
|
}
|
|
|
|
var transparency_listener = setlistener("/gui/map/transparent", reinit, 0, 0);
|
|
</open>
|
|
|
|
<close>
|
|
removelistener(transparency_listener);
|
|
</close>
|
|
</nasal>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<default-padding>1</default-padding>
|
|
|
|
<button>
|
|
<pref-width>48</pref-width>
|
|
<pref-height>24</pref-height>
|
|
<legend>config</legend>
|
|
<keynum>27</keynum>
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
<command>dialog-show</command>
|
|
<dialog-name>vfrmap-settings</dialog-name>
|
|
</binding>
|
|
</button>
|
|
<button>
|
|
<name>zoomout</name>
|
|
<legend>-</legend>
|
|
<pref-width>22</pref-width>
|
|
<pref-height>22</pref-height>
|
|
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/gui/map/zoom</property>
|
|
<min>0</min>
|
|
<step>-1</step>
|
|
</binding>
|
|
</button>
|
|
|
|
<text>
|
|
<label>M</label>
|
|
<pref-width>16</pref-width>
|
|
<format>%d</format>
|
|
<property>/gui/map/zoom</property>
|
|
<live>true</live>
|
|
</text>
|
|
|
|
<button>
|
|
<name>zoomin</name>
|
|
<legend>+</legend>
|
|
<pref-width>22</pref-width>
|
|
<pref-height>22</pref-height>
|
|
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/gui/map/zoom</property>
|
|
<step>1</step>
|
|
<max>12</max>
|
|
</binding>
|
|
</button>
|
|
|
|
<button>
|
|
<name>center_aircraft</name>
|
|
<legend>C</legend>
|
|
<pref-width>22</pref-width>
|
|
<pref-height>22</pref-height>
|
|
|
|
<binding>
|
|
<command>property-toggle</command>
|
|
<property>/gui/map/centre-on-aircraft</property>
|
|
</binding>
|
|
</button>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
<text>
|
|
<label>Map</label>
|
|
</text>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
<button>
|
|
<pref-width>22</pref-width>
|
|
<pref-height>22</pref-height>
|
|
<legend>X</legend>
|
|
<keynum>27</keynum>
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
<command>dialog-close</command>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<stretch>true</stretch>
|
|
<halign>fill</halign>
|
|
|
|
<group>
|
|
<layout>vbox</layout>
|
|
<stretch>true</stretch>
|
|
|
|
<map>
|
|
<halign>fill</halign>
|
|
<valign>fill</valign>
|
|
<stretch>true</stretch>
|
|
<pref-height>200</pref-height>
|
|
<pref-width>300</pref-width>
|
|
<property>/gui/map</property>
|
|
</map>
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<default-padding>2</default-padding>
|
|
<text>
|
|
<label>MMMMM</label>
|
|
<format>%s</format>
|
|
<property>/autopilot/route-manager/wp[0]/id</property>
|
|
<live>true</live>
|
|
</text>
|
|
<text>
|
|
<label>MMMMM</label>
|
|
<format>B %.0f</format>
|
|
<property>/autopilot/route-manager/wp[0]/true-bearing-deg</property>
|
|
<live>true</live>
|
|
</text>
|
|
<text>
|
|
<label>MMMMM</label>
|
|
<format>D %.2f nm</format>
|
|
<property>/autopilot/route-manager/wp[0]/dist</property>
|
|
<live>true</live>
|
|
</text>
|
|
<text>
|
|
<label>MMMMM</label>
|
|
<format>ETA %s</format>
|
|
<property>/autopilot/route-manager/wp[0]/eta</property>
|
|
<live>true</live>
|
|
</text>
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<default-padding>2</default-padding>
|
|
<text>
|
|
<label>MMM</label>
|
|
<format>W %.0f</format>
|
|
<property>/environment/wind-from-heading-deg</property>
|
|
<live>true</live>
|
|
</text>
|
|
<text>
|
|
<label>MM</label>
|
|
<format>/%.0f</format>
|
|
<property>/environment/wind-speed-kt</property>
|
|
<live>true</live>
|
|
</text>
|
|
</group>
|
|
</group>
|
|
</PropertyList>
|