0x004C1AA2
| 365 | |
| 366 | // 0x004C1AA2 |
| 367 | static Window* create(CompanyId companyId) |
| 368 | { |
| 369 | Window* self = WindowManager::createWindow( |
| 370 | WindowType::vehicleList, |
| 371 | kWindowSize, |
| 372 | WindowFlags::lighterFrame, |
| 373 | getEvents()); |
| 374 | |
| 375 | self->setWidgets(_widgets); |
| 376 | self->number = enumValue(companyId); |
| 377 | self->owner = companyId; |
| 378 | self->frameNo = 0; |
| 379 | |
| 380 | auto skin = ObjectManager::get<InterfaceSkinObject>(); |
| 381 | self->setColour(WindowColour::secondary, skin->windowPlayerColor); |
| 382 | |
| 383 | disableUnavailableVehicleTypes(*self); |
| 384 | |
| 385 | return self; |
| 386 | } |
| 387 | |
| 388 | // 0x004C19DC |
| 389 | Window* open(CompanyId companyId, VehicleType type) |
no test coverage detected