(svn r17194) -Fix (r17175): Depot sell buttons did not raise again.

This commit is contained in:
alberth 2009-08-15 20:59:49 +00:00
parent 702da7d8ef
commit fe2fcace25

View File

@ -924,6 +924,18 @@ struct DepotWindow : Window {
_cursor.vehchain = false; _cursor.vehchain = false;
} }
virtual void OnTimeout()
{
if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL)) {
this->RaiseWidget(DEPOT_WIDGET_SELL);
this->InvalidateWidget(DEPOT_WIDGET_SELL);
}
if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL_CHAIN)) {
this->RaiseWidget(DEPOT_WIDGET_SELL_CHAIN);
this->InvalidateWidget(DEPOT_WIDGET_SELL_CHAIN);
}
}
virtual void OnResize(Point delta) virtual void OnResize(Point delta)
{ {
this->vscroll.cap += delta.y / (int)this->resize.step_height; this->vscroll.cap += delta.y / (int)this->resize.step_height;