equal
deleted
inserted
replaced
617 this->HideWidget(ORDER_WIDGET_TIMETABLE_VIEW); |
617 this->HideWidget(ORDER_WIDGET_TIMETABLE_VIEW); |
618 } |
618 } |
619 this->FindWindowPlacementAndResize(desc); |
619 this->FindWindowPlacementAndResize(desc); |
620 } |
620 } |
621 |
621 |
|
622 virtual void OnInvalidateData(int data = 0) |
|
623 { |
|
624 /* Autoreplace replaced the vehicle */ |
|
625 this->vehicle = GetVehicle(this->window_number); |
|
626 } |
|
627 |
622 virtual void OnPaint() |
628 virtual void OnPaint() |
623 { |
629 { |
624 bool shared_orders = this->vehicle->IsOrderListShared(); |
630 bool shared_orders = this->vehicle->IsOrderListShared(); |
625 |
631 |
626 SetVScrollCount(this, this->vehicle->num_orders + 1); |
632 SetVScrollCount(this, this->vehicle->num_orders + 1); |