summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
AgeCommit message (Collapse)Author
2005-01-06(svn r1399) -Fix: Fixes for compiling with Watcom C/C++ (ie, OS/2 port). ↵truelight
(orudge) Note: If people could watch out for initialising structs with *non-constants* in future... it's a bit annoying, I know, but Open Watcom isn't the only compiler which doesn't support this (yet) - Borland, for example, still doesn't like it.
2005-01-05(svn r1393) fix [ 1096026 ]. Autorenew trains should now hopefully work like ↵bjarni
it did before autoreplace was added DEREF_ENGINE is now used in autoreplace
2005-01-04(svn r1379) -Fix: various GUI glitches. Added default sizes to various ↵darkvater
widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-03(svn r1351) fixed issue in last commit where it it not update the replace ↵bjarni
train window properly when changing company colour (the lower two panels stayed the old colour until the window was reopened)
2005-01-03(svn r1350) Replace Vehicle GUI: bjarni
- Replaced "WP(w,replaceveh_d).line_height" with "w->resize.step_height" since they needed to be the same anyway - Cleaned the code a litte for readability (like correct tabbing) - Added company color to replace vehicle windows to make them look like the rest of the vehicle windows and made the caption text white (also to fit the standard) --This line, and those below, will be ignored-- M vehicle_gui.c M lang/english.txt M window.h
2005-01-03(svn r1348) -Feature: resizable windows. Read the comment in window.h to ↵truelight
find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way
2005-01-02(svn r1326) fixed compiler warnings in vehicle_gui.c and widget.cbjarni
2005-01-02(svn r1324) Fixed problem with autoreplace GUI and msvc6 (thanks bociusz)bjarni
2005-01-02(svn r1323) Adding autoreplace featurebjarni
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()
2004-12-11(svn r1016) Make the cargo sorter not consider the number of wagons of a ↵tron
particular cargo type but the sum of their capacity. Also add the number sorter to sort by vehicle number if the cargo capacity is equal.
2004-12-10(svn r1009) -Feature: per-station vehicle liststron
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.
2004-12-09(svn r999) New icons for the network interface, newgrf gui and the tiny eurodominik
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-25(svn r813) Push two tables from vehicle_gui.h into vehicle_gui.c - they were ↵tron
in the binary 48 (!) times. While here change the type for one table from uint16 to StringID.
2004-09-14(svn r244) -Fix: Stations were not sorted for non-player-0 playersdarkvater
-Fix: Correctly resorting vehicle list of player when the list of another player is open.
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-09-06(svn r172) -Fix: warning fixes (Tron)darkvater
2004-09-06(svn r169) -Fix: move around sort-widgets a bit so it looks more naturaldarkvater
-Fix: savegames are sorted with newest date first by default -Codechange: refine sorter functions -Fix: fixed linux warnings (tokai)
2004-09-06(svn r165) -Feature: Option to sort vehicles in vehicle-list window by ↵darkvater
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.