MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetButtons

Method SetButtons

src/industry_gui.cpp:348–352  ·  view source on GitHub ↗

Update status of the fund and display-chain widgets. */

Source from the content-addressed store, hash-verified

346
347 /** Update status of the fund and display-chain widgets. */
348 void SetButtons()
349 {
350 this->SetWidgetDisabledState(WID_DPI_FUND_WIDGET, this->selected_type != IT_INVALID && !this->enabled);
351 this->SetWidgetDisabledState(WID_DPI_DISPLAY_WIDGET, this->selected_type == IT_INVALID && this->enabled);
352 }
353
354 /**
355 * Build a string of cargo names with suffixes attached.

Callers 4

BuildIndustryWindowMethod · 0.95
OnClickMethod · 0.95
BuildIndustryWindowClass · 0.95
OnInvalidateDataMethod · 0.95

Calls 1

Tested by

no test coverage detected