summaryrefslogtreecommitdiff
path: root/build_vehicle_gui.c
AgeCommit message (Collapse)Author
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