Peter Nelson
313ee13e5f
Codechange: Add Rect version of FillDrawPixelInfo().
...
This simplifies most callers as they longer have to split out a rect.
10 months ago
Peter Nelson
c18a1494b7
Codechange: Remove FONT_HEIGHT_... macros. ( #11481 )
...
These make it look like we're dealing with a constant, but actually each is a call to `GetCharacterHeight(...)`.
10 months ago
Peter Nelson
bb6fa9bf3b
Change: Display cargo lists in sorted cargo order. ( #11383 )
12 months ago
Patric Stout
30172fc037
Codechange: cleanup CargoPacket in terms of variable/function names ( #11278 )
...
Over the years, things got reused and changed, making the current
names somewhat unclear in what they actually mean and do.
1 year ago
Rubidium
b133328737
Codechange: use std::string over strecat to create the RV capacity string
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
Michael Lutz
05ed9f56fd
Feature: [NewGRF] Engine name callback.
2 years ago
Rubidium
f001e84e5e
Codechange: use RAII to automatically restore _cur_dpi after use
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
Peter Nelson
ed60c88b0a
Change: Use power-of-2 scaling for some dimensions in GUI.
...
These are related to drawing sprites that are normally drawn on the
landscape, and should therefore still follow power-of-2 scaling to fit
correctly.
2 years ago
Peter Nelson
890b2666d3
Change: Use scaled WidgetDimensions.
2 years ago
Peter Nelson
c9a81fd67b
Change: Use Rect for drawing vehicle details.
2 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
frosch
149adc9cc1
(svn r27689) -Fix: MSVC warnings.
8 years ago
frosch
c175067ed9
(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.
8 years ago
frosch
d2393b4f6c
(svn r27666) -Codechange: Pass vehicle sprites around using a struct VehicleSpriteSeq.
8 years ago
frosch
a8080b6256
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
10 years ago
peter1138
ce9fab58bc
(svn r26951) -Codechange: Do the GUI-scale dance for vehicle, depot, and purchase lists.
10 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
7c0f34130c
(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it
11 years ago
frosch
5eddbb338b
(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
12 years ago
michi_cc
55cff8407f
(svn r24694) -Fix (r18136): Road vehicle selection frame wasn't drawn properly in the depot window.
12 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
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
734994c9ba
(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.
...
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
14 years ago
terkhen
a136200c39
(svn r21565) -Codechange: Add pixel skip to DrawRoadVehImage().
14 years ago
terkhen
5a124feb6d
(svn r21564) -Fix: Avoid drawing road vehicles outside of their given space.
14 years ago
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
rubidium
833c6f36f3
(svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical
15 years ago
peter1138
15fbf4af70
(svn r18467) -Fix (r17870): Missed positioning for cargo capacity of non-articulated road vehicles.
15 years ago
rubidium
e7810f8061
(svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows
15 years ago
rubidium
9e84075db5
(svn r18145) -Codechange: pass the 'proper' left and right values to DrawVehicleInDepot
15 years ago
rubidium
ddffeb791e
(svn r18144) -Codechange: ignore SETX(Y) spacing in vehicle details and graphical glitches due to (incorrect) SETX(Y) usage
15 years ago
rubidium
9bfcf2b615
(svn r18136) -Codechange: support RTL in the vehicle lists
15 years ago
rubidium
a808623b24
(svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Image
15 years ago
alberth
95ffbc2476
(svn r17870) -Codechange: Use fontsize when drawing roadveh, ship, and aircraft details.
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
frosch
e8c2992ae6
(svn r16872) -Codechange: Add RoadVehicle::GetDisplayImageWidth and simplify DrawRoadVehImage.
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
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
4d14c1b534
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
15 years ago
rubidium
61e735ba4c
(svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle.
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
812ad41f23
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
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
16 years ago