* * rct2: 0x006BA305 */
| 331 | * rct2: 0x006BA305 |
| 332 | */ |
| 333 | WindowBase* SignOpen(WindowNumber number) |
| 334 | { |
| 335 | auto* windowMgr = GetWindowManager(); |
| 336 | auto* w = static_cast<SignWindow*>(windowMgr->BringToFrontByNumber(WindowClass::banner, number)); |
| 337 | |
| 338 | if (w != nullptr) |
| 339 | return w; |
| 340 | |
| 341 | w = windowMgr->Create<SignWindow>(WindowClass::banner, kWindowSize, {}); |
| 342 | |
| 343 | if (w == nullptr) |
| 344 | return nullptr; |
| 345 | |
| 346 | bool result = w->initialise(number, false); |
| 347 | if (result != true) |
| 348 | return nullptr; |
| 349 | |
| 350 | return w; |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * |
no test coverage detected