Skip to main content

WT21 PFD Plugins

Introduction

WT21 PFD plugins allow you to replace components as they are rendered and load custom CSS. PFD plugins must implement the WT21AvionicsPlugin interface.

Importing Libraries

PFD plugins can import and use code from the following framework libraries:

  • @microsoft/msfs-sdk
  • @microsoft/msfs-wt21-shared
  • @microsoft/msfs-wt21-pfd

When building your plugin, you should configure your build tools to consume the above libraries as global externals.

PFD Instruments Display

WT21 PFD plugins do not provide any functionality for rendering directly to the PFD, instead if you wish to render to the PFD you must use the onComponentCreating() function to hook into a component as it's being created and extend from there.