summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
AgeCommit message (Collapse)Author
2021-05-08Fix: Apply unscaled padding to Viewport inside WWT_INSET. (#9219)PeterN
Since pixel dimensions in SetPadding() are scaled by GUI size, padding for inset viewports was excessive. Instead, automatically apply padding for WWT_INSET at widget level. This applies to all widgets inside a WWT_INSET, which in all instances is a NWID_VIEWPORT.
2021-05-06Codechange: add DrawString(Multiline) that accepts std::string&rubidium42
2021-05-06Codechange: add SetDParamStr that accepts std::string&rubidium42
2021-04-30Fix: Scale cargo lines in industry chain window.Peter Nelson
Replaces constant pixel values with values scaled based on font size. This allows the industry chain to maintain a consistent look across different sizes. Previously all except cargo line height were fixed.
2021-04-30Fix: Scale industry chain legend blob by font size.Peter Nelson
2021-04-30Fix: Scale legend blobs in Fund new industry window.Peter Nelson
2021-02-19Codechange: Apply coding styleSamuXarick
2021-02-10Feature: Remove all industries button in scenario editor (#8550)Kuhnovic
2021-01-22Feature: Allow GameScripts to add additional text to Industry view windowdP
2021-01-11Change: Relocate rename and location buttons in all windows.frosch
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-15Codechange: Make use of the improved C++17 emplace_back function.Michael Lutz
2020-12-14Add: new economy "frozen" that stops production changes and industry ↵Pavel Stupnikov
closures (#8282)
2020-09-25Fix 70f9c3c6: The *_filter_criteria variables contain an index, not a cargo. ↵stormcone
(#8320)
2020-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2020-06-01Codechange: remove has_newindustries globalYexo
2020-06-01Codechange: replace custom timer and OnGameTick() with OnHundrethTick()Yexo
2020-01-12Codechange: Use cached town, station, industry names for list window sortingJonathan G Rennison
This is to avoid needing to expensively regenerate name strings on every comparison when sorting by name in the town/station/industry list windows.
2020-01-12Change: Only resort industry directory window on production change if necessaryJonathan G Rennison
2020-01-07Fix: Non-deterministic name sorting in industry directory windowJonathan G Rennison
In the case where multiple industries have the same name, sorting in the industry directory window is non-deterministic. This results in the order changing on each re-sort, and is noticeable when the industries have different production or transported values.
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