* Update buttons to show the selection to the user. * @param spec The object spec of the selected object. */
| 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 | { |
no test coverage detected