summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
AgeCommit message (Collapse)Author
2021-06-14Cleanup: nested_array should not be accessed directly.Peter Nelson
Replace accesses with GetWidget() as documented.
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
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-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.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-07-27Fix: Properly invalidate mouse-over station coverage highlight (#8263)Łukasz Hryniuk
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
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-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
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.
2015-02-22(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing ↵frosch
max-vehicles settings. (adf88)
2014-10-12(svn r26996) -Codechange: Don't clamp airport construction window size -- ↵peter1138
this causes very poor performance if the game window is not large enough.
2014-08-15(svn r26732) -Fix [FS#6083]: do not reset the last selected airport or ↵rubidium
layout (unless it is really necessary)
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-12-18(svn r26165) -Change [FS#5832]: Improve layout of build-airport GUI ↵frosch
(hackalittlebit)
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-08-18(svn r25731) -Fix [FS#5692]: Minor RTL alignment issues. (sbr)frosch
2013-06-30(svn r25532) -Fix: Do not make the minimal size of matrix or panel widgets ↵frosch
depend on their number of rows, since that changes when resizing the window.
2013-06-30(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX ↵frosch
widgets.
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
2013-06-15(svn r25401) -Fix-ish: Add missing includes with prototypes to functions ↵frosch
declared in the cpp file.
2013-06-11(svn r25395) -Fix [FS#5596]: The size of station construction windows could ↵frosch
oscillate when resizing the window moved the mouse into the window.
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.
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-11-11(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.frosch
2012-04-22(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to ↵frosch
NewGRFClass::GetClassCount()
2012-04-22(svn r24166) -Codechange: Turn NewGRFClass::Get(Tid, uint) and GetCount(Tid) ↵frosch
into non-static members GetSpec(uint) and GetSpecCount().
2012-04-22(svn r24162) -Codechange: Remove NewGRFClass::GetName() and SetName() in ↵frosch
favour of using Get() and direct member access (which is needed anyway for GRF string resolving).
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
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-11-10(svn r23179) -Codechange: use some tooltips that already existed (monoid)rubidium
2011-08-04(svn r22716) -Fix: Murphy is a bitchplanetmaker
2011-08-04(svn r22715) -Fix: If there's also no point in opening the air toolbar via ↵planetmaker
custom-defined global hotkeys, if there are no aircraft available
2011-06-04(svn r22538) -Fix [FS#4619]: possible crash when opening the airport build ↵rubidium
window for the first time
2011-05-27(svn r22497) -Codechange: Simplify button handling in airport build GUIplanetmaker
2011-05-27(svn r22495) -Fix: The layout selectors of the airport build GUI did not ↵planetmaker
latch properly
2011-05-27(svn r22494) -Fix: airport preview sprite can depend on the layout, so ↵yexo
update the cached SpriteID when the layout changes