rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
2009-07-23 19:31:50 +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
smatz
77d13eae61
(svn r16852) -Codechange: use FOR_ALL_CARGOSPECS for iterating over all valid CargoSpecs
2009-07-16 20:40:06 +00:00
smatz
1f29e38b83
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19: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
frosch
1e09854cb7
(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a CargoArray instead of a pointer to a static array.
2009-06-27 21:36:04 +00:00
yexo
8bc9adde19
(svn r16648) -Codechange: move some more includes around
2009-06-24 22:38:47 +00:00
yexo
44c15e4196
(svn r16647) -Codechange: remove newgrf.h include from newgrf_engine.h to prevent unnecessary inclusion newgrf.h anyway
2009-06-24 21:33:11 +00:00
smatz
8343340acb
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
rubidium
512b021e26
(svn r16581) -Codechange: unify the access to Engine::lifelength.
2009-06-16 13:52:18 +00:00
frosch
09d64ff79d
(svn r16386) -Codechange: Move ShowAdditionalText() to build_vehicle_gui and make it static.
2009-05-22 19:47:26 +00:00
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +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
frosch
d338fff1b9
(svn r16110) -Codechange: use {CARGO} instead hardcoded cargo name (there is always something duplicated :p)
2009-04-21 16:52:58 +00:00
frosch
f46f8bd427
(svn r16044) -Fix (r16042): Win compilation. (Swallow)
2009-04-12 18:40:39 +00:00
frosch
6ebe8d7fc6
(svn r16042) -Feature [FS#1941]: Allow filtering of vehicle purchase lists by cargo. Based on patch by sbr.
2009-04-12 17:38:01 +00:00
frosch
07a5f529bf
(svn r16038) -Codechange: Remove BuildVehicleWindow::regenerate_list in favor of the GUIList flag.
2009-04-12 14:12:17 +00:00
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
2009-03-29 09:49:11 +00:00
rubidium
89ceed55bf
(svn r15850) -Codechange: replace some magic constants with the less magic line height constant
2009-03-25 20:16:09 +00:00
alberth
6567a29e18
(svn r15820) -Codechange: Some windows using nested widgets
2009-03-22 21:16:57 +00:00
alberth
3b2f47c470
(svn r15809) -Codechange: Add name comments to build vehicle widgets
2009-03-22 12:14:44 +00:00
rubidium
dfe5dad5f6
(svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width.
2009-03-22 11:06:25 +00:00
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
2009-03-21 20:12:12 +00:00
rubidium
529dd0867f
(svn r15778) -Fix [FS#2749] (r15666): when sorting on cost don't sort on the running cost (sbr)
2009-03-21 11:16:10 +00:00
frosch
6dd04a9a78
(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere.
2009-03-18 19:32:13 +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
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
frosch
fa35dc10e5
(svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft carries only cargo.
2009-03-13 23:49:12 +00:00
rubidium
fa78027ffd
(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.
2009-03-10 21:17:00 +00:00
frosch
e01106f66b
(svn r15592) -Fix: Refit-info in purchase list did only check the first articulated part.
2009-02-27 20:40:39 +00:00
frosch
d3850e101c
(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.
2009-02-21 12:52:41 +00:00
rubidium
a5f30dd553
(svn r15521) -Codechange: add helper function to get the display tractive effort of a vehicle.
2009-02-19 09:45:44 +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
rubidium
ac7757324e
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
2009-02-04 16:59:41 +00:00
frosch
c28c4c1986
(svn r15306) -Codechange: Deduplicate code by adding Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them)
2009-02-01 16:10:06 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
glx
c1cf3934fa
(svn r15263) -Codechange: added Engine::GetCost() to remove some code duplication.
2009-01-25 00:57:03 +00:00
glx
e8b5f49861
(svn r15261) -Add: added Engine::GetRunningCost() to remove some code duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-24 20:14:15 +00:00
peter1138
3d404c2927
(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.
2009-01-23 20:53:43 +00:00
rubidium
c8f3630e64
(svn r14953) -Fix (r14952): the "available aircraft" list caused a crash
2009-01-10 10:41:22 +00:00
rubidium
3d6c09b38d
(svn r14952) -Codechange: unify the "can vehicle go to station" tests
2009-01-10 09:51:14 +00:00
smatz
254e19da91
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
2009-01-03 16:06:58 +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
c7c65cf5bc
(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.
2008-12-16 22:02:12 +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