(svn r6542) -Feature: [depot window] added a "sell all vehicles in depot" button

It's right below the sell button (sell whole chain button for trains)
   It's still missing a sprite. That one will be added as soon as anybody draws something we can use
   To make room for this button, all depots except train depots now opens with an additional row and can't be resized shorter than that
This commit is contained in:
bjarni
2006-09-27 22:44:39 +00:00
parent d1aebd889c
commit 825f63bde3
6 changed files with 173 additions and 29 deletions

View File

@@ -160,6 +160,7 @@ DEF_COMMAND(CmdReplaceVehicle);
DEF_COMMAND(CmdCloneVehicle);
DEF_COMMAND(CmdMassStartStopVehicle);
DEF_COMMAND(CmdDepotSellAllVehicles);
/* The master command table */
@@ -305,6 +306,7 @@ static const Command _command_proc_table[] = {
{CmdReplaceVehicle, 0}, /* 115 */
{CmdCloneVehicle, 0}, /* 116 */
{CmdMassStartStopVehicle, 0}, /* 117 */
{CmdDepotSellAllVehicles, 0}, /* 118 */
};
/* This function range-checks a cmd, and checks if the cmd is not NULL */