summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
AgeCommit message (Collapse)Author
2021-05-06Codechange: add SetDParamStr that accepts std::string&rubidium42
2021-04-30Codechange: No longer necessary to manually resize volume sliders.Peter Nelson
2021-04-30Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.Peter Nelson
2021-04-27Feature: allow non-ASCII currency separatorsrubidium42
2021-04-22Change: treat languages as finished, if translations are 75% completed.frosch
Unfinished translations are not auto-picked from the locale. In release builds, unfinished translations are not offered in the GUI. Unfinished translations are available in non-release builds, or by editing openttd.cfg.
2021-04-22Add: show completion progress of languages in the language dropdown for ↵frosch
non-release builds.
2021-04-11Change: reworked how the Game Option display options are drawnPatric Stout
"Hardware acceleration" was not aligned with its checkbox. So instead of drawing the labels left and the options right, now draw settings one by one with a spacer between label and option to get the right spacing. Also, use SetPIP instead of repeating a SetPadding for all but last element.
2021-04-11Feature: allow a toggle to enable/disable vsyncPatric Stout
Vsync should be off by default, as for most players it will be better to play without vsync. Exception exist, mainly people who play in fullscreen mode.
2021-04-09Feature: Volume sliders in Game Options windowNiels Martin Hansen
2021-04-09Codechange: Move volume control slider logic to separate functionsNiels Martin Hansen
2021-04-06Feature: Button to reset game settings to their default values (#8958)Didac Perez Parera
2021-03-26Change: rename setting "max_heightlevel" to "map_height_limit"Patric Stout
This better reflects what it is, and hopefully removes a bit of the confusion people are having what this setting actually does. Additionally, update the text on the setting to better inform users what it is doing exactly, so they can make an educated decision on how to change it. Next commit will introduce an "auto" value, which should be the new default. The rename has as added benefit that everyone will start out on the "auto" value.
2021-03-26Feature: setting to indicate desert coverage for tropic climatePatric Stout
This is an indication value; the game tries to get as close as it can, but due to the complex tropic rules, that is unlikely to be exact. In the end, it picks a height-level to base the desert/tropic line on. This is strictly seen not needed, as we can convert any tile to either. But it is the simplest way to get started with this without redoing all related functions.
2021-03-26Feature: setting to indicate snow coverage for arctic climate (replaces snow ↵Patric Stout
line height) Setting the snow coverage (in % of the map) makes a lot more sense to the human, while still allowing the niche player to set (by finding the correct %) a snow line height they like. This makes for easier defaults, as it decoupled terrain height from amount of snow. Maps can never be 100% snow, as we do not have sprites for coastal tiles. Internally, this calculates the best snow line height to approach this coverage as close as possible.
2021-03-13Feature: allow setting maximum zoom level at which sprites are drawn (#8604)Matt Kimber
2021-03-10Codechange: Misleading function name for selecting refresh rate (#8836)sean
Co-authored-by: pnda <43609023+ThePNDA@users.noreply.github.com>
2021-03-09Codechange: remove special strings for language and resolutions (#8824)Patric Stout
As OpenTTD grew, we found other ways to do this, and we are no longer in need for a hack like this.
2021-03-09Add: Display refresh rate game option (#8813)sean
2021-03-08Add: Option to (dis-)allow accelerated video drivers. (#8819)Patric Stout
The video drivers using the OpenGL backend are currently our only accelerated drivers. The options defaults to off for macOS builds and to on everywhere else. Co-authored-by: Michael Lutz <michi@icosahedron.de>
2021-02-28Add: settings to limit your fast-forward game speedPatric Stout
By default this setting is set to 2500% normal game speed.
2021-02-23Fix #8731: Always use a 32bpp blitter if font anti-aliasing is enabled.Michael Lutz
2021-02-14Change: move the 'road drive side' selection to settings tree, and give it ↵frosch
the same 'basic' visibilty as 'signal side'.
2021-02-14Change: move townname generator selection to mapgen GUI.frosch
2021-02-14Codechange: move non-GUI code to non-GUI source files.frosch
2021-02-14Codechange: turn a constant variable into a real constant.frosch
2021-02-14Codechange: Re-init GUI zoom only when really changed.Michael Lutz
2021-02-14Feature: Automatic UI and font zoom levels when supported by the OS.Michael Lutz
2021-01-08Change: Remove disable_unsuitable_building settingCharles Pigott
This setting is no longer useful, as you can now always build roads, canals, etc.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-07Feature: option to auto remove signals when in the way during rail ↵Kuhnovic
construction (#8274)
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-16Change: extend the allowed range for max loan setting (#8386)Pavel Stupnikov
2020-12-14Add: new economy "frozen" that stops production changes and industry ↵Pavel Stupnikov
closures (#8282)
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2020-01-12Codechange: Cache resolved town, station and industry name stringsJonathan G Rennison
2020-01-04Feature: Show the name of the NewGRF in the build vehicle window.stormcone
2019-12-28Feature: Configurable game ending yearNiels Martin Hansen
Functionally reverts 683b65ee1
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-19Feature: Configure minimum share trading yearsJack Baron
2019-05-11Change: Limit memory allocations for each Squirrel instanceNiels Martin Hansen
This can avoid out-of-memory situations due to single scripts using up the entire address space. Instead, scripts that go above the maximum are killed. The maximum is default 1 GB per script, but can be configured by a setting.
2019-04-24Change: Zoom title game by UI zoom levelNiels Martin Hansen
2019-04-18Codechange: use std::vector for _resolutionsglx
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: Replaced SmallVector::[Begin|End]() with std alternativesHenry 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-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.