| 142 | static const WindowEventList& getEvents(); |
| 143 | |
| 144 | Window* open() |
| 145 | { |
| 146 | auto window = OpenLoco::Ui::WindowManager::createWindow( |
| 147 | WindowType::titleMenu, |
| 148 | { (Ui::width() - kWW) / 2, Ui::height() - kWH - 25 }, |
| 149 | { kWW, kWH }, |
| 150 | WindowFlags::stickToFront | WindowFlags::transparent | WindowFlags::noBackground | WindowFlags::framedWidgets, |
| 151 | getEvents()); |
| 152 | |
| 153 | window->setWidgets(_widgets); |
| 154 | window->initScrollWidgets(); |
| 155 | |
| 156 | window->setColour(WindowColour::primary, AdvancedColour(Colour::mutedSeaGreen).translucent()); |
| 157 | window->setColour(WindowColour::secondary, AdvancedColour(Colour::mutedSeaGreen).translucent()); |
| 158 | window->var_846 = 0; |
| 159 | |
| 160 | return window; |
| 161 | } |
| 162 | |
| 163 | // 0x00438E0B |
| 164 | static void prepareDraw(Ui::Window& window) |
no test coverage detected