summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
AgeCommit message (Collapse)Author
2020-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2019-12-21Codechange: Replace FOR_ALL_ENGINES 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-28Fix: MSVC warnings (#7423)glx22
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2018-10-31Change: Clone tool in depot window now behaves like clone button in vehicle ↵Alexander Weiss
window. Keep the tool active when share-cloning. Open the vehicle GUI when copy-cloning. (#6754)
2017-12-10(svn r27938) -Fix (r27899): When scrolling in the train depot, also scroll ↵frosch
the tile separators.
2017-12-10(svn r27937) -Change: When train depots have a horizontal scrollbar, allow ↵frosch
scrolling 1 tile beyond the longest train, so you can actually attach a wagon at the end.
2017-08-26(svn r27899) -Feature: Draw vertical separators at tile distance in the ↵frosch
train depot GUI. This only applies if all vehicles use consistent lengths, i.e. either if only using default vehicles, or if only using NewGRF vehicles with 32px reference width. (based on patch by Wolf01)
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2016-08-15(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.frosch
2016-08-15(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple ↵frosch
sprites.
2016-05-29(svn r27583) -Fix [FS#6415]: Do not decrease the column width of depot ↵frosch
windows when vehicles with high unitnumbers leave. (Airbus)
2015-11-20(svn r27450) -Feature[FS#6391](r27446): Lower the sell-chain button in the ↵alberth
train depot GUI while dragging a vehicle over it. (Eearslya)
2015-11-14(svn r27446) -Feature: Lower the sell-vehicle button in the depot GUI while ↵frosch
dragging a vehicle over it. (Eearslya)
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2015-02-01(svn r27133) -Fix: Dragging of free wagons in depot failed with GUI zoom.frosch
2014-10-14(svn r27014) -Fix [FS#6102]: unit number was not always fully shown in depotsrubidium
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-11-25(svn r26106) -Codechange: document fall through explicitlyrubidium
2013-07-01(svn r25548) -Fix [FS#5629] (r25537): Removed too much code and forgot some ↵frosch
other places.
2013-06-30(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of ↵frosch
rows and columns from the resize step size.
2013-06-30(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX ↵frosch
widgets.
2013-06-01(svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all ↵frosch
of them.
2013-05-26(svn r25294) -Feature: Add another button to window title bars to resize the ↵frosch
window to its default size.
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
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-02(svn r24955) -Change (r24808) [FS#4458]: Revert to opening the vehicle GUI ↵frosch
again when cloning vehicles using the clone-button from the depot GUI. This button cannot be used for sequential cloning, so the argument about opening many windows does not hold as it does for the clone button from the vehicle GUI.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-26(svn r24854) -Fix (r24839): Only consider vehicles available in the climate ↵frosch
for purchase/depot cell size.
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-12-09(svn r24808) -Feature(ette) [FS#4458]: When share-cloning vehicles don't ↵frosch
open the vehicle window of the new vehicle. The only reasonable thing to do with the new vehicle is to start it, which can also be done via the depot GUI.
2012-12-08(svn r24801) -Codechange: Add functions to set integral DParams to suitable ↵frosch
values for size computations.
2012-11-11(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.frosch
2012-06-23(svn r24351) -Fix: Short vehicles were not properly positioned at the cursor ↵frosch
when dragging for RTL languages.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-16(svn r23539) -Codechange: prevent conflict between widget naming of ↵rubidium
(vehicle) depots and vehicle details
2011-12-16(svn r23531) -Codechange: document and rename widgets to be consistent and ↵truebrain
understandable
2011-12-15(svn r23528) -Codechange: move widget enums to widgets/NNN_type.htruebrain
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-12-10(svn r23484) -Fix [FS#4770]: in case you already have orders, ignore the ↵rubidium
vehicles when adding an extra order
2011-11-24(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.peter1138
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-04-17(svn r22343) -Change: Remove pixel limiter for query strings.terkhen
2011-04-09(svn r22305) -Add: One digit for the fractional part of train lengths in the ↵frosch
depot view.