summaryrefslogtreecommitdiff
path: root/build_vehicle_gui.c
AgeCommit message (Collapse)Author
2006-12-07(svn r7418) -Codechange/Feature: Put back the 'New Vehicles' button in the ↵Darkvater
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.
2006-12-07(svn r7415) -Codechange: Don't use typedef enum for simple widget ↵Darkvater
enumerators when we will never use their type anyways.
2006-12-03(svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local peter1138
player, resulting in an empty vehicle purchase list. Specify the player as an argument to IsEngineBuildable()
2006-12-01(svn r7316) -Codechange: Make train-build-gui and aircraft-build-gui ↵Darkvater
(unified) look more alike.
2006-12-01(svn r7315) -Fix: Have the first engine in the list be selected once again ↵Darkvater
when the window is opened and remove a useless loop that tested if selected engine is still in list (moved to list generation).
2006-12-01(svn r7314) -Cleanup: const, whitespace, coding style and variable usage.Darkvater
2006-12-01(svn r7313) -Codechange: Calling invalidate data on a window will surely ↵Darkvater
warrant a redraw, so call that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
2006-11-30(svn r7308) -Codechange: call GenerateBuildList() only when needed instead ↵KUDr
of on each redraw (peter1138)
2006-11-30(svn r7306) -Codechange: constness (Darkvater)KUDr
2006-11-30(svn r7305) -Codestyle: Indentation fixespeter1138
2006-11-30(svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified ↵KUDr
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)
2006-11-10(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc ↵Darkvater
positioning WDP_AUTO = -1)
2006-10-23(svn r6912) - Feature: Show a list of cargo types that a vehicle is ↵peter1138
refittable to in the purchase information window. (mart3p)
2006-10-23(svn r6911) - Codechange: Add extra space to all purchase windows (and the ↵peter1138
replace window) to allow room for more text. (mart3p)
2006-10-23(svn r6910) - Codechange: Supply width of area when drawing purchase info ↵peter1138
instead of using hardcoded values. (mart3p)
2006-10-21(svn r6884) -Codechange: Add strict bounds checking in string formatting system.Darkvater
The last parameter should point to the end of the buffer (eg lastof(buf)) Courtesy of Tron.
2006-10-20(svn r6855) - Codechange: When displaying a "quantity of cargo" string, use ↵peter1138
the {CARGO} command and supply the cargo type and quantity, instead of manually looking up the cargo type's string.
2006-10-10(svn r6729) -Fix r6707: [build aircraft window] solved a crash when using a ↵bjarni
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
2006-10-10(svn r6726) -Codechange: [vehicle build window] cleaned up the name sorter ↵bjarni
(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
2006-10-10(svn r6722) -Codechange: [aircraft build window] moved aircraft build window ↵bjarni
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