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

Method SetCompanyMask

src/linkgraph/linkgraph_gui.cpp:439–444  ·  view source on GitHub ↗

* Set a new company mask and rebuild the cache. * @param company_mask New company mask. */

Source from the content-addressed store, hash-verified

437 * @param company_mask New company mask.
438 */
439void LinkGraphOverlay::SetCompanyMask(CompanyMask company_mask)
440{
441 this->company_mask = company_mask;
442 this->RebuildCache();
443 this->window->GetWidget<NWidgetBase>(this->widget_id)->SetDirty(this->window);
444}
445
446/** Make a number of rows with buttons for each company for the linkgraph legend window. */
447std::unique_ptr<NWidgetBase> MakeCompanyButtonRowsLinkGraphGUI()

Callers 2

UpdateLinksMethod · 0.80

Calls 3

RebuildCacheMethod · 0.95
SetDirtyMethod · 0.45

Tested by

no test coverage detected