mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r17194) -Fix (r17175): Depot sell buttons did not raise again.
This commit is contained in:
parent
702da7d8ef
commit
fe2fcace25
@ -924,6 +924,18 @@ struct DepotWindow : Window {
|
||||
_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)
|
||||
{
|
||||
this->vscroll.cap += delta.y / (int)this->resize.step_height;
|
||||
|
Loading…
Reference in New Issue
Block a user