summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
AgeCommit message (Collapse)Author
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: 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-05Codechange: do not use all upper case enumerators in a scoped enumRubidium
2021-09-23Fix: Changing raw industry funding method redraws GUI (#9572)Tyler Trahan
2021-08-11Fix #8316: Make sort industries by production and transported with a cargo ↵SamuXarick
filter possible (#8468)
2021-07-10Codechange: Don't explicitly unset _generating_world outside of genworld.cpp ↵Loïc Guilloux
(#9418)
2021-07-09Codechange: Remove FOR_ALL_SORTED_STANDARD_CARGOSPECSglx22
2021-06-17Fix: Wrong cargo line position in IndustryCargo window. (#9383)PeterN
Resolved by changing calculation to determine the offset based on centring the cargo lines in the available space.
2021-05-27Fix: do not hide parameter by local variable with the same namerubidium42
2021-05-15Fix: comparison of narrow type to wide type in loop (potential for infinite ↵Rubidium
loops)
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()