From 217dcb38fa5964326268880a4fbd8fdf2afe982f Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 12 Mar 2004 15:06:04 +0000 Subject: [PATCH] David Culp: Add clickable range selection for the radar and wxradar. Right now it is clickable only between 20 and 40 mile ranges, which should work for most uses. --- Aircraft/Instruments/radar.xml | 104 ++++++++++++++++++++++++++++-- Aircraft/Instruments/wxradar.xml | 106 +++++++++++++++++++++++++++++-- 2 files changed, 198 insertions(+), 12 deletions(-) diff --git a/Aircraft/Instruments/radar.xml b/Aircraft/Instruments/radar.xml index f1daa09c4..80ee123f0 100644 --- a/Aircraft/Instruments/radar.xml +++ b/Aircraft/Instruments/radar.xml @@ -18,14 +18,20 @@ - target1 + target1 - range 40 8 17 - - ai/models/aircraft[1]/radar/range-nm - 43 - + + + ai/models/aircraft[1]/radar/range-nm + 43 + + + /instrumentation/radar/range + 40 + + Aircraft/Instruments/Textures/radar_misc.rgb @@ -52,6 +58,48 @@ + + target1 - range 20 + 8 + 17 + + + + ai/models/aircraft[1]/radar/range-nm + 22 + + + /instrumentation/radar/range + 20 + + + + + Aircraft/Instruments/Textures/radar_misc.rgb + 0.0429687 + 0.8320312 + 0.0703125 + 0.8945312 + + + + x-shift + ai/models/aircraft[1]/radar/x-shift + 5.1 + + + y-shift + ai/models/aircraft[1]/radar/y-shift + 5.1 + + + rotation + ai/models/aircraft[1]/radar/rotation + + + + + frame 256 @@ -220,6 +268,50 @@ - + + + + + set range 40 + + -120 + -120 + 35 + 35 + + + /instrumentation/radar/range + 20 + + + + property-assign + /instrumentation/radar/range + 40 + + + + + set range 20 + + -120 + -120 + 35 + 35 + + + /instrumentation/radar/range + 40 + + + + property-assign + /instrumentation/radar/range + 20 + + + + + diff --git a/Aircraft/Instruments/wxradar.xml b/Aircraft/Instruments/wxradar.xml index b85f7abb0..d4f2de15b 100644 --- a/Aircraft/Instruments/wxradar.xml +++ b/Aircraft/Instruments/wxradar.xml @@ -18,14 +18,20 @@ - target1 + target1 - range 40 20 13 - - ai/models/thunderstorm[1]/radar/range-nm - 43 - + + + ai/models/thunderstorm[1]/radar/range-nm + 43 + + + /instrumentation/radar/range + 40 + + Aircraft/Instruments/Textures/radar_misc.rgb @@ -53,6 +59,48 @@ + + target1 - range 20 + 20 + 13 + + + + ai/models/thunderstorm[1]/radar/range-nm + 22 + + + /instrumentation/radar/range + 20 + + + + + Aircraft/Instruments/Textures/radar_misc.rgb + 0.078125 + 0.605468 + 0.414062 + 0.8125 + + + + x-shift + ai/models/thunderstorm[1]/radar/x-shift + 5.1 + + + y-shift + ai/models/thunderstorm[1]/radar/y-shift + 5.1 + + + rotation + ai/models/thunderstorm[1]/radar/rotation + -90 + + + + frame 256 @@ -221,6 +269,52 @@ - + + + + + set range 40 + + -120 + -120 + 35 + 35 + + + /instrumentation/radar/range + 20 + + + + property-assign + /instrumentation/radar/range + 40 + + + + + set range 20 + + -120 + -120 + 35 + 35 + + + /instrumentation/radar/range + 40 + + + + property-assign + /instrumentation/radar/range + 20 + + + + + + + \ No newline at end of file