-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModConfig.cs
More file actions
42 lines (40 loc) · 2.45 KB
/
Copy pathModConfig.cs
File metadata and controls
42 lines (40 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using BepInEx.Configuration;
namespace BeforeTheStormAccess
{
/// <summary>
/// User-tunable settings, persisted by BepInEx to
/// BepInEx\config\com.amock.beforethestormaccess.cfg. Edit while the game is
/// closed, or through a future in-game settings layer.
/// </summary>
public static class ModConfig
{
public static ConfigEntry<bool> AnnounceWindowNames { get; private set; }
public static ConfigEntry<bool> ReadWindowTextOnOpen { get; private set; }
public static ConfigEntry<bool> AnnounceOutOfRange { get; private set; }
public static ConfigEntry<int> InteractHintCount { get; private set; }
public static ConfigEntry<float> GuidanceProgressSeconds { get; private set; }
public static ConfigEntry<bool> AnnounceObjectiveChanges { get; private set; }
public static ConfigEntry<bool> SpeakDialogue { get; private set; }
/// <summary>Binds all settings. Call once from plugin Awake.</summary>
public static void Initialize(ConfigFile config)
{
AnnounceWindowNames = config.Bind("Verbosity", "AnnounceWindowNames", true,
"Speak the window name when a window opens.");
ReadWindowTextOnOpen = config.Bind("Verbosity", "ReadWindowTextOnOpen", true,
"Read a window's visible text top to bottom when it opens.");
AnnounceOutOfRange = config.Bind("Verbosity", "AnnounceOutOfRange", true,
"Say 'out of range' when walking away from an interactive object.");
InteractHintCount = config.Bind("Verbosity", "InteractHintCount", 3,
"How many times per session to explain the hold-interact mechanic when " +
"reaching an object. 0 disables the hint.");
AnnounceObjectiveChanges = config.Bind("Verbosity", "AnnounceObjectiveChanges", true,
"Announce new objectives automatically as the story sets them.");
SpeakDialogue = config.Bind("Verbosity", "SpeakDialogue", true,
"Read dialogue lines and subtitles automatically. Toggle in game with " +
"Shift+grave (tilde). Useful when the voice acting alone is preferred.");
GuidanceProgressSeconds = config.Bind("Navigation", "GuidanceProgressSeconds", 3.5f,
"Seconds between spoken progress distances while continuous guidance runs " +
"on a steady course. Course changes always speak immediately.");
}
}
}