This commit is contained in:
@@ -357,9 +357,11 @@ void PickerWindow::DrawWidget(const Rect &r, WidgetID widget) const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WID_PW_TYPE_NAME:
|
case WID_PW_TYPE_NAME: {
|
||||||
DrawString(r, this->callbacks.GetTypeName(this->callbacks.GetSelectedClass(), this->callbacks.GetSelectedType()), TC_GOLD, SA_CENTER);
|
StringID str = this->callbacks.GetTypeName(this->callbacks.GetSelectedClass(), this->callbacks.GetSelectedType());
|
||||||
|
if (str != INVALID_STRING_ID) DrawString(r, str, TC_GOLD, SA_CENTER);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1883,7 +1883,7 @@ struct BuildHouseWindow : public PickerWindow {
|
|||||||
PickerInvalidations pi(data);
|
PickerInvalidations pi(data);
|
||||||
if (pi.Test(PickerInvalidation::Position)) {
|
if (pi.Test(PickerInvalidation::Position)) {
|
||||||
UpdateSelectSize(spec);
|
UpdateSelectSize(spec);
|
||||||
this->house_info = GetHouseInformation(spec);
|
this->house_info = spec->enabled ? GetHouseInformation(spec) : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If house spec already has the protected flag, handle it automatically and disable the buttons. */
|
/* If house spec already has the protected flag, handle it automatically and disable the buttons. */
|
||||||
|
|||||||
Reference in New Issue
Block a user