|
@@ -389,13 +389,13 @@ struct RefitWindow : public Window {
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
virtual void OnResize(Point new_size, Point delta)
|
|
|
virtual void OnResize(Point delta)
|
|
|
{
|
|
|
this->vscroll.cap += delta.y / (int)this->resize.step_height;
|
|
|
this->widget[3].data = (this->vscroll.cap << 8) + 1;
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -1149,13 +1149,13 @@ struct VehicleListWindow : public BaseVe
|
|
|
|
|
|
DEBUG(misc, 3, "Periodic resort %d list company %d at station %d", this->vehicle_type, this->owner, station);
|
|
|
this->SetDirty();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
virtual void OnResize(Point new_size, Point delta)
|
|
|
virtual void OnResize(Point delta)
|
|
|
{
|
|
|
this->vscroll.cap += delta.y / (int)this->resize.step_height;
|
|
|
this->widget[VLW_WIDGET_LIST].data = (this->vscroll.cap << 8) + 1;
|
|
|
}
|
|
|
|
|
|
virtual void OnInvalidateData(int data)
|
|
@@ -1572,13 +1572,13 @@ struct VehicleDetailsWindow : Window {
|
|
|
|
|
|
if (str == NULL) return;
|
|
|
|
|
|
DoCommandP(0, this->window_number, 0, CMD_RENAME_VEHICLE | CMD_MSG(_name_vehicle_error[GetVehicle(this->window_number)->type]), NULL, str);
|
|
|
}
|
|
|
|
|
|
virtual void OnResize(Point new_size, Point delta)
|
|
|
virtual void OnResize(Point delta)
|
|
|
{
|
|
|
if (delta.x != 0) ResizeButtons(this, VLD_WIDGET_DETAILS_CARGO_CARRIED, VLD_WIDGET_DETAILS_TOTAL_CARGO);
|
|
|
if (delta.y == 0) return;
|
|
|
|
|
|
this->vscroll.cap += delta.y / 14;
|
|
|
this->widget[VLD_WIDGET_MIDDLE_DETAILS].data = (this->vscroll.cap << 8) + 1;
|
|
@@ -2034,13 +2034,13 @@ struct VehicleViewWindow : Window {
|
|
|
assert(v->type == VEH_TRAIN);
|
|
|
DoCommandP(v->tile, v->index, 0, CMD_FORCE_TRAIN_PROCEED | CMD_MSG(STR_8862_CAN_T_MAKE_TRAIN_PASS_SIGNAL));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
virtual void OnResize(Point new_size, Point delta)
|
|
|
virtual void OnResize(Point delta)
|
|
|
{
|
|
|
this->viewport->width += delta.x;
|
|
|
this->viewport->height += delta.y;
|
|
|
this->viewport->virtual_width += delta.x;
|
|
|
this->viewport->virtual_height += delta.y;
|
|
|
}
|