1 #include "../Instrument.h" 18 DWORD vsiTextColor = 0xFF00FF00;
19 DWORD vsiBackColor = 0xFF000000;
20 DWORD altTextColor = 0xFF00FF00;
21 DWORD altBackColor = 0xFF000000;
32 vsiBackColor = 0xFF00FF00;
33 vsiTextColor = 0xFF000000;
38 altBackColor = 0xFF00FF00;
39 altTextColor = 0xFF000000;
43 DWORD hdgTextColor = 0xFF00FF00;
44 DWORD hdgBackColor = 0xFF000000;
57 hdgBackColor = 0xFF00FF00;
58 hdgTextColor = 0xFF000000;
61 DWORD apTextColor = 0xFF00FF00;
62 DWORD apBackColor = 0xFF000000;
74 apTextColor = 0xFF000000;
75 apBackColor = 0xFF00FF00;
78 apTextColor = 0xFFFFFFFF;
80 apTextColor = 0xFF000000;
83 DrawTextW(L
"→", 129 - 26, 33 + 9, DT_NOCLIP, 0xFF00FF00, 2,
"Autopilot");
95 DrawTextW(L
"AP", 129 + 27, 33, DT_NOCLIP, apTextColor, 1,
"Autopilot");
97 DrawTextW(L
"AT", 129 + 27, 63, DT_NOCLIP, apTextColor, 1,
"Autothrottle");
121 DrawTextW(msg, 504 + 12, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"VerticalSpeedSelected");
123 DrawTextW(L
"VS", 504 + 27, 33, DT_NOCLIP, vsiTextColor, 1,
"VerticalSpeedSelected");
147 swprintf_s(msg, 99, L
"%3.0f", wholealt);
148 DrawTextW(msg, 370 + 6, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"AltitudeSelected");
151 if (fractalt >= 1000.0f) fractalt = 0.0f;
152 swprintf_s(msg, 99, L
"%03.0f", fractalt);
153 DrawTextW(msg, 370 + 46, 63 + 5, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 0,
"AltitudeSelected");
157 DrawTextW(L
"ALT", 370 + 21, 33, DT_NOCLIP, altTextColor, 1,
"AltitudeSelected");
161 DrawTextW(L
"FPA", 370 + 21, 33, DT_NOCLIP, altTextColor, 1,
"AltitudeSelected");
165 DrawTextW(L
"APPR", 370 + 16, 33, DT_NOCLIP, altTextColor, 1,
"AltitudeSelected");
170 DrawTextW(L
"ALT", 370 + 21, 3, DT_NOCLIP, 0xFFFFFFFF, 1,
"AltitudeSelected");
174 DrawTextW(L
"G/S", 370 + 21, 3, DT_NOCLIP, 0xFFFFFFFF, 1,
"AltitudeSelected");
190 DrawTextW(msg, 245 + 21, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"HeadingSelected");
192 DrawTextW(L
"HDG", 245 + 21, 33, DT_NOCLIP, hdgTextColor, 1,
"HeadingSelected");
197 DrawTextW(msg, 245 + 21, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"RollSelected");
199 DrawTextW(L
"ROLL", 245 + 16, 33, DT_NOCLIP, hdgTextColor, 1,
"RollSelected");
204 DrawTextW(msg, 245 + 21, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"NavSelected");
206 DrawTextW(L
"LNAV", 245 + 16, 33, DT_NOCLIP, hdgTextColor, 1,
"NavSelected");
211 DrawTextW(msg, 245 + 21, 63, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 1.0f, 1.0f), 1,
"NavSelected");
213 DrawTextW(L
"APPR", 245 + 16, 33, DT_NOCLIP, hdgTextColor, 1,
"NavSelected");
218 DrawTextW(L
"LOC", 245 + 21, 3, DT_NOCLIP, 0xFFFFFFFF, 1,
"NavSelected");
virtual void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip)
Bus::Afcs::VerticalModes oldActiveVerticalMode
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
enum Bus::Afcs::LateralModes CurrentLateralMode
Bus::Afcs::LateralModes oldActiveLateralMode
void Render(float fElapsed) override
Abstract base class for instrumentation By definition, instruments don't do any of the work (they don...
std::string pathAndFilename
enum Bus::Afcs::VerticalModes StandbyVerticalMode
enum Bus::Afcs::VerticalModes CurrentVerticalMode
FlightModeAnnunciator(int prmX, int prmY, float prmXScale, float prmYScale)
enum Bus::Afcs::LateralModes StandbyLateralMode
void Initialize(Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int prmScreenHeight, int prmElementX, int prmElementY, bool prmFlip)