* Constructor for the window. * @param desc The description of the window. * @param slot The company we're changing the settings for. */
| 304 | * @param slot The company we're changing the settings for. |
| 305 | */ |
| 306 | ScriptSettingsWindow(WindowDesc &desc, CompanyID slot) : Window(desc), slot(slot) |
| 307 | { |
| 308 | this->CreateNestedTree(); |
| 309 | this->vscroll = this->GetScrollbar(WID_SCRS_SCROLLBAR); |
| 310 | this->FinishInitNested(this->slot); // Initializes 'this->line_height' as side effect. |
| 311 | |
| 312 | this->OnInvalidateData(); |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * Rebuilds the list of visible settings. AI settings with the flag |
nothing calls this directly
no test coverage detected