Changeset View
Standalone View
binaries/data/mods/public/gui/options/options.json
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | [ | ||||
"config": "network.lateobservers", | "config": "network.lateobservers", | ||||
"list": [ | "list": [ | ||||
{ "value": "everyone", "label": "Everyone" }, | { "value": "everyone", "label": "Everyone" }, | ||||
{ "value": "buddies", "label": "Buddies" }, | { "value": "buddies", "label": "Buddies" }, | ||||
{ "value": "disabled", "label": "Disabled" } | { "value": "disabled", "label": "Disabled" } | ||||
] | ] | ||||
}, | }, | ||||
{ | { | ||||
"type": "number", | "type": "slider", | ||||
"label": "Observer limit", | "label": "Observer limit", | ||||
"tooltip": "Prevent further observers from joining if the limit is reached.", | "tooltip": "Prevent further observers from joining if the limit is reached.", | ||||
"config": "network.observerlimit", | "config": "network.observerlimit", | ||||
"min": 0, | "min": 0, | ||||
"max": 32 | "max": 32, | ||||
"step_size": 1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "boolean", | "type": "boolean", | ||||
"label": "Chat timestamp", | "label": "Chat timestamp", | ||||
"tooltip": "Show time that messages are posted in the lobby, gamesetup and ingame chat.", | "tooltip": "Show time that messages are posted in the lobby, gamesetup and ingame chat.", | ||||
"config": "chat.timestamp" | "config": "chat.timestamp" | ||||
} | } | ||||
] | ] | ||||
Show All 32 Lines | [ | ||||
"function": "Renderer_SetPostProcEnabled" | "function": "Renderer_SetPostProcEnabled" | ||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Shader effects", | "label": "Shader effects", | ||||
"tooltip": "Number of shader effects. REQUIRES GAME RESTART", | "tooltip": "Number of shader effects. REQUIRES GAME RESTART", | ||||
"config": "materialmgr.quality", | "config": "materialmgr.quality", | ||||
"min": 0, | "min": 0, | ||||
"max": 10 | "max": 10, | ||||
"step_size": 1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "boolean", | "type": "boolean", | ||||
"label": "Shadows", | "label": "Shadows", | ||||
"tooltip": "Enable shadows.", | "tooltip": "Enable shadows.", | ||||
"config": "shadows", | "config": "shadows", | ||||
"function": "Renderer_SetShadowsEnabled" | "function": "Renderer_SetShadowsEnabled" | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | [ | ||||
"config": "vsync" | "config": "vsync" | ||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "FPS throttling in menus", | "label": "FPS throttling in menus", | ||||
"tooltip": "To save CPU workload, throttle render frequency in all menus. Set to maximum to disable throttling.", | "tooltip": "To save CPU workload, throttle render frequency in all menus. Set to maximum to disable throttling.", | ||||
"config": "adaptivefps.menu", | "config": "adaptivefps.menu", | ||||
"min": 20, | "min": 20, | ||||
"max": 100 | "max": 100, | ||||
"step_size": 1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "FPS throttling in games", | "label": "FPS throttling in games", | ||||
"tooltip": "To save CPU workload, throttle render frequency in running games. Set to maximum to disable throttling.", | "tooltip": "To save CPU workload, throttle render frequency in running games. Set to maximum to disable throttling.", | ||||
"config": "adaptivefps.session", | "config": "adaptivefps.session", | ||||
"min": 20, | "min": 20, | ||||
"max": 100 | "max": 100, | ||||
"step_size": 1 | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
{ | { | ||||
"label": "Sound", | "label": "Sound", | ||||
"options": | "options": | ||||
[ | [ | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Master volume", | "label": "Master volume", | ||||
"tooltip": "Master audio gain.", | "tooltip": "Master audio gain.", | ||||
"config": "sound.mastergain", | "config": "sound.mastergain", | ||||
"function": "SetMasterGain", | "function": "SetMasterGain", | ||||
"min": 0, | "min": 0.6, | ||||
"max": 2 | "max": 1.1, | ||||
"step_size": 0.25 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Music volume", | "label": "Music volume", | ||||
"tooltip": "In game music gain.", | "tooltip": "In game music gain.", | ||||
"config": "sound.musicgain", | "config": "sound.musicgain", | ||||
"function": "SetMusicGain", | "function": "SetMusicGain", | ||||
"min": 0, | "min": 0.25, | ||||
"max": 2 | "max": 0.75, | ||||
"step_size": 0.1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Ambient volume", | "label": "Ambient volume", | ||||
"tooltip": "In game ambient sound gain.", | "tooltip": "In game ambient sound gain.", | ||||
"config": "sound.ambientgain", | "config": "sound.ambientgain", | ||||
"function": "SetAmbientGain", | "function": "SetAmbientGain", | ||||
"min": 0, | "min": 0, | ||||
"max": 2 | "max": 2, | ||||
"step_size": 0.01 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Action volume", | "label": "Action volume", | ||||
"tooltip": "In game unit action sound gain.", | "tooltip": "In game unit action sound gain.", | ||||
"config": "sound.actiongain", | "config": "sound.actiongain", | ||||
"function": "SetActionGain", | "function": "SetActionGain", | ||||
"min": 0, | "min": 0, | ||||
"max": 2 | "max": 2, | ||||
"step_size": 0.01 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "UI volume", | "label": "UI volume", | ||||
"tooltip": "UI sound gain.", | "tooltip": "UI sound gain.", | ||||
"config": "sound.uigain", | "config": "sound.uigain", | ||||
"function": "SetUIGain", | "function": "SetUIGain", | ||||
"min": 0, | "min": 0, | ||||
"max": 2 | "max": 2, | ||||
"step_size": 0.01 | |||||
}, | }, | ||||
{ | { | ||||
"type": "boolean", | "type": "boolean", | ||||
"label": "Nick notification", | "label": "Nick notification", | ||||
"tooltip": "Receive audio notification when someone types your nick.", | "tooltip": "Receive audio notification when someone types your nick.", | ||||
"config": "sound.notify.nick" | "config": "sound.notify.nick" | ||||
}, | }, | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | [ | ||||
"config": "lobby.history", | "config": "lobby.history", | ||||
"min": "0" | "min": "0" | ||||
}, | }, | ||||
{ | { | ||||
"type": "boolean", | "type": "boolean", | ||||
"label": "Game rating column", | "label": "Game rating column", | ||||
"tooltip": "Show the average rating of the participating players in a column of the gamelist.", | "tooltip": "Show the average rating of the participating players in a column of the gamelist.", | ||||
"config": "lobby.columns.gamerating" | "config": "lobby.columns.gamerating" | ||||
} | } | ||||
] | ] | ||||
elexis: In a separate diff we could pass `"percent": true` and then render a % character in the tooltip. | |||||
Not Done Inline ActionsAgree. vladislavbelov: Agree. | |||||
Not Done Inline ActionsStill not sure about this format. The reader has to compute that the given number is (max - min) * 10^(numDigits-1) - 1, It sounds like it could have potential for people to post an unintentional number there. The reason you prefer the steps variant is to ensure that (max - min) % stepWidth == 0 right? elexis: Still not sure about this format.
The reader has to compute that the given number is `(max… | |||||
Not Done Inline ActionsI could increase it by one. The reason is the precision and lists. @wraitii suggested to use this sliders with for picking an element from a list (i.e.: Low | Medium | High). Then we need to repeat the same code everywhere: round((max - min) / step_width) to calculate the step number. Also I'm worrying about (max - min) % stepWidth == 0, yes. vladislavbelov: I could increase it by one.
The reason is the precision and lists. @wraitii suggested to use… | |||||
}, | }, | ||||
{ | { | ||||
"label": "In-Game", | "label": "In-Game", | ||||
"tooltip": "Change options regarding the in-game settings.", | "tooltip": "Change options regarding the in-game settings.", | ||||
"options": | "options": | ||||
[ | [ | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Wounded unit health", | "label": "Wounded unit health", | ||||
"tooltip": "The wounded unit hotkey considers the selected units as wounded if their health percentage falls below this number.", | "tooltip": "The wounded unit hotkey considers the selected units as wounded if their health percentage falls below this number.", | ||||
"config": "gui.session.woundedunithotkeythreshold", | "config": "gui.session.woundedunithotkeythreshold", | ||||
"min": 0, | "min": 0, | ||||
"max": 100 | "max": 100, | ||||
"step_size": 1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "number", | "type": "slider", | ||||
"label": "Batch training size", | "label": "Batch training size", | ||||
"tooltip": "Number of units trained per batch by default.", | "tooltip": "Number of units trained per batch by default.", | ||||
"config": "gui.session.batchtrainingsize", | "config": "gui.session.batchtrainingsize", | ||||
"min": 1, | "min": 1, | ||||
"max": 20 | "max": 20, | ||||
"step_size": 1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "slider", | "type": "slider", | ||||
"label": "Scroll batch increment ratio", | "label": "Scroll batch increment ratio", | ||||
"tooltip": "Number of times you have to scroll to increase/decrease the batchsize by 1.", | "tooltip": "Number of times you have to scroll to increase/decrease the batchsize by 1.", | ||||
"config": "gui.session.scrollbatchratio", | "config": "gui.session.scrollbatchratio", | ||||
"min": 0.1, | "min": 0.1, | ||||
"max": 30 | "max": 30, | ||||
"step_size": 0.1 | |||||
}, | }, | ||||
{ | { | ||||
"type": "boolean", | "type": "boolean", | ||||
"label": "Chat notification attack", | "label": "Chat notification attack", | ||||
"tooltip": "Show a chat notification if you are attacked by another player.", | "tooltip": "Show a chat notification if you are attacked by another player.", | ||||
"config": "gui.session.notifications.attack" | "config": "gui.session.notifications.attack" | ||||
}, | }, | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |
In a separate diff we could pass "percent": true and then render a % character in the tooltip.
(We could remove Value: %(val)s (min: %(min)s, max: %(max)s) and require specifying a sting with these variables here in the tooltip. But not really convinced it's better atm.)