diff --git a/Aircraft/ufo/ufo-set.xml b/Aircraft/ufo/ufo-set.xml index 77918caa4..c7a845c7f 100644 --- a/Aircraft/ufo/ufo-set.xml +++ b/Aircraft/ufo/ufo-set.xml @@ -108,6 +108,10 @@ Alt + mouse click move selected object(s) to new place + + Ctrl + Alt + mouse click + Print lat/lon/alt and landclass of mouse click position + g (gear) + click teleport to click position, looking at active object diff --git a/Aircraft/ufo/ufo.nas b/Aircraft/ufo/ufo.nas index 83df95fcc..619d5b59f 100644 --- a/Aircraft/ufo/ufo.nas +++ b/Aircraft/ufo/ufo.nas @@ -435,6 +435,17 @@ var modelmgr = { me.mouse_coord = mouse_coord; status_dialog.open(); adjust_dialog.center_sliders(); + + if (KbdAlt.getValue() and KbdCtrl.getValue()) { # Provide information on the selected point + var geod = geodinfo(me.mouse_coord.lat(), me.mouse_coord.lon()); + var landclass = string.join(" ", geod[1].names); + var str = sprintf("lat:%.4f lon:%.4f alt:%.0fm class(es): %s", + me.mouse_coord.lat(), me.mouse_coord.lon(), + me.mouse_coord.alt(), landclass); + gui.popupTip(str, 3); + print(str); + return; + } if (KbdAlt.getValue()) { # move active object here (and other selected ones along with it) (me.active == nil) and return;