equal
deleted
inserted
replaced
312 /* Set the row and number of boxes in each row based on the number of boxes drawn in the matrix */ |
312 /* Set the row and number of boxes in each row based on the number of boxes drawn in the matrix */ |
313 uint16 rows_in_display = this->widget[DEPOT_WIDGET_MATRIX].data >> 8; |
313 uint16 rows_in_display = this->widget[DEPOT_WIDGET_MATRIX].data >> 8; |
314 uint16 boxes_in_each_row = this->widget[DEPOT_WIDGET_MATRIX].data & 0xFF; |
314 uint16 boxes_in_each_row = this->widget[DEPOT_WIDGET_MATRIX].data & 0xFF; |
315 |
315 |
316 /* setup disabled buttons */ |
316 /* setup disabled buttons */ |
317 this->SetWidgetsDisabledState(!IsTileOwner(tile, _local_player), |
317 this->SetWidgetsDisabledState(!IsTileOwner(tile, _local_company), |
318 DEPOT_WIDGET_STOP_ALL, |
318 DEPOT_WIDGET_STOP_ALL, |
319 DEPOT_WIDGET_START_ALL, |
319 DEPOT_WIDGET_START_ALL, |
320 DEPOT_WIDGET_SELL, |
320 DEPOT_WIDGET_SELL, |
321 DEPOT_WIDGET_SELL_CHAIN, |
321 DEPOT_WIDGET_SELL_CHAIN, |
322 DEPOT_WIDGET_SELL_ALL, |
322 DEPOT_WIDGET_SELL_ALL, |
700 void CreateDepotListWindow(VehicleType type) |
700 void CreateDepotListWindow(VehicleType type) |
701 { |
701 { |
702 this->type = type; |
702 this->type = type; |
703 _backup_orders_tile = 0; |
703 _backup_orders_tile = 0; |
704 |
704 |
705 assert(IsPlayerBuildableVehicleType(type)); // ensure that we make the call with a valid type |
705 assert(IsCompanyBuildableVehicleType(type)); // ensure that we make the call with a valid type |
706 |
706 |
707 /* Resize the window according to the vehicle type */ |
707 /* Resize the window according to the vehicle type */ |
708 |
708 |
709 /* Set the number of blocks in each direction */ |
709 /* Set the number of blocks in each direction */ |
710 this->vscroll.cap = _resize_cap[type][0]; |
710 this->vscroll.cap = _resize_cap[type][0]; |