1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Update settingtypes (#13428)

* Move settings to correct sections
* Improve titles and descriptions
* Make defaults in settingtypes.txt and defaultsettings.cpp match

Fixes #9002
This commit is contained in:
rubenwardy 2023-04-14 22:32:25 +01:00 committed by GitHub
parent b89077187b
commit 5cd6a22dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 164 additions and 155 deletions

View file

@ -173,7 +173,7 @@ void set_default_settings()
settings->setDefault("show_debug", "true");
#endif
settings->setDefault("fsaa", "0");
settings->setDefault("undersampling", "0");
settings->setDefault("undersampling", "1");
settings->setDefault("world_aligned_mode", "enable");
settings->setDefault("autoscale_mode", "disable");
settings->setDefault("enable_fog", "true");
@ -300,7 +300,7 @@ void set_default_settings()
settings->setDefault("continuous_forward", "false");
settings->setDefault("enable_joysticks", "false");
settings->setDefault("joystick_id", "0");
settings->setDefault("joystick_type", "");
settings->setDefault("joystick_type", "auto");
settings->setDefault("repeat_joystick_button_time", "0.17");
settings->setDefault("joystick_frustum_sensitivity", "170");
settings->setDefault("joystick_deadzone", "2048");

View file

@ -5,14 +5,12 @@
fake_function() {
gettext("Controls");
gettext("General");
gettext("Build inside player");
gettext("If enabled, you can place blocks at the position (feet + eye level) where you stand.\nThis is helpful when working with nodeboxes in small areas.");
gettext("Cinematic mode");
gettext("Smooths camera when looking around. Also called look or mouse smoothing.\nUseful for recording videos.");
gettext("Camera smoothing");
gettext("Smooths rotation of camera. 0 to disable.");
gettext("Smooths rotation of camera, also called look or mouse smoothing. 0 to disable.");
gettext("Camera smoothing in cinematic mode");
gettext("Smooths rotation of camera in cinematic mode. 0 to disable.");
gettext("Smooths rotation of camera when in cinematic mode, 0 to disable. Enter cinematic mode by using the key set in Change Keys.");
gettext("Build inside player");
gettext("If enabled, you can place nodes at the position (feet + eye level) where you stand.\nThis is helpful when working with nodeboxes in small areas.");
gettext("Aux1 key for climbing/descending");
gettext("If enabled, \"Aux1\" key instead of \"Sneak\" key is used for climbing down and\ndescending.");
gettext("Double tap jump for fly");
@ -43,11 +41,13 @@ fake_function() {
gettext("Graphics");
gettext("Screen");
gettext("Screen width");
gettext("Width component of the initial window size. Ignored in fullscreen mode.");
gettext("Width component of the initial window size.");
gettext("Screen height");
gettext("Height component of the initial window size. Ignored in fullscreen mode.");
gettext("Autosave screen size");
gettext("Save window size automatically when modified.");
gettext("Height component of the initial window size.");
gettext("Window maximized");
gettext("Whether the window is maximized.");
gettext("Remember screen size");
gettext("Save window size automatically when modified.\nIf true, screen size is saved in screen_w and screen_h, and whether the window\nis maximized is stored in window_maximized.\n(Autosaving window_maximized only works if compiled with SDL.)");
gettext("Full screen");
gettext("Fullscreen mode.");
gettext("Pause on lost window focus");
@ -56,7 +56,7 @@ fake_function() {
gettext("Maximum FPS");
gettext("If FPS would go higher than this, limit it by sleeping\nto not waste CPU power for no benefit.");
gettext("VSync");
gettext("Vertical screen synchronization.");
gettext("Vertical screen synchronization. Your system may still force VSync on even if this is disabled.");
gettext("FPS when unfocused or paused");
gettext("Maximum FPS when the window is not focused, or when the game is paused.");
gettext("Viewing range");
@ -89,8 +89,6 @@ fake_function() {
gettext("Fall bobbing factor");
gettext("Multiplier for fall bobbing.\nFor example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.");
gettext("Camera");
gettext("Near plane");
gettext("Camera 'near clipping plane' distance in nodes, between 0 and 0.25\nOnly works on GLES platforms. Most users will not need to change this.\nIncreasing can reduce artifacting on weaker GPUs.\n0.1 = Default, 0.25 = Good value for weaker tablets.");
gettext("Field of view");
gettext("Field of view in degrees.");
gettext("Light curve gamma");
@ -144,12 +142,14 @@ fake_function() {
gettext("When using bilinear/trilinear/anisotropic filters, low-resolution textures\ncan be blurred, so automatically upscale them with nearest-neighbor\ninterpolation to preserve crisp pixels. This sets the minimum texture size\nfor the upscaled textures; higher values look sharper, but require more\nmemory. Powers of 2 are recommended. This setting is ONLY applied if\nbilinear/trilinear/anisotropic filtering is enabled.\nThis is also used as the base node texture size for world-aligned\ntexture autoscaling.");
gettext("FSAA");
gettext("Use multi-sample antialiasing (MSAA) to smooth out block edges.\nThis algorithm smooths out the 3D viewport while keeping the image sharp,\nbut it doesn't affect the insides of textures\n(which is especially noticeable with transparent textures).\nVisible spaces appear between nodes when shaders are disabled.\nIf set to 0, MSAA is disabled.\nA restart is required after changing this option.");
gettext("Occlusion Culling");
gettext("Occlusion Culler");
gettext("Type of occlusion_culler\n\n\"loops\" is the legacy algorithm with nested loops and O(n³) complexity\n\"bfs\" is the new algorithm based on breadth-first-search and side culling\n\nThis setting should only be changed if you have performance problems.");
gettext("Enable Raytraced Culling");
gettext("Use raytraced occlusion culling in the new culler.\nThis flag enables use of raytraced occlusion culling test for\nclient mesh sizes smaller than 4x4x4 map blocks.");
gettext("Shaders");
gettext("Shaders");
gettext("Shaders allow advanced visual effects and may increase performance on some video\ncards.\nThis only works with the OpenGL video backend.");
gettext("Tone Mapping");
gettext("Filmic tone mapping");
gettext("Enables Hable's 'Uncharted 2' filmic tone mapping.\nSimulates the tone curve of photographic film and how this approximates the\nappearance of high dynamic range images. Mid-range contrast is slightly\nenhanced, highlights and shadows are gradually compressed.");
gettext("Waving Nodes");
gettext("Waving leaves");
gettext("Set to true to enable waving leaves.\nRequires shaders to be enabled.");
@ -184,11 +184,15 @@ fake_function() {
gettext("Spread a complete update of shadow map over given amount of frames.\nHigher values might make shadows laggy, lower values\nwill consume more resources.\nMinimum value: 1; maximum value: 16");
gettext("Soft shadow radius");
gettext("Set the soft shadow radius size.\nLower values mean sharper shadows, bigger values mean softer shadows.\nMinimum value: 1.0; maximum value: 15.0");
gettext("Post processing");
gettext("Exposure compensation");
gettext("Set the exposure compensation in EV units.\nValue of 0.0 (default) means no exposure compensation.\nRange: from -1 to 1.0");
gettext("Sky Body Orbit Tilt");
gettext("Set the default tilt of Sun/Moon orbit in degrees.\nGames may change orbit tilt via API.\nValue of 0 means no tilt / vertical orbit.");
gettext("Post Processing");
gettext("Filmic tone mapping");
gettext("Enables Hable's 'Uncharted 2' filmic tone mapping.\nSimulates the tone curve of photographic film and how this approximates the\nappearance of high dynamic range images. Mid-range contrast is slightly\nenhanced, highlights and shadows are gradually compressed.");
gettext("Enable Automatic Exposure");
gettext("Enable automatic exposure correction\nWhen enabled, the post-processing engine will\nautomatically adjust to the brightness of the scene,\nsimulating the behavior of human eye.");
gettext("Exposure compensation");
gettext("Set the exposure compensation in EV units.\nValue of 0.0 (default) means no exposure compensation.\nRange: from -1 to 1.0");
gettext("Bloom");
gettext("Enable Bloom");
gettext("Set to true to enable bloom effect.\nBright colors will bleed over the neighboring objects.");
@ -266,12 +270,6 @@ fake_function() {
gettext("If enabled, account registration is separate from login in the UI.\nIf disabled, new accounts will be registered automatically when logging in.");
gettext("Update information URL");
gettext("URL to JSON file which provides information about the newest Minetest release");
gettext("Last update check");
gettext("Unix timestamp (integer) of when the client last checked for an update\nSet this value to \"disabled\" to never check for updates.");
gettext("Last known version update");
gettext("Version number which was last seen during an update check.\n\nRepresentation: MMMIIIPPP, where M=Major, I=Minor, P=Patch\nEx: 5.5.0 is 005005000");
gettext("Enable Raytraced Culling");
gettext("Use raytraced occlusion culling in the new culler.\nThis flag enables use of raytraced occlusion culling test");
gettext("Server");
gettext("Admin name");
gettext("Name of the player.\nWhen running a server, clients connecting with this name are admins.\nWhen starting from the main menu, this is overridden.");
@ -1036,12 +1034,14 @@ fake_function() {
gettext("If enabled together with fly mode, player is able to fly through solid nodes.\nThis requires the \"noclip\" privilege on the server.");
gettext("Continuous forward");
gettext("Continuous forward movement, toggled by autoforward key.\nPress the autoforward key again or the backwards movement to disable.");
gettext("Formspec Default Background Opacity");
gettext("Formspec default background opacity (between 0 and 255).");
gettext("Formspec Default Background Color");
gettext("Formspec default background color (R,G,B).");
gettext("Show technical names");
gettext("Whether to show technical names.\nAffects mods and texture packs in the Content and Select Mods menus, as well as\nsetting names in All Settings.\nControlled by the checkbox in the \"All settings\" menu.");
gettext("Sound");
gettext("Enables the sound system.\nIf disabled, this completely disables all sounds everywhere and the in-game\nsound controls will be non-functional.\nChanging this setting requires a restart.");
gettext("Last update check");
gettext("Unix timestamp (integer) of when the client last checked for an update\nSet this value to \"disabled\" to never check for updates.");
gettext("Last known version update");
gettext("Version number which was last seen during an update check.\n\nRepresentation: MMMIIIPPP, where M=Major, I=Minor, P=Patch\nEx: 5.5.0 is 005005000");
gettext("Cinematic mode");
gettext("This can be bound to a key to toggle camera smoothing when looking around.\nUseful for recording videos");
}