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

Method BuildGroupList

src/company_gui.cpp:666–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 }
665
666 void BuildGroupList(CompanyID owner)
667 {
668 if (!this->groups.NeedRebuild()) return;
669
670 this->groups.clear();
671
672 if (this->livery_class >= LC_GROUP_RAIL) {
673 VehicleType vtype = (VehicleType)(this->livery_class - LC_GROUP_RAIL);
674 BuildGuiGroupList(this->groups, false, owner, vtype);
675 }
676
677 this->groups.RebuildDone();
678 }
679
680 void SetRows()
681 {

Callers 5

SetSelectedGroupMethod · 0.95
OnPaintMethod · 0.95
OnClickMethod · 0.95
OnInvalidateDataMethod · 0.95

Calls 4

BuildGuiGroupListFunction · 0.85
NeedRebuildMethod · 0.80
RebuildDoneMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected