equal
deleted
inserted
replaced
959 this->hscroll.cap += delta.x / (int)this->resize.step_width; |
959 this->hscroll.cap += delta.x / (int)this->resize.step_width; |
960 this->widget[DEPOT_WIDGET_MATRIX].data = (this->vscroll.cap << 8) + (this->type == VEH_TRAIN ? 1 : this->hscroll.cap); |
960 this->widget[DEPOT_WIDGET_MATRIX].data = (this->vscroll.cap << 8) + (this->type == VEH_TRAIN ? 1 : this->hscroll.cap); |
961 ResizeDepotButtons(this); |
961 ResizeDepotButtons(this); |
962 } |
962 } |
963 |
963 |
964 virtual bool OnCTRLStateChange() |
964 virtual EventState OnCTRLStateChange() |
965 { |
965 { |
966 if (this->sel != INVALID_VEHICLE) { |
966 if (this->sel != INVALID_VEHICLE) { |
967 _cursor.vehchain = _ctrl_pressed; |
967 _cursor.vehchain = _ctrl_pressed; |
968 this->InvalidateWidget(DEPOT_WIDGET_MATRIX); |
968 this->InvalidateWidget(DEPOT_WIDGET_MATRIX); |
969 } |
969 } |
970 |
970 |
971 return true; |
971 return ES_HANDLED; |
972 } |
972 } |
973 }; |
973 }; |
974 |
974 |
975 static void DepotSellAllConfirmationCallback(Window *win, bool confirmed) |
975 static void DepotSellAllConfirmationCallback(Window *win, bool confirmed) |
976 { |
976 { |