summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
AgeCommit message (Collapse)Author
2021-06-17Cleanup: simplify some boolean expressionsRubidium
2021-06-10Feature: Configurable subsidy durationTyler Trahan
2021-06-03Codechange: rename SettingGuiFlag to SettingFlag (#9332)Patric Stout
It is a lovely organicly grown enum, where it started off with GUI-only flags, and after that a few flags got added that can be considered GUI-only (the GUI disables/enables based on them), to only have flags added that has nothing to do with the GUI. So be less confusing, and rename them to what they do. Additionally, I took this opportunity to rename 0ISDISABLED to reflect what it really does.
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Fix f6d5c01: Delay deletion when closing windowsglx22
2021-05-27Codechange: add helper functions to read an int setting valuerubidium42
2021-05-27Codechange: remove SettingDescType in lieu of the actual classesrubidium42
2021-05-27Codechange: move bits of SettingDesc down to the appropriate sub classesrubidium42
And by doing so remove the hack where ints were put into pointers so "def" could either be an int or a string
2021-05-27Codechange: use IntSettingDesc in the settings GUIrubidium42
2021-05-27Codechange: do not use SettingDescBase directly when not neededrubidium42
2021-05-27Codechange: let SettingDesc extend SettingDescBaserubidium42
2021-05-27Codechange: just pass the SettingDesc to SetSettingValue and remove ↵rubidium42
distinction between (non)company
2021-05-13Codechange: move currency settings to std::stringrubidium42
2021-05-08Codechange: Set specific widgets dirty instead of window.Peter Nelson
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