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

Method BuildGroupList

src/group_gui.cpp:227–236  ·  view source on GitHub ↗

* (Re)Build the group list. * * @param owner The owner of the window */

Source from the content-addressed store, hash-verified

225 * @param owner The owner of the window
226 */
227 void BuildGroupList(Owner owner)
228 {
229 if (!this->groups.NeedRebuild()) return;
230
231 this->groups.clear();
232
233 BuildGuiGroupList(this->groups, true, owner, this->vli.vtype);
234
235 this->groups.RebuildDone();
236 }
237
238 /**
239 * Compute tiny_step_height and column_size

Callers 3

VehicleGroupWindowMethod · 0.95
OnPaintMethod · 0.95
SelectGroupMethod · 0.95

Calls 4

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

Tested by

no test coverage detected