summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Un-bitstuff vehicle/engine commands.Michael Lutz
2021-12-16Codechange: Pass additional data as byte stream to command callbacks.Michael Lutz
2021-12-16Codechange: Template DoCommandP to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Align parameter order of command callbacks to command handlers.Michael Lutz
2021-12-16Codechange: Untangle command code, flags and error string for DoCommand*.Michael Lutz
2021-12-16Codechange: Move command arguments to the back of the networked command ↵Michael Lutz
function calls.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replaced SmallVector::Find() non-const with std::find()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
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