mirror of https://github.com/OpenTTD/OpenTTD
(svn r25283) -Add: When opening the object-build window, make the selected object visible again in the selector (sbr).
parent
4bdf33a1df
commit
4037251c82
|
@ -82,6 +82,7 @@ public:
|
||||||
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(WID_BO_SELECT_MATRIX);
|
NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(WID_BO_SELECT_MATRIX);
|
||||||
matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL));
|
matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL));
|
||||||
matrix->SetCount(ObjectClass::Get(_selected_object_class)->GetUISpecCount());
|
matrix->SetCount(ObjectClass::Get(_selected_object_class)->GetUISpecCount());
|
||||||
|
if (_selected_object_index != -1) matrix->SetClicked(_selected_object_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~BuildObjectWindow()
|
virtual ~BuildObjectWindow()
|
||||||
|
|
Loading…
Reference in New Issue