Class: WT21_MFD_Instrument
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:43
The WT21 MFD Instrument
Extends
WT21DisplayUnitFsInstrument
Constructors
Constructor
new WT21_MFD_Instrument(
instrument
):WT21_MFD_Instrument
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:105
Creates an instance of the WT21_MFD.
Parameters
Parameter | Type | Description |
---|---|---|
instrument | BaseInstrument | The base instrument. |
Returns
WT21_MFD_Instrument
Overrides
WT21DisplayUnitFsInstrument.constructor
Properties
displayUnitConfig
displayUnitConfig:
DisplayUnitConfigInterface
=DisplayUnitConfig.DEFAULT
Defined in: workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:24
Inherited from
WT21DisplayUnitFsInstrument.displayUnitConfig
displayUnitIndex
readonly
displayUnitIndex:WT21DisplayUnitIndex
Defined in: workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:34
The WT21 display unit index of this instrument
Inherited from
WT21DisplayUnitFsInstrument.displayUnitIndex
displayUnitType
readonly
displayUnitType:WT21DisplayUnitType
Defined in: workingtitle-instruments-wt21/shared/WT21DisplayUnitFsInstrument.ts:31
The WT21 display unit type of this instrument
Inherited from
WT21DisplayUnitFsInstrument.displayUnitType
instrument
readonly
instrument:BaseInstrument
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:105
The base instrument.
Inherited from
WT21DisplayUnitFsInstrument.instrument
Methods
onFlightStart()
onFlightStart():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:405
Returns
void
Inherit Doc
Overrides
WT21DisplayUnitFsInstrument.onFlightStart
onGameStateChanged()
onGameStateChanged(
oldState
,newState
):void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:411
Parameters
Parameter | Type |
---|---|
oldState | GameState |
newState | GameState |
Returns
void
Inherit Doc
Overrides
WT21DisplayUnitFsInstrument.onGameStateChanged
onInGame()
protected
onInGame():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:440
Callback for when the game state transitions to either briefing or in-game. This can be used as a "last chance" hook to initialize things that need to wait until a plane has loaded and everything is in a stable state.
Returns
void
onInteractionEvent()
onInteractionEvent(
args
):void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:460
A callback called when the instrument received a H event.
Parameters
Parameter | Type | Description |
---|---|---|
args | string [] | The H event and associated arguments, if any. |
Returns
void
Overrides
WT21DisplayUnitFsInstrument.onInteractionEvent
onSoundEnd()
onSoundEnd(
soundEventId
):void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:477
A callback for when sounds are done playing. This is needed to support the sound server.
Parameters
Parameter | Type | Description |
---|---|---|
soundEventId | Name_Z | The sound that got played. |
Returns
void
Overrides
WT21DisplayUnitFsInstrument.onSoundEnd
Update()
Update():
void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/MFD/WT21_MFD_Instrument.tsx:447
A callback called when the instrument gets a frame update.
Returns
void
Overrides
WT21DisplayUnitFsInstrument.Update