summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Don't use a global for the 'not enough cash' message.Michael Lutz
2021-12-16Codechange: Don't use globals for story/goal/sign/group command proc return ↵Michael Lutz
values.
2021-12-16Codechange: Pass unpacked command arguments to command callbacks (except ↵Michael Lutz
Script).
2021-12-16Codechange: Un-bitstuff town-related 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: Make TileIndex a "strong" typedef to give it a distinct type.Michael Lutz
This is accomplished by changing it to a single member struct with the appropriate operator overloads to make it all work with not too much source modifications.
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-07-10Codechange: Don't explicitly unset _generating_world outside of genworld.cpp ↵Loïc Guilloux
(#9418)
2021-07-09Codechange: Remove FOR_EACH_SET_BITglx22
2021-06-27Fix #9402, 2e136285: Crash when founding town using default name (#9403)Loïc Guilloux
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
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 SetDParamStr that accepts std::string&rubidium42
2021-05-01Feature: make the town directory horizontally resizablerubidium42
2021-04-30Cleanup: Tidy up resize, fill and minimal size on widgets in town list window.Peter Nelson
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
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-07-27Codechange: Spell 'Viewport' consistentlyTechGeekNZ
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2020-01-12Codechange: Use cached town name for town list window filteringJonathan G Rennison
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 town directory window on population change if necessaryJonathan G Rennison
2020-01-07Fix 196d5868: Always apply filter on town directory rebuildglx
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-30Fix: clang and MSVC warnings (glx)Charles Pigott
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-08-17Add #6887: Option to show zone inside local authority boundary of townsGabda
Can be found at town information > local authority window Layout for button is same as Graph Keys Turn on/off for every town individually
2019-07-22Feature: Town name filtering (#7621)TELK
2019-04-27Fix 81d335b: Coverage button missing from town window in scenario editor.peter1138
2019-04-25Feature: Add station coverage area display for towns.peter1138
2019-04-13Codechange: use std::sort() in GUIListglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-28Fix: MSVC warnings (#7423)glx22
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-13Cleanup: Remove questionable syntax in town rating displayJohannes E. Krause
2018-06-23Feature #4186: Append '(City)' behind cities in the town directory (sbr)Alberth289346
2018-06-04Change: Use name of cargo instead of Passengers/Mail in town statistics. (#6801)PeterN
* Change: Use name of cargo instead of Passengers/Mail in town statistics. * Cleanup: Remove strings from all language files.
2018-05-02Change: Switch town growth rate and counter to actual game ticks (#6763)Pavel Stupnikov
2018-04-30Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.J0an Josep
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch