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

Method OnInit

src/picker_gui.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void PickerWindow::OnInit()
252{
253 this->badge_classes = GUIBadgeClasses(this->callbacks.GetFeature());
254 this->badge_filters = AddBadgeDropdownFilters(this, WID_PW_BADGE_FILTER, WID_PW_BADGE_FILTER, COLOUR_DARK_GREEN, this->callbacks.GetFeature());
255
256 this->widget_lookup.clear();
257 this->nested_root->FillWidgetLookup(this->widget_lookup);
258}
259
260void PickerWindow::Close(int data)
261{

Callers

nothing calls this directly

Calls 5

GUIBadgeClassesClass · 0.85
AddBadgeDropdownFiltersFunction · 0.85
GetFeatureMethod · 0.45
clearMethod · 0.45
FillWidgetLookupMethod · 0.45

Tested by

no test coverage detected