summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Pass unpacked command arguments to command callbacks (except ↵Michael Lutz
Script).
2021-12-16Codechange: Un-bitstuff remaining transport infrastructure commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff station/depot/waypoint 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: Template DoCommand 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: Use lambdas instead of CommandContainer to manage station picker ↵Michael Lutz
commands.
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-12-16Codechange: Move command arguments to the back of the DoCommand function call.Michael Lutz
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2021-04-28Cleanup: Replace FOR_ALL_SORTED_ROADTYPES macro with range iterator.Peter Nelson
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-01-08Fix af22a4f2: scenario editor doesn't have build station/depot/etc (#8529)Patric Stout
2021-01-08Add: show in the tooltip of disabled toolbar buttons why they are disabledPatric Stout
2021-01-08Change: always allow to click on the toolbar icons for road/rail/dock/airportPatric Stout
This change allows a user to see what is available and what will become available before it is available, instead of only disabling the button with no further explanation. It also always allows building roads and canals, even if no vehicles are available for road / water. For rail/road/tram, a dropdown with available types is shown. If none are available, it reads "None". If the type is not yet available, it is greyed out. For dock/airport, this always open the toolbar, but building airports, docks, and depots buttons are disabled till vehicles are available for those. Road is the only exception, with the primary road always being available. Here too, stations and depots are disabled till vehicles become available. It does mean you can now always build roads to for example help towns grow.
2020-07-27Fix: Properly invalidate mouse-over station coverage highlight (#8263)Łukasz Hryniuk
2020-05-19Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was ↵Yexo
doubled
2020-04-05Fix #8055, c02ef3e: Crash when roadtype availability changed with the road ↵stormcone
toolbar open (#8058)
2020-03-30Fix #8043, c02ef3e4: Incorrect handling of global road/tram hotkeysglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-08Fix #7635: Game crash on exit scenario editor.stormcone
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-29Fix 81d335b: Don't check state of widget not present in scenario editor. (#7551)PeterN
2019-04-25Feature: Add existing station coverage area display when placing new station ↵peter1138
parts.
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-06-06Fix #6659: Bus stations can be demolished when not in demolish mode (#6815)Alexis
For Bus and Road stations only, if you are in demolish mode and click on the station without releasing the button. Then you cancel demolish mode with R key. Finally you release the mouse button. The station was demolished, instead of being built. The demolish mode was not checked when mouse up event occured.
2017-01-15(svn r27734) -Change: Hide the drive-in stops from the tram station picker.frosch
2016-05-22(svn r27577) -Fix [FS#6386]: Dock and roadstop picker, client list and town ↵frosch
authority window did not auto-resize according to their content when they were positioned at the bottom of the screen. (Eearslya)
2016-05-22(svn r27571) -Codechange: Consistent naming for command callbacks which play ↵frosch
a sound effect.
2015-08-10(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing ↵michi_cc
conversions in initializer lists.
2015-04-26(svn r27251) -Feature [FS#6252]: Make Ctrl+Remove-Roadstop also remove the ↵frosch
road, just like for rail stations. (adf88)
2015-02-22(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing ↵frosch
max-vehicles settings. (adf88)
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2014-12-18(svn r27084) -Doc: Improve documentation of AllocateWindowDescFront.alberth
2014-09-22(svn r26906) -Codechange: Scale depot and station picker buttons by GUI zoom ↵peter1138
level.
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
2014-03-23(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound ↵frosch
effect. Rename the enum items to properly reflect their purpose.
2013-10-12(svn r25854) -Change: Display the cost to upgrade a bridge at the end of ↵zuu
bridge that was clicked and not the other end, which could be outside of the screen in some cases (cirdan, LordAro)
2013-06-15(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.frosch
2013-06-15(svn r25412) -Codechange: Make use of Window::OnHotkeyfrosch
2013-06-15(svn r25410) -Codechange: Put all hotkeys of a window into a static ↵frosch
HotkeyList member.
2013-06-15(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.frosch