mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#RANGE
* Added Instructor and RangeControl radio info on F10
This commit is contained in:
parent
d15c2be2d0
commit
bdbbdfe60e
@ -2667,6 +2667,26 @@ function RANGE:_DisplayRangeInfo( _unitname )
|
|||||||
text = text .. string.format( "Max strafing alt AGL: %s\n", tstrafemaxalt )
|
text = text .. string.format( "Max strafing alt AGL: %s\n", tstrafemaxalt )
|
||||||
text = text .. string.format( "# of strafe targets: %d\n", self.nstrafetargets )
|
text = text .. string.format( "# of strafe targets: %d\n", self.nstrafetargets )
|
||||||
text = text .. string.format( "# of bomb targets: %d\n", self.nbombtargets )
|
text = text .. string.format( "# of bomb targets: %d\n", self.nbombtargets )
|
||||||
|
if self.instructor then
|
||||||
|
local alive = "N/A"
|
||||||
|
if self.instructorrelayname then
|
||||||
|
local relay = UNIT:FindByName( self.instructorrelayname )
|
||||||
|
if relay then
|
||||||
|
alive = tostring( relay:IsAlive() )
|
||||||
|
end
|
||||||
|
end
|
||||||
|
text = text .. string.format( "Instructor %.3f MHz (Relay=%s)\n", self.instructorfreq, alive )
|
||||||
|
end
|
||||||
|
if self.rangecontrol then
|
||||||
|
local alive = "N/A"
|
||||||
|
if self.rangecontrolrelayname then
|
||||||
|
local relay = UNIT:FindByName( self.rangecontrolrelayname )
|
||||||
|
if relay then
|
||||||
|
alive = tostring( relay:IsAlive() )
|
||||||
|
end
|
||||||
|
end
|
||||||
|
text = text .. string.format( "Control %.3f MHz (Relay=%s)\n", self.rangecontrolfreq, alive )
|
||||||
|
end
|
||||||
text = text .. texthit
|
text = text .. texthit
|
||||||
text = text .. textbomb
|
text = text .. textbomb
|
||||||
text = text .. textdelay
|
text = text .. textdelay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user