rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
2010-01-21 01:38:13 +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
cd55161622
(svn r18752) -Codechange: unduplify some code
2010-01-07 16:39:04 +00:00
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
1f0da3710f
(svn r18324) -Codechange: there's no need for a default size when the window isn't resizable
2009-11-28 15:01:49 +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
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
1c5a92ae98
(svn r18121) -Codechange: pass the maximum left/right location to the Draw*Engine functions
2009-11-16 17:15:42 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
rubidium
53d80eebc8
(svn r18019) -Codechange: make the 'engine preview' window nested
2009-11-08 19:22:45 +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
955f48e0ac
(svn r17891) -Feature [FS#1619]: Show maximum tractive effort in the 'exclusive test'/'early offer'/'engine preview' window
2009-10-27 19:56:00 +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
alberth
0f9da2d636
(svn r17397) -Codechange: Add new vehicle news window.
2009-09-02 20:55:55 +00:00
alberth
5767972531
(svn r17328) -Codechange: Get the vehicle technical data as string rather than having it printed.
2009-08-30 18:41:03 +00:00
alberth
1ba000be12
(svn r17327) -Codechange: Allow external use of GetEngineCategoryName().
2009-08-30 17:54:11 +00:00
alberth
1a15f7e6a7
(svn r17325) -Codechange: Un-duplicate engine drawing routines.
2009-08-30 17:38:28 +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
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
2009-08-04 18:04:33 +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
rubidium
6e94e6f017
(svn r16449) -Fix [FS#2924]: vehicle recolouring wasn't done for engine preview/news
2009-05-27 17:18:53 +00:00
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
rubidium
11c6d30e77
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
2009-04-26 10:45:07 +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
glx
37cce7098b
(svn r16105) -Codechange: use {CARGO} instead hardcoded cargo name
2009-04-20 22:41:09 +00:00
rubidium
9a56844b67
(svn r16102) -Codechange: unify the vehicle info strings; reduce the number of duplicate strings and unifies the GUIs quite a bit
2009-04-20 21:29:41 +00:00
alberth
3bebfc6fd3
(svn r15878) -Codechange: New widgets for the engine preview window.
2009-03-28 13:35:07 +00:00
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
rubidium
a07fae67c3
(svn r15800) -Codechange: make the engine gui use the new multiline API.
2009-03-22 00:15:00 +00:00
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
2009-03-21 22:00:00 +00:00
rubidium
5c8906bff7
(svn r15786) -Codechange: enumify the engine preview widgets (and use them)
2009-03-21 20:39:37 +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
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
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
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +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