summaryrefslogtreecommitdiff
path: root/src/rail_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 rail 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-10-17Feature: Button to toggle showing advanced signal types (#9617)Charles Pigott
2021-09-05Feature: Hide block signals in GUI by default (#8688)Tyler Trahan
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
2021-05-29Codechange: use separate pre and post callbacks for int settingsrubidium42
2021-05-15Change: Use gender-neutral pronounsrubidium42
2021-05-15Fix: comparison of narrow type to wide type in loop (potential for infinite ↵Rubidium
loops)
2021-04-28Cleanup: Replace FOR_ALL_SORTED_RAILTYPES macro with range iterator.Peter Nelson
2021-04-21Cleanup: Remove unnecessary parameter of GetScrolledRowFromWidget()Peter Nelson
Line height defaults to the resize height of the relevant widget, which is set in all cases. Therefore it is not necessary to specify this value every time. Additionally fixes scrolled padding for the framerate window.
2021-04-02Fix: adjust object and rail station selection window padding to be ↵Didac Perez Parera
consistent (#8929) consistent
2021-04-02Add: Hotkey to focus the rail station class name filter editbox.stormcone
2021-03-25Fix #8875: Filter string in station window breaks flow in user interfaceKoen Bussemaker
2021-03-13Feature: allow filtering on name in rail station window (#8706)Didac Perez Parera
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-01-08Fix 85a49a0d3: hotkeys were enabled outside of GM_NORMAL (#8534)Patric 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.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-07Feature: option to auto remove signals when in the way during rail ↵Kuhnovic
construction (#8274)
2020-07-27Fix: Properly invalidate mouse-over station coverage highlight (#8263)Łukasz Hryniuk
2019-12-23Fix: Setting the default railtype to 'first/last available' did not work ↵frosch
with NewGRF defined railtypes.
2019-12-23Codechange: Use RAILTYPE_BEGIN instead of RAILTYPE_RAIL when the intention ↵frosch
is iteration.
2019-12-23Codechange: Use a switch with fall-through instead of a if-sequence with ↵frosch
context data between cases.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
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-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-31Change: Shorten engine rail type drop down in autoreplace window. (#7448)PeterN
In the autoreplace window, the rail type drop down is for choosing engines of the given time. Many rail types do not have engines specifically designed for them, and are merely compatible with other rail types. This list is thus unwieldy and many options have no engines available. As this drop down is for choosing _engine_ rail type rather than compatible rail types, we can list just the rail types explicitly listed by engines.
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-10Feature: Add rail icon to rail construction drop down list.peter1138
2019-03-09Add: windowshade for rail station construction windowAndy
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-07-26Change: Extend rail types to 64 (6 bit storage)Peter Nelson
2018-06-06Codechange: Change element type used for rail type usage stats array in ↵Jonathan G Rennison
SetDefaultRailGui The array is rail type sized in terms of number of elements. Each element should be a unsigned integer, not a rail type itself. This fixes runtime warnings reported by UndefinedBehaviorSanitizer.
2016-12-25(svn r27710) -Change: Limit waypoint area by maximum station spread already ↵frosch
when dragging. (adf88)
2016-12-08(svn r27683) -Change: Rearrange the autoreplace GUI for trains, and do not ↵frosch
filter it by railtype by default.