Search the settings
The settings screen uses the search of the shared category screen; Search a category screen lists the keys for each device, how results rank and how the on-screen keyboard works. What Rolly Settings adds:
- What search finds: every setting that shows on this machine, by its name, its description, its section heading, its options’ names and its Keywords; and each action of the key list, by the action’s name, under its key list group. A hidden setting is never a result; a disabled one is, dimmed, with its reason in the detail. A setting that shows or hides while the player searches (a device plugged in, another setting changed) joins or leaves the results at once.
- The texts name settings: “12 settings”, “All 85 settings”, “Type part of a setting’s name, or what it changes.”, “No settings match “fov2”.“, and “Showing 40 of 52. Type more to narrow them down.” past 40 results.
- A result is the real row: Left and Right change its value in place, a key list result keeps its two columns, and Accept goes to the row in its category.
When the screen offers it
Project Settings > Plugins > Rolly Settings Screen > Search Mode: Auto shows the search entry while the screen has two or more categories and 20 or more settings to find (the built-in library has both), On and Off force it. A settings screen class of your own whose Search Mode (class defaults, category Search) is not Auto keeps its own.
Other names for your settings
A setting’s Keywords (in the collection, category Setting) holds the words players use instead of its name, separated by commas: fps, frame cap for Frame Rate Limit, fov for Field of View. Search reads them in the player’s language like the name, so translate them with the setting (Chinese and Japanese commas separate them too). Leave out the name and words of the description: search finds those already.
Show what a setting costs
A setting’s cost gives the processor, the graphics card and video memory each a level: None, Low, Medium or High. The settings screen shows it in the detail of the focused setting, never on the row:
- The side panel shows a block: a heading, then a line for each resource that costs something, with its name, three marks (one filled for Low, two for Medium, three for High) and the level’s word, so it reads the same without colour.
- A strip (narrow areas, the centered panel, the drawer) says it in one line after the default value: “Performance cost: processor high, graphics card high.”. Short areas keep no line for facts, so there it follows the description, as the video memory figures do; a strip of one line (640 x 360) cuts its end with an ellipsis, as it cuts a long description. The couch hub’s pages show the block in one row beside the setting’s name on large areas, and the line elsewhere.
- Narration reads it after the description: “Performance cost: processor, high; graphics card, high.”.
The heading follows the kind of setting:
| Setting | Heading | It describes |
|---|---|---|
| Toggle | Cost when on | What turning it on costs |
| Slider | Cost of higher values | What raising it costs |
| Choice | Performance cost | What its higher options cost |
| Choice with Option Costs | Cost at option | The option it is set to |
A setting whose levels are all None shows nothing. An option without an entry in Option Costs costs what the setting costs, and an option at None on every resource says “No noticeable cost.”.
Rank levels against the other settings of your game, not against the machine: High for the settings that move the frame time or the memory most (shadows, resolution, ray tracing), Low for those a player barely notices. The built-in library’s levels are listed in See what the built-in settings cost.
Blueprint
In the collection, fill the setting’s Cost (category Performance). For a Choice whose options cost different amounts, fill Option Costs too: an option’s Id and its levels. An entry that names no option of the setting is a setup warning.
C++
#include "Kinds/RollySettingChoice.h"
#include "Performance/RollySettingsCost.h"
void UMyLibrary::AddCosts(URollySettingChoice& Crowds)
{
Crowds.Cost = FRollySettingsCost(ERollySettingsCostLevel::High, ERollySettingsCostLevel::Medium, ERollySettingsCostLevel::None);
Crowds.OptionCosts.Add(TEXT("Off"), FRollySettingsCost());
}FRollySettingsCosts::Describe gives the cost a setting shows at a value, and MakeFact and MakeSpoken its words, for a screen of your own.
Limits
- Costs are labels you set, the same on every machine. The video memory meter measures what the game uses on this one.
- Search finds the settings of the settings screen, not those of other screens of your game.