summaryrefslogtreecommitdiff
path: root/src/town_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 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
2016-05-22(svn r27577) -Fix [FS#6386]: Dock and roadstop picker, client list and town ↵frosch
authority window did not auto-resize according to their content when they were positioned at the bottom of the screen. (Eearslya)
2015-07-26(svn r27341) -Fix [FS#6332]: Do not rerandomise the town name when only ↵frosch
cost-estimating the founding.
2014-10-05(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort ↵peter1138
buttons with non-static width.
2014-09-20(svn r26859) -Fix [FS#6119]: Height computation of game script text in town ↵frosch
GUI did not consider margins.
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-10-28(svn r25922) -Codechange: Rename TOWN_IS_FUNDED to TOWN_IS_GROWING. It is ↵frosch
not tied to funding a town.
2013-07-27(svn r25630) -Fix [FS#5666]: city list sort of population and rating are ↵rubidium
reversed compared to the icon
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
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-03-17(svn r25097) -Feature[FS#5288]: Add sorting on rating for the town directory ↵alberth
window (based on work by sbr).
2013-03-17(svn r25096) -Feature: Do descending sort order on population by default, ↵alberth
and stabilize sort of equally populated towns.
2013-03-17(svn r25095) -Codechange: Immediately save the sort order of the town ↵alberth
directory instead of when closing the window.