1 #include "../Instrument.h" 5 Instrument(prmX, prmY, prmXScale, prmYScale, prmBus, prmLogger, prmDevice, prmFonts)
16 DrawTextW(L
"NO DATA IN BUFFER - USE \"SHIFT+S\" TO SCAN", 0, 0, 0, DT_NOCLIP, 0xFFA0A0A0);
23 DrawTextW(L
"SCAN IN PROGRESS", 0, 0, 0, DT_NOCLIP, 0xFFA0A0A0);
33 DrawTextW(str,
x, 00, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 2);
46 DrawTextW(str,
x, 30, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 0);
52 case VehicleType::C98: swprintf_s(column, 99, L
"C-98 MuVER");
break;
53 case VehicleType::E10: swprintf_s(column, 99, L
"E-10 Saint");
break;
54 case VehicleType::P13: swprintf_s(column, 99, L
"P-13 Prowler");
break;
55 case VehicleType::A4: swprintf_s(column, 99, L
"A-4 Wanderer");
break;
56 case VehicleType::C2: swprintf_s(column, 99, L
"C-2 Dasher");
break;
57 case VehicleType::T120: swprintf_s(column, 99, L
"T-120 Steerhead");
break;
58 case VehicleType::T121: swprintf_s(column, 99, L
"T-121 Steerhead");
break;
59 case VehicleType::E11: swprintf_s(column, 99, L
"E-11 Saint");
break;
60 case VehicleType::PODS_PAX: swprintf_s(column, 99, L
"Passenger");
break;
61 case VehicleType::PODS_CNST: swprintf_s(column, 99, L
"Construction");
break;
62 case VehicleType::PODS_CARGOAFT: swprintf_s(column, 99, L
"Cargo AFT");
break;
63 case VehicleType::PODS_FUEL: swprintf_s(column, 99, L
"Auxiliary Fuel");
break;
64 case VehicleType::PODS_CARGOTOP: swprintf_s(column, 99, L
"Cargo TOP");
break;
65 case VehicleType::PODS_MUNITIONS: swprintf_s(column, 99, L
"Munitions");
break;
66 case VehicleType::T27: swprintf_s(column, 99, L
"T-27 Mammoth");
break;
67 case VehicleType::C2A: swprintf_s(column, 99, L
"C-2A Dasher");
break;
68 case VehicleType::W6Manx: swprintf_s(column, 99, L
"W-6 Manx");
break;
69 case VehicleType::T19: swprintf_s(column, 99, L
"T-19 Stratomaster");
break;
70 default: swprintf_s(column, 99, L
"UNKNOWN ");
break;
72 swprintf_s(str, 99, L
" Type: %s", column);
73 DrawTextW(str,
x, 60, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
75 DrawTextW(str,
x, 70, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
84 DrawTextW(L
"Shift+C Cash",
x,
y += 15, 0, DT_NOCLIP, 0xFF00A0A0, 0);
88 DrawTextW(L
"Shift+F Fuel",
x,
y += 15, 0, DT_NOCLIP, 0xFF00A0A0, 0);
92 DrawTextW(L
"Shift+W Weapon",
x,
y += 15, 0, DT_NOCLIP, 0xFF00A0A0, 0);
95 DrawTextW(L
"Shift+L Load",
x,
y += 15, 0, DT_NOCLIP, 0xFF00A0A0, 0);
100 for (UINT i = 0; i < scan.
children.size(); i++)
105 swprintf_s(column, 99, L
"PODS%S ", child.
modeAC.
IVR);
107 swprintf_s(column, 99, L
"IVR %S ", child.
modeAC.
IVR);
109 DrawTextW(column,
x,
y, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 0);
127 DrawTextW(str, 200,
y += 10, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
133 DrawTextW(str, 200,
y += 10, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
140 case CargoLoadType::None: swprintf_s(column, 99, L
"None");
break;
141 case CargoLoadType::CargoRare: swprintf_s(column, 99, L
"Rare");
break;
142 case CargoLoadType::CargoFood: swprintf_s(column, 99, L
"Foodstuffs");
break;
143 case CargoLoadType::CargoCommon: swprintf_s(column, 99, L
"Common");
break;
144 case CargoLoadType::CargoFuelOre: swprintf_s(column, 99, L
"Fuel Ore");
break;
145 case CargoLoadType::CargoGoods: swprintf_s(column, 99, L
"Consumer");
break;
146 case CargoLoadType::CargoFab: swprintf_s(column, 99, L
"Fabricated");
break;
147 case CargoLoadType::CargoEnum: swprintf_s(column, 99, L
"Fuel");
break;
148 case CargoLoadType::Passengers: swprintf_s(column, 99, L
"Ticketed");
break;
149 case CargoLoadType::Colonists: swprintf_s(column, 99, L
"Laborers");
break;
150 case CargoLoadType::Prisoners: swprintf_s(column, 99, L
"Prisoners");
break;
151 case CargoLoadType::Residential: swprintf_s(column, 99, L
"Estate");
break;
152 case CargoLoadType::Mining: swprintf_s(column, 99, L
"Mine");
break;
153 case CargoLoadType::Farmstead: swprintf_s(column, 99, L
"Farmstead");
break;
154 case CargoLoadType::Township: swprintf_s(column, 99, L
"Township");
break;
155 case CargoLoadType::Airfield: swprintf_s(column, 99, L
"Airfield");
break;
156 case CargoLoadType::WeaponLongarms: swprintf_s(column, 99, L
"Longarms");
break;
157 default: swprintf_s(column, 99, L
"UNKNOWN");
break;
159 swprintf_s(str, 99, L
" Load Type: %s", column);
160 DrawTextW(str, 200,
y += 10, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
172 swprintf_s(str, 99, L
"Load Quantity: %s", column);
173 DrawTextW(str, 200,
y += 10, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
180 case 0: swprintf_s(column, 99, L
"Undeclared");
break;
181 case 1: swprintf_s(column, 99, L
"Deois Transit");
break;
182 case 8: swprintf_s(column, 99, L
"CPOC");
break;
183 case 9: swprintf_s(column, 99, L
"Easydock");
break;
184 default: swprintf_s(column, 99, L
"UNKNOWN");
break;
186 swprintf_s(str, 99, L
" Destination: %s", column);
187 DrawTextW(str, 200,
y += 10, 0, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255), 1);
194 if (!shift)
return false;
203 command.
name =
"RestorePage";
244 command.
name =
"TransferWeapon";
Scanner(int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
Nullable< float > fuel_tank
std::vector< Sscandata > children
std::vector< Command > commandStream
Nullable< float > weightLbs
Nullable< unsigned short > load_quantity
Nullable< short > load_dest
unsigned short temptarget
Sscan Get(USHORT vehicleId) const
Nullable< unsigned char > load_type
void AddToCallStack(const char *msg)
bool HandleKeyPress(short key, bool shift) override