Commit Graph

507 Commits (66bac3808ecd31fef10574ccf33bee636cdbc0c2)

Author SHA1 Message Date
frosch e83fa1da5b (svn r23487) -Change/Fix: Make autoreplace, autorenew, cloning and autorefit check all articulated parts of a vehicle to find a shared cargo subtype. 13 years ago
rubidium 7abb74d4a2 (svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the vehicles when adding an extra order 13 years ago
peter1138 b84174fd4d (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level. 13 years ago
frosch 6365d92776 (svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts. 13 years ago
michi_cc 2b64009657 (svn r23111) -Fix: Keep subtype when automatically choosing the cargo for auto-refitting. 13 years ago
michi_cc a50877bef7 (svn r23089) -Add: Allow specifying refits for go-to station orders. 13 years ago
frosch 6e61fee028 (svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs. 13 years ago
frosch ad38f27242 (svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and Vehicle to simplify code. 13 years ago
frosch e57ba5d0ae (svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code. 13 years ago
frosch f9f257ce4a (svn r22984) -Feature: Display profit icons for groups in the group GUI. 13 years ago
terkhen bc1fc20e9c (svn r22941) -Fix: Calculate the size of the start/stop vehicle button correctly. 13 years ago
yexo 996f10b775 (svn r22373) -Fix (r19955) (r20041) [FS#4592]: crash when clicking a removed company in the vehiclelist dropdowns 13 years ago
terkhen a88fe7c2aa (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
frosch db3a8d1abf (svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope. 13 years ago
frosch 071957f593 (svn r22245) -Codechange: Make vehicle lists handle command-/GUI-scope invalidations themself. 13 years ago
frosch afd2e51936 (svn r22244) -Codechange: Make vehicle windows handle command-/GUI-scope invalidations themself (from autoreplace and refitting). 13 years ago
frosch 4b4a40a72e (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
frosch 1a14c133c6 (svn r22228) -Fix (r22135)[FS#4546]: Do not resort town, industry and signs list directly in OnInvalidateData(). There might be a scheduled rebuild which needs execution first. So, only set a trigger for resorting. 14 years ago
frosch 0a28d212f4 (svn r22226) -Codechange: When autoreplace invalidates vehicle windows because the Vehicle index changed, use a better eye-catcher-'data' than 0 to identify them. 14 years ago
frosch 04f56cf6ed (svn r22140) -Fix (r22135): I like the letter 'l' nevertheless. (Alberth) 14 years ago
frosch 074548f8f3 (svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command. 14 years ago
terkhen f0dbdf1544 (svn r22118) -Fix [FS#4525]: The refit window was not correctly updated after selecting with Ctrl+Click (Regiovogel). 14 years ago
rubidium 561b9b899f (svn r22034) -Fix [FS#4488]: crash when watching the vehicle view of a vehicle that has multiple sequential nearest depot orders (or consists of a single nearest depot order) when there is no depot with index 0 14 years ago
frosch 7d37b72b09 (svn r21991) -Fix [FS#4466]: The share/copy-orders-cursor was not updated to refer to the new vehicle when it got autoreplaced/-renewed. 14 years ago
frosch 761b74713f (svn r21990) -Cleanup (r14085): Remove unneeded test. 14 years ago
rubidium 12d3422539 (svn r21954) -Cleanup: remove setting to not show the vehicle speed in the vehicle view 14 years ago
frosch 7c04ea586d (svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing.
-Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
14 years ago
terkhen 0e51dab6a6 (svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
14 years ago
frosch aab0eff930 (svn r21902) -Fix: Do not count articulated parts when passing the number of vehicles to refit to the command. That may exceed 8 bits. 14 years ago
frosch 8411b28dcf (svn r21901) -Codechange: Save some bits in p2 of CmdRefitVehicle. 14 years ago
frosch 6254ffc4d7 (svn r21899) -Fix: Do not show a vehicle selection in the RefitWindow for refit orders. You cannot select anything anyway. 14 years ago
rubidium 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
smatz f2006f36a1 (svn r21875) -Codechange: indentation of some comments was wrong 14 years ago
alberth 5955e98b79 (svn r21666) -Codechange: Use GetCallbackWnd at more places. 14 years ago
rubidium 1446bfaac6 (svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders 14 years ago
terkhen 7fc32d3763 (svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts. 14 years ago
terkhen 9ff41df5e1 (svn r21570) -Add: Allow to select a vehicle and the following chain with a keyboard shortcut. 14 years ago
terkhen ab36448f46 (svn r21569) -Add: Don't close the refit window after refitting only a consist part. 14 years ago
terkhen 6848bb8eee (svn r21568) -Add: Show the selected consist part at the refit window. 14 years ago
terkhen cf07974aaf (svn r21567) -Feature: Allow to refit only the selected part of a train consist. 14 years ago
terkhen 60f3dc16a7 (svn r21566) -Add: Draw current vehicle at the refit window. 14 years ago
terkhen dfc460035b (svn r21565) -Codechange: Add pixel skip to DrawRoadVehImage(). 14 years ago
terkhen df2a2615a4 (svn r21563) -Codechange: Add function to get the width of a vehicle. 14 years ago
terkhen f1c0366667 (svn r21560) -Codechange: Declare DrawVehicleImage in its header. 14 years ago
terkhen 080a52faf2 (svn r21559) -Add: Disable the refit button until a refit option is selected. 14 years ago
terkhen f69d280f14 (svn r21521) -Codechange: Unify some cached values that were present in both road vehicles and trains. 14 years ago
terkhen f7c4d35f67 (svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle. 14 years ago
terkhen 74c061c29a (svn r21518) -Codechange: Rename AccelerationCache to GroundVehicleCache. 14 years ago
terkhen 47c9189002 (svn r21516) -Codechange: Add IsGroundVehicle function to the Vehicle class. 14 years ago
terkhen 57790abb75 (svn r21515) -Codechange: Use cached_total_length where appropiate. 14 years ago
rubidium e4c8f79f94 (svn r21416) -Codechange: limit vehicle name by amount of characters, not bytes 14 years ago
terkhen 64c200a25e (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 14 years ago
alberth 0722492c1b (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
terkhen b4c22e854f (svn r21214) -Add: Display mail capacity when refitting an aircraft to passengers. 14 years ago
rubidium 5ec2bcc0d9 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
terkhen 25e638adcb (svn r21099) -Codechange: Store road vehicle max speed in the vehicle cache. 14 years ago
terkhen 79ab8cb571 (svn r21098) -Codechange: Ships now store their max speed in the cache instead of recalculating it every time. 14 years ago
terkhen ca755e983c (svn r21097) -Codechange: Unify cached max speed for all vehicle types. 14 years ago
terkhen 943c732756 (svn r21096) -Fix: Display the real max speed for aircrafts instead of always using the engine value. 14 years ago
belugas 377d11886c (svn r21083) -Codechange: Limit the number of exceptions in the refittable cargo list to 7 (Eddi) 14 years ago
planetmaker 310de59b0f (svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small 14 years ago
terkhen 699e077b6e (svn r20921) -Fix [FS#4160]: Refit costs were not shown for long cargo names. 14 years ago
rubidium 713165fba9 (svn r20777) -Codechange: make VehicleListIdentifier a variable of BaseVehicleList and use that instead of "dereferencing" the window number and storing some information twice 14 years ago
rubidium eeb53fc575 (svn r20773) -Codechange: use packed VehicleListIdentifiers for some commands as well 14 years ago
rubidium 1664ac1eb5 (svn r20772) -Codechange: use packed VehicleListIdentifiers as window numbers 14 years ago
rubidium fcb4cfedb0 (svn r20771) -Add: concept of vehicle list identifiers to identify a vehicle list instead of a string of parameters 14 years ago
rubidium 91ea9c969f (svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters 14 years ago
rubidium 56ebc2359e (svn r20769) -Codechange: move some depot flags from p2 to p1 in CmdSendVehicleToDepot 14 years ago
rubidium db3a6485d7 (svn r20768) -Codechange: unify send-to-depot commands 14 years ago
smatz 63b8fea69f (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window 14 years ago
frosch 46acb837eb (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 14 years ago
frosch 41dac2e579 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 14 years ago
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 27e45d96a4 (svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands. 14 years ago
rubidium f4174fcc2f (svn r20545) -Codechange: make sure an OrderBackup gets cleared when the depot it belongs to gets removed, the depot window gets closed or when another vehicle gets sold in a depot 14 years ago
rubidium e68cf6bd81 (svn r20539) -Codechange: make order backups more self-contained. 14 years ago
terkhen 1f04e69a94 (svn r20485) -Fix [FS#4012]: Sorting of refittable cargos was wrong for trains. 14 years ago
terkhen cfde29bdf4 (svn r20484) -Codechange: Move BuildRefitList to the RefitWindow class. 14 years ago
terkhen 76ebabf8f6 (svn r20483) -Doc: RefitOption operators. 14 years ago
frosch ba8d961664 (svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked. 14 years ago
frosch d68e16cbce (svn r20468) -Fix: Vehicledetails of non-trains accessed a non existing scrollbar, though values were unused. 14 years ago
frosch 2d5ef5e5a8 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 4817d5dcd6 (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 341f41e347 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
frosch 4d18e6c435 (svn r20294) -Fix [FS#3996](r20281): 'break' got in wrong position. 14 years ago
terkhen 04134c1e51 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
rubidium d11de00a15 (svn r20244) -Fix: the caption of the "Available vehicle" lists was black, whereas for building those vehicles, which uses the exact same window, it was white. 14 years ago
alberth 3cd9351618 (svn r20241) -Codechange: Move variable declarations to their first use. 14 years ago
terkhen c92b2e9d3c (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
alberth a50578c3ad (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
frosch de785d2875 (svn r20174) -Codechange [FS#3955]: Allow horizontal resizing for all vehicle lists. 14 years ago
frosch d8e9cbc77d (svn r20173) -Codechange: Make the normal vehiclelist fit the longest action dropdown text. 14 years ago
frosch ca5acaa616 (svn r20172) -Codechange: Use BaseVehicleListWindow::BuildActionDropdownList() also for the normal vehicle list. 14 years ago
frosch 598b0e6be6 (svn r20171) -Fix: Make the group list action dropdown also use vehicletype-specific texts like the normal vehicle list. 14 years ago
frosch ea4bb0bec0 (svn r20170) -Codechange: Add BaseVehicleListWindow::GetActionDropdownSize(). 14 years ago
frosch d10c265d75 (svn r20169) -Codechange: Replace ShowGroupActionDropdown() with BaseVehicleListWindow::BuildActionDropdownList(). 14 years ago
terkhen da87125878 (svn r20123) -Add [FS#3721]: Use all available space when drawing articulated road vehicles. 14 years ago
alberth c2a871d10b (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago