-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathOptions.cs
44 lines (37 loc) · 1.81 KB
/
Options.cs
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
43
44
using System.Xml.Serialization;
using MetroOverhaul.Detours;
using MetroOverhaul.OptionsFramework.Attibutes;
using MetroOverhaul.UI;
namespace MetroOverhaul
{
[Options("MetroOverhaul")]
public class Options
{
private const string UNSUBPREP = "Unsubscribe Prep";
private const string GENERAL = "General settings";
private const string CONVERTER = "In-Game Converter";
public Options()
{
ingameTrainMetroConverter = true;
improvedPassengerTrainAi = true;
metroUi = true;
ghostMode = false;
depotsNotRequiredMode = false;
}
[Checkbox("In-Game Train <-> Metro Station Converter", CONVERTER)]
public bool ingameTrainMetroConverter { get; set; }
[Checkbox("Metro track customization UI (requires reloading from main menu)", GENERAL)]
public bool metroUi { set; get; }
//TODO(bloodypengin): currently disabled because causes issues with trains not spawning at some types of stations
// [Checkbox("No depot required mode (requires reloading from main menu)", GENERAL)]
[XmlIgnore]
public bool depotsNotRequiredMode { set; get; }
[Checkbox("Improved PassengerTrainAI (Allows trains to return to depots)", GENERAL, typeof(PassengerTrainAIDetour), nameof(PassengerTrainAIDetour.ChangeDeployState))]
public bool improvedPassengerTrainAi { set; get; }
[Checkbox("Improved MetroTrainAI (Allows trains to properly spawn at surface)", GENERAL, typeof(MetroTrainAIDetour), nameof(MetroTrainAIDetour.ChangeDeployState))]
public bool improvedMetroTrainAi { set; get; }
[Checkbox("GHOST MODE (Load your MOM city with this ON and save before unsubscribing)", UNSUBPREP)]
public bool ghostMode { set; get; }
}
}