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

Method UpdateButtons

src/object_gui.cpp:293–298  ·  view source on GitHub ↗

* Update buttons to show the selection to the user. * @param spec The object spec of the selected object. */

Source from the content-addressed store, hash-verified

291 * @param spec The object spec of the selected object.
292 */
293 void UpdateButtons(const ObjectSpec *spec)
294 {
295 this->GetWidget<NWidgetMatrix>(WID_BO_OBJECT_MATRIX)->SetClicked(_object_gui.sel_view);
296 this->UpdateSelectSize(spec);
297 this->SetDirty();
298 }
299
300 void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override
301 {

Callers 2

OnInvalidateDataMethod · 0.95
OnPlaceObjectAbortMethod · 0.95

Calls 3

UpdateSelectSizeMethod · 0.95
SetClickedMethod · 0.80
SetDirtyMethod · 0.45

Tested by

no test coverage detected