Commit Graph

323 Commits

Author SHA1 Message Date
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
alberth bfd5cc456a (svn r18231) -Fix: Enable filling of matrix widget in the depot gui. 2009-11-22 18:29:52 +00:00
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 2009-11-22 11:20:12 +00:00
rubidium e9b6e73333 (svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances 2009-11-22 11:10:17 +00:00
rubidium b4e9cb3ca3 (svn r18163) -Codechange: make the depot GUI RTL aware 2009-11-18 10:45:49 +00:00
rubidium 3180d16baf (svn r18157) -Codechange: some minor tweaks of the boundaries of strings etc. in the depot window 2009-11-17 23:32:18 +00:00
rubidium d747a643cc (svn r18154) -Codechange: let the depot window better scale with bigger fonts 2009-11-17 22:58:41 +00:00
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
rubidium 9e84075db5 (svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot 2009-11-17 16:03:51 +00:00
rubidium a808623b24 (svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image 2009-11-16 22:25:01 +00:00
rubidium ef11ce84ee (svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists. 2009-11-16 20:58:38 +00:00
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
rubidium ca0521f89f (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 2009-10-24 14:53:55 +00:00
alberth fe717d033e (svn r17833) -Codechange: Depot gui should use relative widget coordinates for clicking. 2009-10-20 21:41:44 +00:00
frosch 21fdc65ce4 (svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. 2009-10-20 21:25:25 +00:00
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
alberth 9677e51261 (svn r17760) -Revert (r17648): _local_company is less constant than you'd expect. 2009-10-11 08:23:30 +00:00
alberth 8a21979b42 (svn r17653) -Fix (r17649): Widgets at the bottom button bar of the depot window should adapt to differences in height. 2009-09-27 08:49:42 +00:00
alberth 4130ae0dfa (svn r17652) -Codechange: Merging/renaming the depot block-size functions. 2009-09-27 08:28:49 +00:00
alberth dd108f2399 (svn r17650) -Codechange: Checking a condition once is enough. 2009-09-26 19:26:08 +00:00
alberth f7120de1f7 (svn r17649) -Codechange: Depot gui uses pure nested widgets. 2009-09-26 19:21:20 +00:00
alberth 16dcc64540 (svn r17648) -Codechange: Move type initialization and widget disabling to the constructor. 2009-09-26 18:47:41 +00:00
alberth 9c3722f31c (svn r17647) -Codechange: Moving widget array access to outside the function. 2009-09-26 18:15:35 +00:00
alberth a47138ad34 (svn r17643) -Codechange: Code style for variables in depot gui. 2009-09-26 16:06:54 +00:00
alberth 53188cd528 (svn r17626) -Codechange: Use Dimension structs instead of array of length 2 for storing horizontal/vertical information. 2009-09-23 20:48:30 +00:00
alberth 39c14f9044 (svn r17624) -Codechange: Swap entries in _resize_cap[][] so the code does what the docs say. 2009-09-23 19:57:56 +00:00
smatz 114d48e492 (svn r17596) -Codechange: constify some tables 2009-09-20 23:11:01 +00:00
rubidium ca91a97826 (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 2009-09-19 15:17:47 +00:00
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium 1f21a5cb41 (svn r17446) -Codechange: rename BUILD with BUY for strings that are about building (in the future buying) vehicles. 2009-09-07 08:59:43 +00:00
rubidium 78c9827000 (svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers 2009-09-02 07:36:39 +00:00
rubidium 1c94d98bb9 (svn r17368) -Codechange: remove pointless passing of 'this' as parameter 2009-09-02 07:22:09 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium 7fb95e2c2b (svn r17228) -Codechange: some coding style fixes 2009-08-20 10:23:39 +00:00
alberth 75f8a9db0a (svn r17194) -Fix (r17175): Depot sell buttons did not raise again. 2009-08-15 20:59:49 +00:00
frosch 2ad4bf74a1 (svn r17185) -Codechange: Tweak depot gui and vehicle lists, so text overlaps less with vehicle images. 2009-08-15 11:47:11 +00:00
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium b04ba7dcea (svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place 2009-07-22 23:39:35 +00:00
rubidium 9980af2898 (svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it. 2009-07-22 22:44:56 +00:00
rubidium 2962d8f0fc (svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message 2009-07-22 20:17:07 +00:00
rubidium c17c31b5b6 (svn r16919) -Codechange: unify some more StringID w.r.t. their naming 2009-07-22 19:12:20 +00:00
frosch d5a4c89365 (svn r16894) -Codechange: Add [Specialised]Vehicle::Last(). 2009-07-20 19:58:33 +00:00
frosch 7b92d9efe4 (svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it. 2009-07-19 19:17:41 +00:00
frosch d3a95e9bbd (svn r16874) -Change: Give the number behind free wagon chains in depots the same meaning as for trains. 2009-07-18 17:38:18 +00:00
frosch f129634f52 (svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables. 2009-07-17 22:00:13 +00:00
alberth d0a47fc1b4 (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. 2009-07-16 16:22:23 +00:00
smatz db63e1ad82 (svn r16820) -Codechange: remove unused parameter in HandleCloneVehClick() 2009-07-13 22:07:07 +00:00
frosch 3973b1e7cb (svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length. 2009-07-13 19:30:37 +00:00
frosch 78eccd05be (svn r16799) -Codechange: When drawing articulated road vehicles in the vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8. 2009-07-12 16:00:11 +00:00
rubidium 741a340b8b (svn r16772) -Fix [FS#3019]: don't use the same error message for turning around road vehicles and flipping parts of trains in the depot 2009-07-08 22:11:55 +00:00
rubidium 4d14c1b534 (svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions 2009-07-02 09:06:15 +00:00
smatz d86e17d65a (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train 2009-07-01 23:57:20 +00:00
smatz adc5363202 (svn r16717) -Codechange: make IsFrontEngine() member of Train 2009-07-01 22:22:01 +00:00
frosch a288e4d82f (svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays. 2009-06-27 21:06:58 +00:00
frosch 812ad41f23 (svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names. 2009-06-27 18:26:50 +00:00
smatz 05c695a647 (svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile() 2009-06-24 19:26:41 +00:00
smatz 0c10006907 (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 2009-06-06 16:54:22 +00:00
rubidium e3c5bc8d2e (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 2009-05-26 15:46:24 +00:00
rubidium 0d99b6c71c (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 2009-05-24 20:29:04 +00:00
rubidium 6237fe1462 (svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier. 2009-05-23 09:10:56 +00:00
rubidium da5661a0c8 (svn r16393) -Codechange: move VehicleRail to Train. 2009-05-22 22:55:41 +00:00
rubidium 7a37220881 (svn r16390) -Codechange: move u.road to RoadVehicle. 2009-05-22 20:22:20 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
rubidium d23f616e9f (svn r16296) -Codechange: silence some ICC warnings 2009-05-13 16:52:51 +00:00
rubidium 53887e07bb (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 2009-04-26 14:52:56 +00:00
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
rubidium 329cabab4f (svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing 2009-04-19 10:31:30 +00:00
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 2009-03-29 09:49:11 +00:00
rubidium 57174a9301 (svn r15808) -Codechange: use the new DrawString API in a number of GUIs 2009-03-22 12:01:21 +00:00
rubidium 69decac406 (svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API. 2009-03-21 22:22:00 +00:00
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 2009-03-15 15:12:06 +00:00
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 2009-03-14 18:16:29 +00:00
rubidium 90e2465d7d (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 2009-02-09 02:33:10 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
smatz e00cf92f47 (svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-13 22:58:03 +00:00
frosch 17a9bab142 (svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged. 2009-01-08 21:13:20 +00:00
glx c7959ce2a9 (svn r14840) -Cleanup: remove duplicate includes 2009-01-04 21:02:59 +00:00
rubidium ee952b10d9 (svn r14758) -Fix: determine the real size of a depot before trying to place it. 2008-12-28 20:53:19 +00:00
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 2008-09-30 20:39:50 +00:00
rubidium c8e8911ef6 (svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites. 2008-09-02 15:20:38 +00:00
smatz 25a1c59abb (svn r14086) -Fix (r13067): rail/road removing by CTRL didn't sometimes work when a depot window was opened 2008-08-16 18:01:23 +00:00
frosch 844a83ed58 (svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE. 2008-08-15 13:57:43 +00:00
glx 87c3599895 (svn r13968) -Fix (r13923): 'cast from pointer to integer of different size' warning 2008-08-02 23:30:50 +00:00
frosch 770d293788 (svn r13923) -Feature: Show [total-]cargo info in depot when [ctrl-]right-clicking on vehicle. 2008-08-02 12:43:45 +00:00
belugas 1737ce45e3 (svn r13887) -Codechange: Replace numbers with Colours enum on autoreplace, build_vehicle, cheat, depot and dock guis.
The fact that it goes alphabetically is pure coincidence.
2008-07-31 02:36:01 +00:00
rubidium fec49bcc83 (svn r13759) -Fix [FS#2147]: selecting non-full length vehicles in the depot gui would place the "mouse pointer" out of the center of the vehicle making it hard to "aim". 2008-07-20 19:21:18 +00:00
peter1138 f9fc53f98a (svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h 2008-05-28 11:56:21 +00:00
peter1138 56f78e6412 (svn r13248) -Codechange: Use VehicleList for depot GUI. 2008-05-25 17:22:49 +00:00
peter1138 d9805b46b9 (svn r13240) -Codechange: More const-ness for GUI code. 2008-05-25 09:40:44 +00:00
smatz 60ae799321 (svn r13239) -Fix: certain compilers give false warning about uninitialized variable 2008-05-24 23:18:21 +00:00
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 2008-05-19 09:48:47 +00:00
rubidium f5681547ef (svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean. 2008-05-17 23:11:06 +00:00
rubidium 87015f5b63 (svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp. 2008-05-17 13:01:30 +00:00
rubidium 8b54212900 (svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming. 2008-05-17 12:48:06 +00:00
rubidium 15e89b32b9 (svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot. 2008-05-15 08:01:46 +00:00
smatz 7890344bbd (svn r13091) -Fix: certain compilers give false warning about uninitialized variable 2008-05-14 18:35:15 +00:00
smatz a152d420a5 (svn r13079) -Fix: certain compilers give false warning about uninitialized variable 2008-05-13 22:02:14 +00:00
rubidium dddfaaac7d (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. 2008-05-13 14:43:33 +00:00
rubidium aa44fe3b69 (svn r13067) -Codechange: make a class of the DepotWindow. 2008-05-13 13:39:50 +00:00
rubidium 4caa813711 (svn r13051) -Codechange: depot_d belongs in depot_gui.cpp. 2008-05-11 18:17:56 +00:00
rubidium 23fc96c3e8 (svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window. 2008-05-08 11:50:34 +00:00
rubidium 3d5567ccf7 (svn r12987) -Codechange: split viewport and tile selection. 2008-05-07 13:10:15 +00:00
rubidium 9bf519f26b (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. 2008-05-06 22:08:18 +00:00
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 2008-05-06 15:11:33 +00:00
peter1138 4595d2c3b1 (svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items. 2008-05-05 11:36:43 +00:00
peter1138 a00371c8db (svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist. 2008-04-29 21:31:29 +00:00
peter1138 5ca6fd67fc (svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE 2008-04-29 07:11:54 +00:00
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 2008-04-18 04:37:06 +00:00
rubidium 02cdf01507 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 2008-04-17 19:10:30 +00:00
smatz b2e4adc2b8 (svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate 2008-04-05 11:27:50 +00:00
rubidium 4a1035ab95 (svn r12488) -Codechange: split order.h into order_base.h and order_func.h. 2008-03-30 23:24:18 +00:00
smatz 291931bf50 (svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC) 2008-02-17 12:21:05 +00:00
peter1138 a528dc89c7 (svn r12054) -Cleanup: Use VehicleType instead of byte for vehicle types... 2008-02-04 11:28:12 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium ac528411df (svn r11818) -Codechange: split player.h into smaller pieces. 2008-01-12 14:10:35 +00:00
rubidium 6c954cad5f (svn r11801) -Codechange: remove some unneeded includes from some header files. 2008-01-09 21:27:39 +00:00
rubidium 0e517fe023 (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 2008-01-09 09:45:45 +00:00
rubidium 384503e7d3 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes. 2007-12-27 13:35:39 +00:00
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 2007-12-22 23:30:28 +00:00
rubidium 9e9cfe6e59 (svn r11677) -Codechange: move price and command related types/functions to their respective places. 2007-12-21 21:50:46 +00:00
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 2007-12-21 19:49:27 +00:00
rubidium d582aea639 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found. 2007-12-19 20:45:46 +00:00
rubidium ec90ce7e98 (svn r11643) -Codechange: conform with the coding style for the WP macro uses. 2007-12-16 10:54:08 +00:00
belugas 73c58d8a40 (svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function 2007-12-08 03:10:50 +00:00
glx c21f588a14 (svn r11588) -Codechange: use the new member introduced in r11551 2007-12-07 18:05:49 +00:00
rubidium 527b72749d (svn r11555) -Codechange: use the new members introduced in r11551. 2007-12-02 14:29:48 +00:00
smatz cbd1c05218 (svn r11513) -Codechange: enumerize some depot GUI actions 2007-11-24 13:50:29 +00:00
smatz 2686901d84 (svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode 2007-11-18 23:13:53 +00:00
rubidium dace4686c0 (svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ. 2007-11-15 18:28:00 +00:00
belugas 56e6282f2f (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
2007-11-04 00:08:57 +00:00
rubidium beeae81f60 (svn r11184) -Codechange: cleanup the code related to backup orders. 2007-09-28 21:15:45 +00:00
rubidium 40b871410b (svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set. 2007-09-09 11:23:49 +00:00
rubidium aba867d78d (svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30 21:11:12 +00:00
rubidium cb7eaff353 (svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that. 2007-08-30 13:03:56 +00:00
rubidium 5d628e6135 (svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus. 2007-08-29 20:50:58 +00:00
rubidium 68d385b77c (svn r10986) -Fix (r10985): inconsistency between documentation and actual code... thanks to glx for spotting it. 2007-08-26 21:53:11 +00:00
rubidium 3c919e36a7 (svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle. 2007-08-26 21:21:59 +00:00
rubidium c03cb2c8db (svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size. 2007-07-27 12:49:04 +00:00
rubidium efc7fdf2fd (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 2007-07-16 09:16:58 +00:00
rubidium 83a880c882 (svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image. 2007-07-01 19:11:47 +00:00
maedhros 3e326085fa (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
2007-06-11 14:00:16 +00:00
maedhros 4acf3e4c3f (svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type. 2007-06-01 12:03:10 +00:00
rubidium ba24c34f85 (svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness. 2007-05-18 17:31:41 +00:00
rubidium 23492f1f34 (svn r9841) -Codechange: add a little more type strictness to the vehicle types. 2007-05-15 11:28:22 +00:00
rubidium 2dc5589290 (svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces. 2007-04-18 22:41:53 +00:00
maedhros 3ac05f25db (svn r9531) -Fix (r8661) [FS#692]: The scroll settings were wrong for trains as only a part
of the window should be horizontally scrollable, not all of it. This lead to
wagons without an engine overflowing the window and not being able to scroll to
the end of a train if there was an engine attached.
2007-03-31 08:24:05 +00:00
rubidium ce919e8c71 (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). 2007-03-08 16:27:54 +00:00
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 2007-03-07 12:11:48 +00:00
belugas 978d7da818 (svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 2007-03-01 01:24:44 +00:00
belugas 6dbf9f2f41 (svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
Some documentation addition, when i can easily supply them
2007-02-23 18:55:07 +00:00
bjarni 4a41c23b21 (svn r8770) -Fix r8661: corrected some aircraft sprite placement issues in the depot window 2007-02-17 11:17:49 +00:00
bjarni 0c8078ae29 (svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
   This will make less vehicle type specific code and easier to read resizing based on sprite sizes
2007-02-10 13:37:32 +00:00
bjarni 037d636734 (svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
  Surprisingly this can be done without changing the savegame format
2007-02-07 19:10:19 +00:00
rubidium c8882bd3d2 (svn r8511) -Codechange: make WindowClass an enumerated value. 2007-02-01 15:49:12 +00:00
bjarni 8c098db7a8 (svn r8390) -Codechange (r8384): Rewrote ResizeButtons()
Now it only works on first and last widget to resize
  It now works with offsets correctly (no longer assumes the left is 0)
  It's no longer needed to have a widget right of the ones you resize
  Can handle any number of widgets
2007-01-24 14:32:20 +00:00
bjarni e2f72cbf1f (svn r8384) -Codechange: [GUI] instead of writing a resize button function for each window, a global ResizeButtons() is added 2007-01-24 02:36:55 +00:00
bjarni 6ccbfffbea (svn r8338) -Codechange: merged road vehicle build window into the other ones
Note: now all build vehicle windows are merged into build_vehicle_gui.cpp
2007-01-22 02:09:51 +00:00
bjarni 14b2998023 (svn r8335) -Feature: the build ship window is now also resizable horizontally and contains sorting options
-Codechange: the build ship window is merged into build_vehicle_gui.cpp
2007-01-22 00:26:46 +00:00
bjarni b60e5c17cd (svn r8331) -Feature: the train and aircraft build windows are now resizable in horizontal direction as well
-Codechange: merged train and aircraft build window code
2007-01-21 22:50:43 +00:00
bjarni c8c27b9740 (svn r8293) -Codechange: overloaded ShowVehicleListWindow() so it can open all types of vehicle lists (depending on arguments)
- Also removed some unneeded arguments
  - this also allows removing an if-else cascade in ShowVehicleListWindowLocal()
2007-01-21 00:01:47 +00:00
peter1138 92d418b031 (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, 
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
celestar 2ac0410767 (svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max(). 2007-01-11 11:05:01 +00:00
KUDr e373ea7096 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 2007-01-10 18:12:09 +00:00
Renamed from src/depot_gui.c (Browse further)