rubidium
004b2b6001
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
14 years ago
rubidium
a029b2b83a
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
14 years ago
rubidium
116a1201dd
(svn r21409) -Codechange: limit depot name by amount of characters, not bytes
14 years ago
rubidium
091263317e
(svn r21409) -Codechange: limit depot name by amount of characters, not bytes
14 years ago
terkhen
88fe4eaf79
(svn r21241) -Fix: Display dragged vehicles in the correct orientation while using RTL languages.
14 years ago
terkhen
f31485a2f9
(svn r21241) -Fix: Display dragged vehicles in the correct orientation while using RTL languages.
14 years ago
rubidium
5ec2bcc0d9
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
alberth
063931d435
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
alberth
7e48d85104
(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)
14 years ago
yexo
2d2b6630d7
(svn r20788) -Fix (r20733)[FS#4119]: start/stop all vehicles from non-train depots was broken
14 years ago
yexo
c3d4763a00
(svn r20788) -Fix (r20733)[FS#4119]: start/stop all vehicles from non-train depots was broken
14 years ago
rubidium
91ea9c969f
(svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters
14 years ago
rubidium
0e840f7360
(svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters
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
smatz
fd54943c7a
(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
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
bbafd249ca
(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit
14 years ago
rubidium
cc658392eb
(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit
14 years ago
rubidium
b07f2beb67
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
14 years ago
rubidium
646fbb628a
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
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
926594b599
(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
019878118d
(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
rubidium
38ca44594f
(svn r20539) -Codechange: make order backups more self-contained.
14 years ago
rubidium
9d814f04dd
(svn r20533) -Codechange: shuffle a bit with the bits in the sell command
14 years ago
rubidium
9b8d7048da
(svn r20533) -Codechange: shuffle a bit with the bits in the sell command
14 years ago
frosch
51f556093e
(svn r20465) -Codechange: Use NWID_SELECTION to hide horizontal scrollbar and 'sell chain' button for non-train depot windows.
14 years ago
frosch
419c269e56
(svn r20465) -Codechange: Use NWID_SELECTION to hide horizontal scrollbar and 'sell chain' button for non-train depot windows.
14 years ago
frosch
6d7b2237f0
(svn r20464) -Codechange/Fix: Do not use a scrollbar to store the number of columns for non-train depot windows.
14 years ago
frosch
e5ff41ee53
(svn r20464) -Codechange/Fix: Do not use a scrollbar to store the number of columns for non-train depot windows.
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
9e538acc03
(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
71ca58c2bb
(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
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(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
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
5e83d73679
(svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again.
14 years ago
rubidium
0e078670b7
(svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again.
14 years ago
terkhen
010ebadb0a
(svn r20121) -Add: OnHover method for windows.
14 years ago
terkhen
9cf9bb9b92
(svn r20121) -Add: OnHover method for windows.
14 years ago
terkhen
840f09ddf0
(svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it.
14 years ago
terkhen
10fbb87823
(svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it.
14 years ago
alberth
0418fcd988
(svn r19888) -Add [FS#3705]: Add highlighting of drag destination in depot gui (sbr).
14 years ago
alberth
268bc7d571
(svn r19888) -Add [FS#3705]: Add highlighting of drag destination in depot gui (sbr).
14 years ago
rubidium
63865a5ed7
(svn r19801) -Add [FS#3691]: custom naming of depots. Based on work by sbr
14 years ago
rubidium
1a5d7b34d8
(svn r19801) -Add [FS#3691]: custom naming of depots. Based on work by sbr
14 years ago
rubidium
99e88d6f7f
(svn r19796) -Codechange: introduce and use a {DEPOT} string command
14 years ago
rubidium
5051ef80c6
(svn r19796) -Codechange: introduce and use a {DEPOT} string command
14 years ago
smatz
691261674a
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
14 years ago
smatz
e3c89df398
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
14 years ago
smatz
ce9d3a2d6a
(svn r19710) -Codechange: deduplicate GUI code for starting/stopping vehicles
14 years ago
smatz
4a9ef6ce60
(svn r19710) -Codechange: deduplicate GUI code for starting/stopping vehicles
14 years ago
frosch
a4413f4cf6
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
14 years ago
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
14 years ago
frosch
94a5c917a5
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
26b203e3ff
(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.
15 years ago
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.
15 years ago
alberth
0e9dac92d2
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
15 years ago
alberth
91872aca48
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
15 years ago
alberth
f20e477a02
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
rubidium
3fcccd89fe
(svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot
15 years ago
rubidium
90b7f0f3cb
(svn r18575) -Fix [FS#3393]: unit numbers weren't always fully shown in the depot
15 years ago
peter1138
bbf3805523
(svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart
15 years ago
peter1138
f49491ddcd
(svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart
15 years ago
rubidium
45eb0be570
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
50359b2d08
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
15 years ago
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
15 years ago
rubidium
f8b79068e6
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
alberth
7cf5681377
(svn r18231) -Fix: Enable filling of matrix widget in the depot gui.
15 years ago
alberth
bfd5cc456a
(svn r18231) -Fix: Enable filling of matrix widget in the depot gui.
15 years ago
alberth
5bee09c924
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
18b33fde83
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
alberth
8139a8d96f
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
15 years ago
alberth
bf93372ca2
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
15 years ago
rubidium
f106bbbe5c
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
15 years ago
rubidium
d913282e7a
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
15 years ago
rubidium
ef4e936acb
(svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances
15 years ago
rubidium
e9b6e73333
(svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances
15 years ago
rubidium
38da13cf7d
(svn r18163) -Codechange: make the depot GUI RTL aware
15 years ago
rubidium
b4e9cb3ca3
(svn r18163) -Codechange: make the depot GUI RTL aware
15 years ago
rubidium
ffa705dace
(svn r18157) -Codechange: some minor tweaks of the boundaries of strings etc. in the depot window
15 years ago
rubidium
3180d16baf
(svn r18157) -Codechange: some minor tweaks of the boundaries of strings etc. in the depot window
15 years ago
rubidium
df69324aa6
(svn r18154) -Codechange: let the depot window better scale with bigger fonts
15 years ago
rubidium
d747a643cc
(svn r18154) -Codechange: let the depot window better scale with bigger fonts
15 years ago
rubidium
8e11cd3a42
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
350b556028
(svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot
15 years ago
rubidium
9e84075db5
(svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot
15 years ago
rubidium
68f146d83c
(svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
15 years ago
rubidium
a808623b24
(svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
15 years ago
rubidium
b7ef6b3ca8
(svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists.
15 years ago
rubidium
ef11ce84ee
(svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists.
15 years ago
rubidium
a13fd6ddce
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
15 years ago
rubidium
626de6b128
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
15 years ago
rubidium
b01251092e
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
rubidium
c1365b3cc1
(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.
15 years ago
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.
15 years ago
alberth
862b8b6247
(svn r17833) -Codechange: Depot gui should use relative widget coordinates for clicking.
15 years ago
alberth
fe717d033e
(svn r17833) -Codechange: Depot gui should use relative widget coordinates for clicking.
15 years ago
frosch
9259446b76
(svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately.
15 years ago
frosch
21fdc65ce4
(svn r17830) -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately.
15 years ago
rubidium
b72898c8a3
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
alberth
0fdc77ef5a
(svn r17760) -Revert (r17648): _local_company is less constant than you'd expect.
15 years ago
alberth
9677e51261
(svn r17760) -Revert (r17648): _local_company is less constant than you'd expect.
15 years ago
alberth
d771df960b
(svn r17653) -Fix (r17649): Widgets at the bottom button bar of the depot window should adapt to differences in height.
15 years ago
alberth
8a21979b42
(svn r17653) -Fix (r17649): Widgets at the bottom button bar of the depot window should adapt to differences in height.
15 years ago
alberth
d8f128b97c
(svn r17652) -Codechange: Merging/renaming the depot block-size functions.
15 years ago
alberth
4130ae0dfa
(svn r17652) -Codechange: Merging/renaming the depot block-size functions.
15 years ago
alberth
200a83d033
(svn r17650) -Codechange: Checking a condition once is enough.
15 years ago
alberth
dd108f2399
(svn r17650) -Codechange: Checking a condition once is enough.
15 years ago
alberth
e678f32cb2
(svn r17649) -Codechange: Depot gui uses pure nested widgets.
15 years ago
alberth
f7120de1f7
(svn r17649) -Codechange: Depot gui uses pure nested widgets.
15 years ago
alberth
4a34775949
(svn r17648) -Codechange: Move type initialization and widget disabling to the constructor.
15 years ago
alberth
16dcc64540
(svn r17648) -Codechange: Move type initialization and widget disabling to the constructor.
15 years ago
alberth
01c38e380f
(svn r17647) -Codechange: Moving widget array access to outside the function.
15 years ago
alberth
9c3722f31c
(svn r17647) -Codechange: Moving widget array access to outside the function.
15 years ago
alberth
fe9235c224
(svn r17643) -Codechange: Code style for variables in depot gui.
15 years ago
alberth
a47138ad34
(svn r17643) -Codechange: Code style for variables in depot gui.
15 years ago
alberth
3682318c2c
(svn r17626) -Codechange: Use Dimension structs instead of array of length 2 for storing horizontal/vertical information.
15 years ago
alberth
53188cd528
(svn r17626) -Codechange: Use Dimension structs instead of array of length 2 for storing horizontal/vertical information.
15 years ago
alberth
e89c79aeb7
(svn r17624) -Codechange: Swap entries in _resize_cap[][] so the code does what the docs say.
15 years ago
alberth
39c14f9044
(svn r17624) -Codechange: Swap entries in _resize_cap[][] so the code does what the docs say.
15 years ago
smatz
f85b8c4e09
(svn r17596) -Codechange: constify some tables
15 years ago
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
15 years ago
rubidium
2e5596025c
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
f660dd7109
(svn r17446) -Codechange: rename BUILD with BUY for strings that are about building (in the future buying) vehicles.
15 years ago
rubidium
1f21a5cb41
(svn r17446) -Codechange: rename BUILD with BUY for strings that are about building (in the future buying) vehicles.
15 years ago
rubidium
e80d296638
(svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers
15 years ago
rubidium
78c9827000
(svn r17369) -Codechange: make the depot, group and industry GUIs use the scrollbar wrappers
15 years ago
rubidium
9442334163
(svn r17368) -Codechange: remove pointless passing of 'this' as parameter
15 years ago
rubidium
1c94d98bb9
(svn r17368) -Codechange: remove pointless passing of 'this' as parameter
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
c096e3d54c
(svn r17228) -Codechange: some coding style fixes
15 years ago
rubidium
7fb95e2c2b
(svn r17228) -Codechange: some coding style fixes
15 years ago
alberth
fe2fcace25
(svn r17194) -Fix (r17175): Depot sell buttons did not raise again.
15 years ago
alberth
75f8a9db0a
(svn r17194) -Fix (r17175): Depot sell buttons did not raise again.
15 years ago
frosch
50b1aacdb0
(svn r17185) -Codechange: Tweak depot gui and vehicle lists, so text overlaps less with vehicle images.
15 years ago
frosch
2ad4bf74a1
(svn r17185) -Codechange: Tweak depot gui and vehicle lists, so text overlaps less with vehicle images.
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
f62b2f9c7e
(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place
15 years ago
rubidium
b04ba7dcea
(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place
15 years ago
rubidium
01eabc5f4c
(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.
15 years ago
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.
15 years ago
rubidium
04ee98df52
(svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message
15 years ago
rubidium
2962d8f0fc
(svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message
15 years ago
rubidium
49fcb20a91
(svn r16919) -Codechange: unify some more StringID w.r.t. their naming
15 years ago
rubidium
c17c31b5b6
(svn r16919) -Codechange: unify some more StringID w.r.t. their naming
15 years ago
frosch
fec6129cd1
(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
15 years ago
frosch
d5a4c89365
(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
15 years ago
frosch
f1f4edfbd1
(svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it.
15 years ago
frosch
7b92d9efe4
(svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it.
15 years ago
frosch
5310721e96
(svn r16874) -Change: Give the number behind free wagon chains in depots the same meaning as for trains.
15 years ago
frosch
d3a95e9bbd
(svn r16874) -Change: Give the number behind free wagon chains in depots the same meaning as for trains.
15 years ago
frosch
12ea92a257
(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
15 years ago
frosch
f129634f52
(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
15 years ago
alberth
fe9f5cbc46
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
alberth
d0a47fc1b4
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
smatz
a2ce1e6e8f
(svn r16820) -Codechange: remove unused parameter in HandleCloneVehClick()
15 years ago
smatz
db63e1ad82
(svn r16820) -Codechange: remove unused parameter in HandleCloneVehClick()
15 years ago
frosch
1fbbf29987
(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length.
15 years ago
frosch
3973b1e7cb
(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length.
15 years ago
frosch
fb9ec40e44
(svn r16799) -Codechange: When drawing articulated road vehicles in the vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8.
15 years ago
frosch
78eccd05be
(svn r16799) -Codechange: When drawing articulated road vehicles in the vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8.
15 years ago
rubidium
74f56861e9
(svn r16772) -Fix [FS#3019]: don't use the same error message for turning around road vehicles and flipping parts of trains in the depot
15 years ago
rubidium
741a340b8b
(svn r16772) -Fix [FS#3019]: don't use the same error message for turning around road vehicles and flipping parts of trains in the depot
15 years ago
rubidium
18fbe0aac4
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
15 years ago
rubidium
4d14c1b534
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
15 years ago
smatz
1e1f0ab2cf
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
15 years ago
smatz
d86e17d65a
(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
15 years ago
smatz
20fedeb3d6
(svn r16717) -Codechange: make IsFrontEngine() member of Train
15 years ago
smatz
adc5363202
(svn r16717) -Codechange: make IsFrontEngine() member of Train
15 years ago
frosch
523cde0798
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
frosch
a288e4d82f
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
frosch
4c3f480f92
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
frosch
812ad41f23
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
smatz
a9602401f0
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
15 years ago
smatz
05c695a647
(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()
15 years ago
smatz
af85994f7f
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
15 years ago
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
15 years ago
rubidium
d39f442bd0
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
15 years ago
rubidium
e3c5bc8d2e
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
15 years ago
rubidium
c496a3e014
(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.
15 years ago
rubidium
0d99b6c71c
(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.
15 years ago
rubidium
cd382b28a3
(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
15 years ago
rubidium
6237fe1462
(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
15 years ago
rubidium
4c0542c17f
(svn r16393) -Codechange: move VehicleRail to Train.
15 years ago
rubidium
da5661a0c8
(svn r16393) -Codechange: move VehicleRail to Train.
15 years ago
rubidium
489253b630
(svn r16390) -Codechange: move u.road to RoadVehicle.
15 years ago
rubidium
7a37220881
(svn r16390) -Codechange: move u.road to RoadVehicle.
15 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
15 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
15 years ago
rubidium
8a8ec3001a
(svn r16296) -Codechange: silence some ICC warnings
15 years ago
rubidium
d23f616e9f
(svn r16296) -Codechange: silence some ICC warnings
15 years ago
rubidium
650cb3694e
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
15 years ago
rubidium
53887e07bb
(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
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.
15 years ago
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
15 years ago
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
15 years ago
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
15 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
15 years ago
rubidium
12f1abbce0
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
15 years ago
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
15 years ago
rubidium
2a422e3e95
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
15 years ago
rubidium
69decac406
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
15 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
15 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
15 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
15 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
15 years ago
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
15 years ago
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
15 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
90e2465d7d
(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
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
ca45774160
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
16 years ago
smatz
e00cf92f47
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
16 years ago
frosch
10b664dbac
(svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged.
16 years ago
frosch
17a9bab142
(svn r14924) -Fix (r7403): Do not unnecessarily reset the cursor, when a different vehicle is dragged.
16 years ago
glx
c61674221c
(svn r14840) -Cleanup: remove duplicate includes
16 years ago
glx
c7959ce2a9
(svn r14840) -Cleanup: remove duplicate includes
16 years ago
rubidium
1f5d51562f
(svn r14758) -Fix: determine the real size of a depot before trying to place it.
16 years ago
rubidium
ee952b10d9
(svn r14758) -Fix: determine the real size of a depot before trying to place it.
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago