frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
rubidium
ab47c9dea7
(svn r20242) -Change: remove the need for "{WHITE}" control codes in some of the railtype NewGRF strings
...
-Fix: make it possible to properly assess the length of the rail toolbar caption
2010-07-30 12:15:22 +00:00
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
2010-07-26 13:08:48 +00:00
rubidium
398418b8fa
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
2010-05-13 09:44:44 +00:00
yexo
2330851d1d
(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window
2010-04-17 23:38:00 +00:00
terkhen
869fac9964
(svn r19573) -Fix (r19541): Special cargos did not appear at the refit list.
2010-04-07 14:17:29 +00:00
terkhen
8660890bbb
(svn r19539) -Codechange: Use a macro to loop through the list of sorted cargo specifications.
2010-04-02 12:20:41 +00:00
terkhen
b68fb8c6ed
(svn r19536) -Feature: Sort cargos at the filter by cargo dropdown in the build vehicle window.
2010-04-01 19:52:13 +00:00
terkhen
e27e5febb6
(svn r19480) -Fix: Stop reducing the size of the vehicle list after selecting a vehicle with a long description.
2010-03-20 12:21:01 +00:00
terkhen
81ca76a655
(svn r19475) -Cleanup: Remove an unneeded for when drawing detail panels.
2010-03-19 21:00:15 +00:00
yexo
e037512a6f
(svn r19451) -Cleanup: remove some unused code
2010-03-18 15:20:49 +00:00
terkhen
3ed1442e05
(svn r19348) -Add: Allow to sort road vehicles by power and by power vs running cost at the engine preview window.
2010-03-06 13:03:17 +00:00
terkhen
be3b839ded
(svn r19347) -Add: Vehicle GUI now shows power, weight and tractive effort for road vehicles.
2010-03-06 12:59:28 +00:00
rubidium
0072503496
(svn r19087) -Codechange: some typos in StringIDs
2010-02-10 20:20:18 +00:00
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
2010-01-30 18:34:48 +00:00
terkhen
272f2cd93e
(svn r18963) -Codechange: Give AccelerationModel a generical name.
2010-01-30 16:27:35 +00:00
rubidium
879668811c
(svn r18818) -Fix [FS#3526] (r18766): some train acceleration type conversions were missed
2010-01-15 22:21:50 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
66b900215a
(svn r18797) -Fix (r18781): building wagons didn't add them to a train
2010-01-13 21:49:15 +00:00
rubidium
2b97f38cd1
(svn r18781) -Codechange: pass the CommandCost to the callback instead of whether it succeeded or not.
...
-Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2010-01-11 18:46:09 +00:00
rubidium
833c6f36f3
(svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical
2010-01-11 18:34:02 +00:00
alberth
52c7d9897e
(svn r18612) -Fix [FS#3407]: Buy vehicle window did not properly disable panel drawing while shaded.
2009-12-23 10:12:43 +00:00
alberth
3323d64f28
(svn r18606) -Codechange: Introduce several forms of zero-size stacked display planes.
2009-12-22 20:43:25 +00:00
alberth
91872aca48
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
2009-12-21 16:24:29 +00:00
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
2009-12-20 20:08:39 +00:00
alberth
64f1e18830
(svn r18464) -Fix (r17863): Caption of the build vehicle window did not have company colours.
2009-12-11 20:37:24 +00:00
rubidium
ac4ef286f4
(svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable
2009-12-09 17:10:57 +00:00
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
8d6e323ef8
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
2009-11-24 21:13:36 +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
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
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
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
fdbe2d827c
(svn r18122) -Fix: the build vehicle GUI would draw a (few) pixels over the border
2009-11-16 17:56:59 +00:00
rubidium
1c5a92ae98
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
2009-11-16 17:15:42 +00:00
rubidium
e7dd53dffc
(svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code
2009-11-16 16:42:04 +00:00
rubidium
5589792d0c
(svn r18118) -Codechange: improve behaviour of the engine lists (both build vehicle/autoreplace) w.r.t. large(r) fonts and RTL. RTL support for 'wider than usual' vehicles is still needed though.
2009-11-16 16:22:14 +00:00
rubidium
f025475535
(svn r18117) -Codechange: don't pass the location of the vehicle count but whether to show the vehicle count
2009-11-16 15:11:54 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
frosch
ba1fc280e3
(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.
2009-11-07 22:47:54 +00:00
frosch
79627b4f89
(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h
2009-11-05 19:46:17 +00:00
frosch
67cae40ec1
(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail consistent. Now always the cargo class decides.
2009-10-31 17:48:09 +00:00
rubidium
b7630b0e2a
(svn r17863) -Codechange: make the build vehicle window nested
2009-10-25 00:26:40 +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
rubidium
2f41c0411c
(svn r17850) -Codechange: remove most usage of delta on OnResize
2009-10-24 09:47:02 +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
frosch
1cab0dbc1d
(svn r17729) -Cleanup: Deduplicate some code.
2009-10-06 19:56:43 +00:00
frosch
9a9d0ee7c0
(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.
2009-10-06 19:52:38 +00:00
frosch
f3aacb8fe3
(svn r17725) -Codechange: Reduce usage of EngInfo and XxxVehInfo, esp. when a Engine * is already present.
2009-10-06 19:17:07 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
17313b6e3f
(svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs
2009-09-13 17:47:07 +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
e69e3378b0
(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers
2009-09-02 07:17:15 +00:00
alberth
1a15f7e6a7
(svn r17325) -Codechange: Un-duplicate engine drawing routines.
2009-08-30 17:38:28 +00:00
smatz
100ae8efcc
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
2009-08-27 13:31:26 +00:00
rubidium
aca7ba714a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
2009-08-23 19:03:09 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +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
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