summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
AgeCommit message (Collapse)Author
2017-12-10(svn r27936) -Fix: When moving wagons in the depot, the drag highlight did ↵frosch
not exactly match the length of the dragged wagon chain.
2016-12-10(svn r27689) -Fix: MSVC warnings.frosch
2016-10-16(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.frosch
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2016-08-15(svn r27629) -Fix: When dragging multiple vehicles in the depot, make the ↵frosch
destination gap as long as the chain instead of just considering the first vehicle.
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2014-10-04(svn r26951) -Codechange: Do the GUI-scale dance for vehicle, depot, and ↵peter1138
purchase lists.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-06-24(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other ↵rubidium
than default fonts, so get rid of it
2013-04-13(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() ↵frosch
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-02-10(svn r24987) -Fix: When choosing a train in a depot to attach a newly ↵frosch
purchased wagon to, do not consider trains currently moving in and out of the depot.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-06-23(svn r24352) -Fix: When highlighting the drop position for vehicles in ↵frosch
depots, make space for all articulated parts.
2012-02-25(svn r23991) -Fix [FS#5076]: Also display the cargo subtype for vehicles ↵frosch
which have no capacity, but a subtype.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-11-01(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to ↵frosch
draw different sprites on the map and in various GUIs.
2011-05-01(svn r22405) -Document: some more "random-ish" tidbitsrubidium
2010-11-13(svn r21157) -Codechange: remove information about the text direction out of ↵rubidium
the language "list"
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-19(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command ↵rubidium
to increase the vehicle pool limit
2010-06-23(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the ↵rubidium
warnings into account
2010-05-23(svn r19888) -Add [FS#3705]: Add highlighting of drag destination in depot ↵alberth
gui (sbr).
2010-05-13(svn r19814) -Codechange: give some more unnamed enums a name, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2010-01-21(svn r18872) -Codechange: introduce PaletteID and use itrubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
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(svn r18779) -Codechange: merge the command callbacks of the primary ↵rubidium
vehicles; they are identical
2009-11-29(svn r18344) -Change [FS#2923]: do not split up articulated vehicles in the ↵rubidium
train details view. If an articulated vehicle it too 'wide' draw the information on the next line and if there are multiple cargos split that over multiple lines too. Based on work by frosch123.
2009-11-29(svn r18342) -Fix: erroneous spaces before ;rubidium
2009-11-23(svn r18256) -Codechange: make the vehicle details window big font awarerubidium
2009-11-18(svn r18162) -Fix: rest-of-train train selectionrubidium
2009-11-17(svn r18144) -Codechange: ignore SETX(Y) spacing in vehicle details and ↵rubidium
graphical glitches due to (incorrect) SETX(Y) usage
2009-11-17(svn r18142) -Codechange: make the vehicle details RTL (and huge ↵rubidium
ship/aircraft) aware
2009-11-17(svn r18136) -Codechange: support RTL in the vehicle listsrubidium
2009-11-16(svn r18133) -Codechange: pass the 'maximum' left/right positions to Draw*Imagerubidium
2009-11-16(svn r18129) -Codechange: Fix up train details window for correct offsets ↵peter1138
and line spacing.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-15(svn r17185) -Codechange: Tweak depot gui and vehicle lists, so text ↵frosch
overlaps less with vehicle images.
2009-08-05(svn r17075) -Codechange: rename ~750 strings to be more uniform with their ↵rubidium
relatives
2009-08-02(svn r17045) -Fix (r16867) [FS#3084]: Also 'p's can be important.frosch
2009-07-20(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().frosch
2009-07-17(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains ↵frosch
in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
2009-07-13(svn r16819) -Fix (r4868): Use the palette of the vehicle being drawn ↵frosch
instead of the one of the front vehicle.
2009-07-13(svn r16818) -Feature(ette): Highlight whole articulated vehicles in ↵frosch
traindepot instead of only the first part.
2009-07-13(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of ↵frosch
1/8 vehicle length.
2009-07-12(svn r16799) -Codechange: When drawing articulated road vehicles in the ↵frosch
vehicle details window, draw as many parts as the window fits instead of always up to a vehicle length of 80/8.
2009-07-01(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), ↵smatz
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train