|
peter1138
|
r4932:f8667c11cd4e
|
18 years ago
|
|
|
|
peter1138
|
r4930:fb0ce02440ea
|
18 years ago
|
|
|
|
peter1138
|
r4928:b82ce7c78321
|
18 years ago
|
|
|
|
bjarni
|
r4800:28f9264f7dd8
|
18 years ago
|
|
(svn r6722) -Codechange: [aircraft build window] moved aircraft build window to a file of it's own Also made some changes to it so it should be easier to unify all the build vehicle windows
|
|
bjarni
|
r4796:4b78ea3c5f2f
|
18 years ago
|
|
(svn r6718) -Codechange: added function to get the line height for a vehicle type -Fix r6513: [depot window] fixed incorrect line height for large ships -Fix r6513: [depot window] fixed incorrect resizing of the sell button
|
|
bjarni
|
r4734:5b69ddbf3f28
|
18 years ago
|
|
(svn r6646) -Codechange: [vehicle list window] Cleaned up the drawing code This moved a few of the strings and sprites a few pixels. Hopefully this will work out ok.
|
|
bjarni
|
r4712:ace1fd623579
|
18 years ago
|
|
(svn r6624) -Feature: added ability to add refit commands to vehicle orders (can only be done in goto depot orders) Example: make a train transport iron ore from A to B, then it visits a depot and refits to steel It then transport steel back to A or near A if there is a factory and then it visits another depot to refit to iron ore again
This is controlled in the orders. If a goto depot order is lightlighted, then "Unload" changes to "Refit" Control click "Refit" removes the refit part of the order (as the tooltip says) The player will still pay the normal refit costs
Known issues: If a vehicle is not in a depot, then the refit window will fail to tell refitted cargo capacity Refit costs in the refit window can sometimes print 0 when it should not because the refit calculation is unaware that the vehicle will be refitted in between
Warning: autoreplace got a protection against replacing something so you get a new cargo type, but it can fail here. In the iron ore/steel example, it can see that the vehicle carries iron ore and the new one can be refitted to iron ore, then it will replace. It will not check to see that it's valid for steel as well. This is something to look into in the future
|
|
bjarni
|
r4681:f719e26018b5
|
18 years ago
|
|
(svn r6586) -Feature: [depot window] added a vehicle list window with all vehicles having a certain depot in their orders It got one known issue though. The top bar got a plural issue so expect to see stuff like "1 trains" until we figure out why it behaves this way Added the button to the depot windows. Made the autoreplace button bigger while I was moving some widgets anyway Made road vehicle depot windows start with one more row to make room for the buttons
|
|
bjarni
|
r4668:04e452c9b928
|
18 years ago
|
|
(svn r6562) -Codechange: merged the vehicle list window widget arrays It made no sense to maintain 8 nearly identically arrays when a single one can do the job Also made the two buttons always use half of the bottom width each, even when resizing
|
|
bjarni
|
r4642:20c2c97f04d8
|
18 years ago
|
|
(svn r6518) -Codechange: unified the vehicle refit windows This was requested by peter1138
|
|
Darkvater
|
r4546:198accac2b54
|
18 years ago
|
|
|
|
Darkvater
|
r4545:41524c2c56f0
|
18 years ago
|
|
(svn r6377) -Codechange: Set up the widgets in the WE_CREATE instead of on every WE_PAINT -Codechange: Initialize sorting-type on WE_CREATE instead of checking every time. -Codechange: Update custom vehiclelist_d with standard list_d struct, more static
|
|
Darkvater
|
r4542:80951dd47a54
|
18 years ago
|
|
(svn r6372) -Codechange: static, unneeded decleration in headers, superfluous header includes -Codechange: Unify the Sorting struct both for vehicle-lists and network-lists.
|
|
bjarni
|
r4506:98668beebd0e
|
18 years ago
|
|
(svn r6291) -Feature: Vehicle lists from the station window now also got the goto depot button -Codechange: unified the code for mass goto depot to avoid duplicated code -Fix: Vehicles already on the way to depots will not be cancelled by mass goto depot (made it really hard to send all vehicles at once)
|
|
tron
|
r4485:fd2a80bc9d79
|
18 years ago
|
|
|
|
bjarni
|
r4460:efa711f1e915
|
18 years ago
|
|
|
|
bjarni
|
r4459:5507d34f9eed
|
18 years ago
|
|
(svn r6242) -Codechange: made BuildVehicleList static as it is not used in any other files anymore added window_type to arguments and used it to replace an if cascade with a switch case
|
|
bjarni
|
r4449:08eb8dc3465f
|
18 years ago
|
|
(svn r6227) -Codechange: added window type flags to use with PlayerVehWndProc this makes the list type detection much easier and allowed an if cascade to be turned into a switch case this also makes it easier to add more list types
|
|
bjarni
|
r4442:b5f1e6ca1edf
|
18 years ago
|
|
(svn r6215) -Codechange: [vehicle list windows] unified Player(vehicle)WndProc into PlayerVehWndProc Those 4 unified functions were really much alike, so there was no reason to have so much dublicated code
|
|
rubidium
|
r4434:c817458d470e
|
18 years ago
|
|
|
|
bjarni
|
r4408:ae655935e525
|
18 years ago
|
|
(svn r6161) -Feature: List of vehicles with the same shared orders the list is available in the orders window and looks like the list buttons from the station windows (small vehicle) The button is disabled if the vehicle do not have any shared orders or it got shared orders, but an empty order list based on a patch by nycom, thought it ended up getting heavily modified Thanks to TrueLight for proofreading and suggestions
|
|
tron
|
r4267:19e8cee994d7
|
18 years ago
|
|
|
|
peter1138
|
r3650:52328e33959e
|
18 years ago
|
|
|
|
bjarni
|
r2552:89bd3d50b470
|
19 years ago
|
|
(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace this is a complete rewrite, that makes use of existing commands like build and sell this means that multiheaded train engines are replaced correctly
|
|
tron
|
r2548:9570bbbdacab
|
19 years ago
|
|
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
|
|
tron
|
r2466:6653b19c6415
|
19 years ago
|
|
|
|
tron
|
r2462:9b0bcbe58b0f
|
19 years ago
|
|
|
|
Darkvater
|
r2436:963efe8b84cc
|
19 years ago
|
|
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
hackykid
|
r1907:da80804490bd
|
19 years ago
|
|
(svn r2413) - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later. - Add: In the purchase details for trains display "(refittable)" after the capacity if the vehicle is refittable.
|
|
Darkvater
|
r1802:acc0f0bda113
|
19 years ago
|
|
|
|
matthijs
|
r1763:22107008ddc5
|
19 years ago
|
|
|
|
matthijs
|
r1752:e339152fbe8d
|
19 years ago
|
|
(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx) - Add: GetVehicleTrackdir() helper function. - Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed. - Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte". - Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
|
|
darkvater
|
r1246:1fc4189e63a6
|
20 years ago
|
|
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
bjarni
|
r842:96908cec3367
|
20 years ago
|
|
(svn r1323) Adding autoreplace feature This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
|
|
tron
|
r588:c0748f0d2104
|
20 years ago
|
|
(svn r1009) -Feature: per-station vehicle lists This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables.
|
|
tron
|
r505:57715c8bbee1
|
20 years ago
|
|
(svn r813) Push two tables from vehicle_gui.h into vehicle_gui.c - they were in the binary 48 (!) times. While here change the type for one table from uint16 to StringID.
|
|
darkvater
|
r168:a71deedc43fb
|
20 years ago
|
|
(svn r169) -Fix: move around sort-widgets a bit so it looks more natural -Fix: savegames are sorted with newest date first by default -Codechange: refine sorter functions -Fix: fixed linux warnings (tokai)
|
|
darkvater
|
r164:32c72e637930
|
20 years ago
|
|
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
|