Commit Graph

20 Commits (9e68c9b87fd1d062f5d0f98b18c69fc73bd3ce9f)

Author SHA1 Message Date
Darkvater 84c36a481c (svn r7418) -Codechange/Feature: Put back the 'New Vehicles' button in the vehicle list window. As
things won't fit now because of too many buttons, move 'send to depot' and 'autoreplace'
 to a dropdown box (and seperate 'send to depot' and 'send for servicing').
 The 'New Vehicles' button shows a list of all engines you have available for that vehicle
 type (in case of trains all railtypes). Button is only enabled for global list.
18 years ago
Darkvater 616028a453 (svn r7415) -Codechange: Don't use typedef enum for simple widget enumerators when we will never use
their type anyways.
18 years ago
peter1138 00e9e3e9e6 (svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local
player, resulting in an empty vehicle purchase list. Specify the player 
as an argument to IsEngineBuildable()
18 years ago
Darkvater 672d45d8f6 (svn r7316) -Codechange: Make train-build-gui and aircraft-build-gui (unified) look more alike. 18 years ago
Darkvater efd1e877f0 (svn r7315) -Fix: Have the first engine in the list be selected once again when the window is opened
and remove a useless loop that tested if selected engine is still in list (moved to list
 generation).
18 years ago
Darkvater 8eb6ed2825 (svn r7314) -Cleanup: const, whitespace, coding style and variable usage. 18 years ago
Darkvater fc1a90b663 (svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
18 years ago
KUDr 5ab10031bc (svn r7308) -Codechange: call GenerateBuildList() only when needed instead of on each redraw (peter1138) 18 years ago
KUDr 4f8f438ea4 (svn r7306) -Codechange: constness (Darkvater) 18 years ago
peter1138 b6854d7e21 (svn r7305) -Codestyle: Indentation fixes 18 years ago
KUDr acf4891180 (svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified a bit:
- using one engine list instead of 3
- removed engine filters (loco, wagons, helicopters, etc.)
- EngineList code isolated from GUI (moved to helpers.cpp - reusing CBlobT code which does exactly what is needed for EngineList)
- removed unnecessary  "optimization" (rebuild and sort engine list on each WE_PAINT)
18 years ago
Darkvater e786cd5c6b (svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1) 18 years ago
peter1138 6b3abe6508 (svn r6912) - Feature: Show a list of cargo types that a vehicle is refittable to in the purchase information window. (mart3p) 18 years ago
peter1138 259cad1985 (svn r6911) - Codechange: Add extra space to all purchase windows (and the replace window) to allow room for more text. (mart3p) 18 years ago
peter1138 4c11b5aef5 (svn r6910) - Codechange: Supply width of area when drawing purchase info instead of using hardcoded values. (mart3p) 18 years ago
Darkvater 494c56475f (svn r6884) -Codechange: Add strict bounds checking in string formatting system.
The last parameter should point to the end of the buffer (eg lastof(buf))
 Courtesy of Tron.
18 years ago
peter1138 68dda86c5b (svn r6855) - Codechange: When displaying a "quantity of cargo" string, use the {CARGO} command and supply the cargo type and quantity, instead of manually looking up the cargo type's string. 18 years ago
bjarni 7954b834df (svn r6729) -Fix r6707: [build aircraft window] solved a crash when using a grf set with a buildable helicopter with a lower EngineID than the first buildable plane
Also removed a lot of const cast as they mess up the code and didn't help much
18 years ago
bjarni 54259301d9 (svn r6726) -Codechange: [vehicle build window] cleaned up the name sorter (mainly by peter1138)
Now both names are checked against the cache (instead of just one of them) and we got rid of some global vars
18 years ago
bjarni 95f5034da1 (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
18 years ago