Rubidium
3a676a5af0
Codechange: replace static inline with static for non-class functions
9 months ago
Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
1 year ago
Peter Nelson
f177ce7c9a
Codechange: Base CargoArray off std::array.
...
This avoids needing to define array accessors and allows use of
default value initialization.
1 year ago
Rubidium
4e65ec1dc4
Codechange: do not declare functions in blocks
2 years ago
Jonathan G Rennison
10e76b2788
Fix #10032 : Capacities of articulated vehicles in build window
...
See also: #9954
2 years ago
Bernard Teo
8a78fa7121
Feature: Contextual actions for vehicles grouped by shared orders ( #8425 )
2 years ago
PeterN
53682b4b6b
Fix #10114 : Wonky depot layout. ( #10191 )
...
Depot lists internal layout was not handled well. This is improved by
throwing more Rects at it:
- Vehicle images are now be vertically centred in the rect.
- Image clipping is relaxed to cover the rect, improving larger sprites.
- Outline highlight is now aware of bevel thickness.
2 years ago
TechGeekNZ
a10013dd00
Codechange: Spell 'Viewport' consistently
...
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
4 years ago
glx
b50d77b831
Fix #8064 : Incorrect display of refit capacity
5 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
peter1138
e6bb90543e
Change: Show additional cost and refitted capacity in build vehicle window.
6 years ago
frosch
8e90072d3b
(svn r27631) -Codechange: Split GetSingleVehicleWidth from GetVehicleWidth.
8 years ago
frosch
ddc9205212
(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.
8 years ago
michi_cc
245e32a10e
(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi)
12 years ago
michi_cc
c75962e04c
(svn r24833) -Codechange: Replace magic numbers for invalidating vehicle-related windows with an enum.
12 years ago
rubidium
e40eb8177a
(svn r23735) -Codechange: remove ~50 includes from headers that weren't needed
13 years ago
truebrain
2aa774e831
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
13 years ago
michi_cc
3f853e7a56
(svn r23089) -Add: Allow specifying refits for go-to station orders.
13 years ago
frosch
bbc3409942
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
13 years ago
terkhen
a136200c39
(svn r21565) -Codechange: Add pixel skip to DrawRoadVehImage().
14 years ago
terkhen
759a596e0b
(svn r21563) -Codechange: Add function to get the width of a vehicle.
14 years ago
terkhen
d92f29b822
(svn r21560) -Codechange: Declare DrawVehicleImage in its header.
14 years ago
rubidium
4b605f51ab
(svn r20773) -Codechange: use packed VehicleListIdentifiers for some commands as well
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
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
smatz
c4175b752a
(svn r19957) -Codechange: remove VLW_WAYPOINT_LIST
15 years ago
alberth
268bc7d571
(svn r19888) -Add [FS#3705]: Add highlighting of drag destination in depot gui (sbr).
15 years ago
smatz
0040e88b7f
(svn r19876) -Fix (r14104): it was not possible to send all trains with common waypoint order to depot
15 years ago
rubidium
398418b8fa
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
15 years ago
smatz
e3c89df398
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
15 years ago
smatz
4a9ef6ce60
(svn r19710) -Codechange: deduplicate GUI code for starting/stopping vehicles
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
8d6e323ef8
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
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
a808623b24
(svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
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
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
15 years ago
alberth
c3992ab7b6
(svn r17852) -Codechange: Use viewport nested widget in the view-vehicle window.
15 years ago
alberth
ef5dc588de
(svn r17851) -Codechange: Use pure nested widgets for the view-vehicle window.
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
frosch
52f9b8ffbd
(svn r17147) -Fix [FS#3048]: Keep vehicle news and viewports following vehicles, when autoreplacing/renewing them.
15 years ago
rubidium
e473e69ba4
(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants
15 years ago
rubidium
cb0409fe52
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
15 years ago
rubidium
0658d6cb3d
(svn r16900) -Codechange: prepare the waypoint window for buoys
15 years ago
frosch
3973b1e7cb
(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length.
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
frosch
ea229c32bc
(svn r16483) -Codechange: Enumerate tabs in train details window.
16 years ago
frosch
09d64ff79d
(svn r16386) -Codechange: Move ShowAdditionalText() to build_vehicle_gui and make it static.
16 years ago
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.
16 years ago
michi_cc
84deeecc5b
(svn r15480) -Feature(tte): Show the cargo subtype in the vehicle details window.
16 years ago