Commit Graph

168 Commits (043c3c8b0690d2954979d0a35010611038540796)

Author SHA1 Message Date
rubidium 650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 15 years ago
rubidium 5c5b357043 (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. 15 years ago
frosch 4a2d2ccdc6 (svn r16110) -Codechange: use {CARGO} instead hardcoded cargo name (there is always something duplicated :p) 15 years ago
frosch 4c5ebce0bb (svn r16044) -Fix (r16042): Win compilation. (Swallow) 15 years ago
frosch 0d2d51f708 (svn r16042) -Feature [FS#1941]: Allow filtering of vehicle purchase lists by cargo. Based on patch by sbr. 15 years ago
frosch d511a82d09 (svn r16038) -Codechange: Remove BuildVehicleWindow::regenerate_list in favor of the GUIList flag. 15 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
rubidium 003024cc21 (svn r15850) -Codechange: replace some magic constants with the less magic line height constant 15 years ago
alberth 8f5f39cf09 (svn r15820) -Codechange: Some windows using nested widgets 15 years ago
alberth a079bf0a1f (svn r15809) -Codechange: Add name comments to build vehicle widgets 15 years ago
rubidium 64e7ab4025 (svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width. 15 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
rubidium 34eb5364bb (svn r15778) -Fix [FS#2749] (r15666): when sorting on cost don't sort on the running cost (sbr) 16 years ago
frosch c297a99eff (svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere. 16 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
frosch f35e00844c (svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft carries only cargo. 16 years ago
rubidium 0aeed2b96a (svn r15666) -Fix [FS#2689]: sorting of engines in the purchase list didn't use the same numbers as the GUI showed, e.g. articulated parts weren't taken into accound when ordering by capacity. 16 years ago
frosch da78726e0c (svn r15592) -Fix: Refit-info in purchase list did only check the first articulated part. 16 years ago
frosch abe4692da2 (svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
  Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
  Note: It is intentional that you cannot control refittability by CB 36.
16 years ago
rubidium 02c52430c8 (svn r15521) -Codechange: add helper function to get the display tractive effort of a vehicle. 16 years ago
rubidium c7f3daacbf (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 16 years ago
rubidium 42fe0b65d2 (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
frosch 9c2ba4f96a (svn r15306) -Codechange: Deduplicate code by adding Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them) 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
glx 470da22ac3 (svn r15263) -Codechange: added Engine::GetCost() to remove some code duplication. 16 years ago
glx 9b73303b4d (svn r15261) -Add: added Engine::GetRunningCost() to remove some code duplication. Also stops AIs decrementing vehicle counter of first company 16 years ago
peter1138 598fdab47e (svn r15236) -Codechange: Rename realistic_acceleration patch option to train_acceleration_model, and change from boolean to value. Don't forget to update your settings. 16 years ago
rubidium de9b394557 (svn r14953) -Fix (r14952): the "available aircraft" list caused a crash 16 years ago
rubidium 0543f50181 (svn r14952) -Codechange: unify the "can vehicle go to station" tests 16 years ago
smatz b00e510140 (svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints 16 years ago
rubidium e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium 2e916a154f (svn r14683) -Change: only say a engine/vehicle is refittable when it can be refitted to at least two cargo type or when it has subcargos.
NOTE: it is still possible that a vehicle is marked refittable when there is nothing to refit to, e.g. when only one subcargo is available but that cannot be determined without a vehicle chain.
16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
smatz e543181b12 (svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies) 16 years ago
smatz ffa39caf3d (svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString() 16 years ago
frosch bce424a4aa (svn r14239) -Fix [FS#2267]: The engine-purchase-list-sorter doubled running-cost and halfed capacity of double-headed engines. 16 years ago
peter1138 6261063689 (svn r14157) -Codechange: Add and use string properties for rail types instead of relying on consecutive string IDs. 16 years ago
peter1138 550fc3a3f5 (svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is. 16 years ago
rubidium c816cc37fd (svn r14063) -Codechange: replace some "magic" constants with enumified constants. 16 years ago
belugas 2767042705 (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.
16 years ago
peter1138 759739db3f (svn r13784) -Codechange: Truncate vehicle names in purchase list to width of window. 16 years ago
peter1138 47ba8389b5 (svn r13760) -Codechange: With multiple NewGRF engine sets, engine IDs may not be allocated in the order expected by GRF authors, so sort by 'list position' instead of engine ID for all vehicle types. 16 years ago
belugas dfeb80fb9b (svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, instead of just disabled. It will be only visible when called from the Depot Building Window.
Less confusion, hopefully.  Suggested by Eddi.
16 years ago
rubidium 4b3395fbd4 (svn r13694) -Change: make it more explicit that you've opened the available train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window. 16 years ago
rubidium e7a501100a (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
peter1138 c61baba819 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList 16 years ago
peter1138 f97403803b (svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a copy of it. 16 years ago
peter1138 1272c55991 (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp 16 years ago