train_gui.c
Sun, 07 Jan 2007 12:18:05 +0000 Darkvater (svn r7954) -Backport from trunk (r7864): 0.5
Sun, 10 Dec 2006 19:00:06 +0000 peter1138 (svn r7473) -Fix (r7269): Pass a cargo type to determine the freight weight
Thu, 07 Dec 2006 13:00:41 +0000 Darkvater (svn r7415) -Codechange: Don't use typedef enum for simple widget enumerators when we will never use
Sun, 03 Dec 2006 15:48:21 +0000 peter1138 (svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local
Fri, 01 Dec 2006 08:23:15 +0000 KUDr (svn r7317) -Fix: (r7299) warning: unused variable num_engines (peter1138)
Fri, 01 Dec 2006 00:26:42 +0000 Darkvater (svn r7315) -Fix: Have the first engine in the list be selected once again when the window is opened
Fri, 01 Dec 2006 00:14:10 +0000 Darkvater (svn r7314) -Cleanup: const, whitespace, coding style and variable usage.
Fri, 01 Dec 2006 00:09:13 +0000 Darkvater (svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
Thu, 30 Nov 2006 21:37:06 +0000 KUDr (svn r7309) -Codechange: sort train engines/wagons by number first and then by custom rule
Thu, 30 Nov 2006 18:23:25 +0000 peter1138 (svn r7304) -Codechange: Reinstate caching of sorted purchase list. Dropping from 9m to 1.5m cycles for a redraw of a full list is not frivolous.
Thu, 30 Nov 2006 18:16:08 +0000 peter1138 (svn r7303) -Codechange: Sort wagon list as well as engine list.
Thu, 30 Nov 2006 16:03:12 +0000 KUDr (svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified a bit:
Mon, 27 Nov 2006 23:11:56 +0000 peter1138 (svn r7269) -Feature: Add freight trains patch option. This option is a multiplier for the weight of cargo on freight trains, to simulate longer heavier trains. The default value of 1 behaves as before.
Sat, 18 Nov 2006 16:47:02 +0000 Darkvater (svn r7205) -Fix [FS#350, SF#1560913]: Window allocation and deletion messed with the actual window
Thu, 16 Nov 2006 20:52:39 +0000 KUDr (svn r7178) -Fix: forgotten pointer dereferences (Bjarni, Bjarni, Bjarni, ...)
Thu, 16 Nov 2006 13:59:26 +0000 KUDr (svn r7167) -Fix: [FS#367] Crash: engine.h:194: RailVehInfo: Assertion (reported by skidd13)
Sat, 11 Nov 2006 09:47:44 +0000 Darkvater (svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.
Fri, 10 Nov 2006 19:24:14 +0000 Darkvater (svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
Tue, 24 Oct 2006 16:27:18 +0000 Darkvater (svn r6926) -Codechange: Rename WWT_4 to WWT_TEXTBTN_2 and WWT_6 to WWT_INSET (credits to peter1138
Tue, 24 Oct 2006 14:15:17 +0000 Darkvater (svn r6925) -Codechange: Be more strict with widget distinctions. WWT_PANEL is only plain panel,
Tue, 24 Oct 2006 13:20:54 +0000 Darkvater (svn r6924) -Codechange: Give the last (in the widget arrays at least) sprites meaningful names.
Tue, 24 Oct 2006 07:10:37 +0000 peter1138 (svn r6920) - Codechange: Ignore refit options of an engine if it has no capacity.
Mon, 23 Oct 2006 21:39:15 +0000 peter1138 (svn r6912) - Feature: Show a list of cargo types that a vehicle is refittable to in the purchase information window. (mart3p)
Mon, 23 Oct 2006 21:25:30 +0000 peter1138 (svn r6911) - Codechange: Add extra space to all purchase windows (and the replace window) to allow room for more text. (mart3p)
Mon, 23 Oct 2006 18:45:43 +0000 peter1138 (svn r6910) - Codechange: Supply width of area when drawing purchase info instead of using hardcoded values. (mart3p)
Sat, 21 Oct 2006 23:31:34 +0000 Darkvater (svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Fri, 20 Oct 2006 19:48:25 +0000 peter1138 (svn r6858) - Fix (r6855): Handle rail vehicles with no capacity (N/A) by setting cargo type to CT_INVALID and handling it later. STR_8838_N_A is not a valid cargo type...
Fri, 20 Oct 2006 11:53:29 +0000 peter1138 (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.
Tue, 17 Oct 2006 17:10:39 +0000 peter1138 (svn r6801) - Fix (r6619): Always disable the train refit button. It will be enabled later if refitting is possible.
Tue, 17 Oct 2006 07:33:05 +0000 peter1138 (svn r6794) - Fix: In the train detail window, split up articulated parts if they can contain cargo. This allows us to show the full cargo contents.
Thu, 12 Oct 2006 15:39:33 +0000 Darkvater (svn r6760) -Codechange: Do a case insensitive sort of train engine names and just normally
Thu, 12 Oct 2006 15:38:37 +0000 Darkvater (svn r6759) -Codechange: Remove the brainheaded usage of STR_JUST_STRING to pass a StringID
Wed, 11 Oct 2006 18:44:02 +0000 peter1138 (svn r6737) - Codechange: Sort train engines by their NewGRF specified list position instead of plain EngineID. This brings us back the custom order that was lost when generalized sorting was introduced.
Tue, 10 Oct 2006 08:34:14 +0000 bjarni (svn r6716) -Code cleanup: [aircraft/train build windows] fixed a spelling mistake in the widget names (the game itself is unaffected by this)
Tue, 10 Oct 2006 08:14:30 +0000 bjarni (svn r6714) -Codechange: replaced a direct manipulation of windows with InvalidateWindowData() in rail_cmd.c
Tue, 10 Oct 2006 07:56:23 +0000 bjarni (svn r6712) -Code cleanup: renamed buildtrain_d to buildvehicle_d as it's used for all vehicle types
Mon, 09 Oct 2006 21:42:18 +0000 bjarni (svn r6709) -Fix r6679: [build train window] solved an issue that could lead to trailing empty blocks in the list array
Mon, 09 Oct 2006 20:16:56 +0000 bjarni (svn r6707) -Feature: [build aircraft window] added buttons to view propeller planes, jet planes or helicopters
Sat, 07 Oct 2006 22:58:25 +0000 bjarni (svn r6684) -Feature: [train build window] added sorting options for the engines
Sat, 07 Oct 2006 20:31:38 +0000 KUDr (svn r6683) -Fix: '<' signed unsigned mismatch produced by VC8
Sat, 07 Oct 2006 15:04:22 +0000 bjarni (svn r6681) -Fix: when vehicles never expire they will stay at peak reliability instead of the lowest to make them useful even when old
Sat, 07 Oct 2006 14:30:13 +0000 bjarni (svn r6680) -Codechange r6679: [train build window] only generate the list when the window data is invalidated or the window is generated, not on each redraw
Sat, 07 Oct 2006 13:58:08 +0000 bjarni (svn r6679) -Feature: [train build window] added filter for wagons, engines or both in the display
Sat, 07 Oct 2006 09:02:48 +0000 bjarni (svn r6678) -Code cleanup: [train build window] made an enum with widget names and fixed some incorrect indents
Thu, 05 Oct 2006 11:26:59 +0000 peter1138 (svn r6649) - Codechange: Show more correct capacity of articulated wagons in the train purchase list.
Tue, 03 Oct 2006 14:52:39 +0000 bjarni (svn r6624) -Feature: added ability to add refit commands to vehicle orders (can only be done in goto depot orders)
Tue, 03 Oct 2006 02:08:15 +0000 belugas (svn r6619) -Codechange: Use accessors for disabled_state.
Mon, 02 Oct 2006 00:28:31 +0000 belugas (svn r6612) -Codechange: Use accessors for hidden_state.
Thu, 28 Sep 2006 23:05:03 +0000 bjarni (svn r6562) -Codechange: merged the vehicle list window widget arrays
Wed, 27 Sep 2006 07:23:38 +0000 bjarni (svn r6518) -Codechange: unified the vehicle refit windows
Tue, 26 Sep 2006 16:47:51 +0000 bjarni (svn r6513) -Codechange: unified the code to draw depot windows
Sun, 24 Sep 2006 15:01:02 +0000 bjarni (svn r6503) -Codechange: added a function to tell what vehicles a depot contains
Sat, 23 Sep 2006 02:39:24 +0000 belugas (svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Fri, 22 Sep 2006 23:13:12 +0000 bjarni (svn r6497) -Fix r6165: Vehicles heading for depots when their orders contained "service in depot" displayed the stopping in depot string
Mon, 04 Sep 2006 15:44:28 +0000 Darkvater (svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it to 'data'.
Sun, 03 Sep 2006 23:14:39 +0000 bjarni (svn r6370) -Codechange: moved all the remaining setup for PlayerVehWndProc() into WE_CREATE
Sun, 03 Sep 2006 19:09:17 +0000 tron (svn r6359) -Fix: Do not reset the current cursor action when centering on a depot/hangar (noticed by Neonox)
Sun, 03 Sep 2006 08:25:27 +0000 tron (svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
Sat, 02 Sep 2006 21:16:46 +0000 bjarni (svn r6350) -Codechange: moved some setup stuff into WE_CREATE in PlayerVehWndProc()
Fri, 01 Sep 2006 10:24:15 +0000 bjarni (svn r6291) -Feature: Vehicle lists from the station window now also got the goto depot button