summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
AgeCommit message (Collapse)Author
2020-01-05Change: In the industry directory window an industry will be greyed out if ↵stormcone
it temporarily does not accept the cargo selected by the acceptance cargo filter.
2020-01-05Change: Move the filtered cargo to the first place in the industry directory ↵stormcone
window's cargo lists
2020-01-05Feature: Industry directory cargo filteringstormcone
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-11-13Fix #7631: 16 out cargo support for industry directoryglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-18Codechange: use std::array for _sorted_industry_typesglx
2019-04-13Codechange: use std::sort() in GUIListglx
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-28Fix: MSVC warnings (#7423)glx22
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-20Fix #7384: Industry Chain tooltips did not display on right-click.peter1138
This is fixed by handling the new Window::OnTooltip() event instead of OnHover()
2019-01-19Fix 8859381: Display of requires/produces in Build Industry windowNiels Martin Hansen
Change the window to use a dynamically generated string of cargoes, instead of one of a few fixed-length lists. With up to 16 cargoes on each list, having 16 with the only difference how many are listed seems like a bad maintenance idea.
2019-01-11Change: OnGameTick() is only called when not paused.Peter Nelson
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-11-03Fix: Industry chain window layout no more unnecessarily large when the ↵Niels Martin Hansen
number of cargoes in/out isn't large either
2018-11-03Add: NewGRF support for 16-in-16-out industriesNiels Martin Hansen
2018-11-03Add: Industries can produce and accept up to 16 different cargoesNiels Martin Hansen
2018-10-31Fix: Remove various dead or unnecessary assignmentsCharles Pigott
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-12-27(svn r27952) -Change: Reword texts in industry view, when stockpiling is used.frosch
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-02-26(svn r27751) -Feature: Display cargo suffix of accepted cargoes in industry ↵alberth
view based on cb37 result type. Industry-sets that have no stockpiling get better control over the displayed accepted cargo information. - result 0401 only prints the accepted cargo - results 0800-0BFF prints the accepted cargo and a string (but not the amount)
2017-02-26(svn r27750) -Codechange: Add cb37 result type to the cargo suffix.alberth
2017-02-26(svn r27749) -Codechange: Fold cb37 cargo suffix text in a structure.alberth
2015-05-09(svn r27277) -Codechange: Make _displayed_industries a std::bitset.frosch
2014-10-05(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort ↵peter1138
buttons with non-static width.
2014-08-09(svn r26723) -Fix[FS#5997]: Properly check for cargo acceptance of houses.alberth
2014-06-20(svn r26656) -Fix [FS#6044]: Production cheat cannot not be allowed to be ↵planetmaker
active in multiplayer for desync reasons, even when activated in singleplayer previously
2014-06-10(svn r26640) -Cleanup: Remove some pointless STR_JUST_STRING detours.frosch
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-01-12(svn r26241) -Codechange: Remember the GRFFile which filled the TextRefStack ↵frosch
in the TextRefStack.
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-11-24(svn r26080) -Fix: possible out of bounds array accessrubidium
2013-10-12(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.frosch
2013-08-18(svn r25732) -Fix: In BuildIndustryWindow in RTL mode, draw industry color ↵frosch
icon at the right. (sbr)
2013-08-10(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0fonsinchen
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-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