Index: ps/trunk/binaries/data/config/default.cfg =================================================================== --- ps/trunk/binaries/data/config/default.cfg +++ ps/trunk/binaries/data/config/default.cfg @@ -108,7 +108,7 @@ ; Use screen-space postprocessing filters (HDR, bloom, DOF, etc). Incompatible with fixed renderpath. postproc = false -; Quality level of shader effects (set to 10 to display effects) +; Quality level of shader effects (set to 10 to display all effects) materialmgr.quality = 2.0 ; Maximum distance to display parallax effect. Set to 0 to disable parallax. Index: ps/trunk/binaries/data/mods/public/gui/options/options.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/options/options.js +++ ps/trunk/binaries/data/mods/public/gui/options/options.js @@ -244,10 +244,7 @@ switch (param) { case "config": - let val = +Engine.ConfigDB_GetValue("user", key); - if (key === "materialmgr.quality") - val = val > 5 ? 2 : val > 2 ? 1 : 0; - control.selected = val; + control.selected = +Engine.ConfigDB_GetValue("user", key); break; case "list": control.list = option.parameters.list.map(e => translate(e)); @@ -264,10 +261,7 @@ { return function() { - let val = this.selected; - if (key === "materialmgr.quality") - val = val == 0 ? 2 : val == 1 ? 5 : 8; - Engine.ConfigDB_CreateValue("user", key, val); + Engine.ConfigDB_CreateValue("user", key, this.selected); Engine.ConfigDB_SetChanges("user", true); updateOptionPanel(); }; Index: ps/trunk/binaries/data/mods/public/gui/options/options.json =================================================================== --- ps/trunk/binaries/data/mods/public/gui/options/options.json +++ ps/trunk/binaries/data/mods/public/gui/options/options.json @@ -119,10 +119,10 @@ "parameters": { "config": "postproc", "renderer": "Postproc" } }, { - "type": "dropdown", + "type": "slider", "label": "Graphics quality", - "tooltip": "Graphics quality. REQUIRES GAME RESTART", - "parameters": { "list": [ "Low", "Medium", "High" ], "config": "materialmgr.quality" } + "tooltip": "Number of shader effects. REQUIRES GAME RESTART", + "parameters": { "config": "materialmgr.quality", "min": 0, "max": 10 } }, { "type": "boolean", @@ -215,31 +215,31 @@ [ { "type": "slider", - "label": "Master Gain", + "label": "Master Volume", "tooltip": "Master audio gain", "parameters": { "config": "sound.mastergain", "function": "SetMasterGain", "min": 0, "max": 2 } }, { "type": "slider", - "label": "Music Gain", + "label": "Music Volume", "tooltip": "In game music gain", "parameters": { "config": "sound.musicgain", "function": "SetMusicGain", "min": 0, "max": 2 } }, { "type": "slider", - "label": "Ambient Gain", + "label": "Ambient Volume", "tooltip": "In game ambient sound gain", "parameters": { "config": "sound.ambientgain", "function": "SetAmbientGain", "min": 0, "max": 2 } }, { "type": "slider", - "label": "Action Gain", + "label": "Action Volume", "tooltip": "In game unit action sound gain", "parameters": { "config": "sound.actiongain", "function": "SetActionGain", "min": 0, "max": 2 } }, { "type": "slider", - "label": "UI Gain", + "label": "UI Volume", "tooltip": "UI sound gain", "parameters": { "config": "sound.uigain", "function": "SetUIGain", "min": 0, "max": 2 } }, Index: ps/trunk/binaries/data/mods/public/gui/options/options.xml =================================================================== --- ps/trunk/binaries/data/mods/public/gui/options/options.xml +++ ps/trunk/binaries/data/mods/public/gui/options/options.xml @@ -38,6 +38,7 @@