-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrostyOptions.cs
More file actions
239 lines (199 loc) · 13.3 KB
/
FrostyOptions.cs
File metadata and controls
239 lines (199 loc) · 13.3 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
using Frosty.Core;
using Frosty.Core.Controls.Editors;
using FrostySdk.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BundleManager
{
internal class BundleManagerOptionsMenu
{
#region Options Load
public class FrostyDisplayAdapterEditor : FrostyCustomComboDataEditor<string, string>
{
}
[DisplayName("Bundle Manager Options")]
public class BundleManagerOptions : OptionsExtension
{
//[Category("General Options")]
//[DisplayName("Enable Log Debug Mode")]
//[Description("Shows a bunch of edits in the log so that causes for crash issues can be detected. Will significantly slow down the Bundle Manager.")]
//public bool BMO_EnableDebugMode { get; set; } = false;
[Category("General Options")]
[DisplayName("Enable Log Export")]
[Description("Enabling will make the Bundle Manager export a csv log of edits at the end of each BM run.")]
public bool BMO_EnableLogExport { get; set; } = true;
[Category("General Options")]
[DisplayName("Enable Prerequisites")]
[Description("Enabling will make the Bundle Manager use Prerequisites found in your Frosty Editor/Caches/BundleManagerPrerequisites file. Prerequisites allow you to make bundle managed mods be compatible")]
public bool BMO_EnablePrerequisites { get; set; } = true;
[Category("General Options")]
[DisplayName("Enable Bundle Order Log Export")]
[Description("Enabling will make the Bundle Manager export a log of the bundle manager parent order in the log export csv file.")]
public bool BMO_EnableBundleLogExport { get; set; } = false;
[Category("General Options")]
[DisplayName("Complete Network Registries")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to network registries")]
public bool BMO_CompleteNetworkRegistries { get; set; } = true;
[Category("General Options")]
[DisplayName("Create new Network Registries")]
[Description("Creates new network registries rather than modifying old ones. WARNING: THIS CAN CAUSE DESYNCS IN ONLINE MATCHES, RECOMMENDED ONLY FOR TESTING OR SINGLE PLAYER MODS")]
public bool BMO_CreateNetworkRegistries { get; set; } = false;
[Category("General Options")]
[DisplayName("Complete MeshVariationDBs")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to mesh variation databases")]
public bool BMO_CompleteMeshVariationDBs { get; set; } = true;
[Category("General Options")]
[DisplayName("Complete Shared Bundles")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to shared bundles")]
public bool BMO_CompleteSharedBundles { get; set; } = true;
[Category("General Options")]
[DisplayName("Complete Sublevel Bundles")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to sublevel bundles")]
public bool BMO_CompleteSublevelBundles { get; set; } = true;
[Category("General Options")]
[DisplayName("Complete Blueprint Bundles")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to blueprint bundles")]
public bool BMO_CompleteBlueprintBundles { get; set; } = true;
[Category("General Options")]
[DisplayName("Complete Added Bundles")]
[Description("Disabling prevents the Bundle Manager from making bundle changes to newly added bundles")]
public bool BMO_CompleteAddedBundles { get; set; } = true;
[Category("General Options")]
[DisplayName("Copy Linked Bundles")]
[Description("Disabling prevents the Bundle Manager from copying bundle edits from base game bundles to their duplicated counterparts.")]
public bool BMO_CopyLinkedBundles { get; set; } = true;
[Category("General Options")]
[DisplayName("Ignore TOC/Manifest Chunks")]
[Description("Enabling prevents the Bundle Manager from making bundle changes to preexisting chunks loaded in TOC or Manifest files")]
public bool BMO_IgnoreTocChunks { get; set; } = false;
[Category("General Options")]
[DisplayName("Whitelist bundles")]
[Description("When a bundle manager enumeration is complete and you launch the game, only modifications made to the bundles you allowed the bundle manager to edit will be made. If you disabled the BM's ability to edit bpbs for example, they won't be modified when launching the game")]
public bool BMO_WhitelistBundles { get; set; } = true;
[Category("Swbf2 Options")]
[DisplayName("SP Campaign bundles")]
public bool BMO_Sublevel_SP { get; set; } = false;
[Category("Swbf2 Options")]
[DisplayName("MP bundles")]
public bool BMO_Sublevel_MP { get; set; } = true;
[Category("Swbf2 Options")]
[DisplayName("Load Frontend Animations universally")]
[Description("When completing a bundle enumeration, the animation files of frontend and the collection menu will get loaded across all LevelData bundles which the BM is allowed to edit")]
public bool BMO_LoadFrontendAnimations { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode1 (Supremacy)")]
public bool BMO_Sublevel_Mode1 { get; set; } = true;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode9 (Attack/Defend)")]
public bool BMO_Sublevel_Mode9 { get; set; } = true;
[Category("Swbf2 Gamemode Options")]
[DisplayName("DeathMatch_Skirmish (Arcade)")]
public bool BMO_Sublevel_Skirmish { get; set; } = true;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Space Arcade")]
public bool BMO_Sublevel_SpaceArcade { get; set; } = true;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode3 (Ewok Hunt)")]
public bool BMO_Sublevel_Mode3 { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode5 (Extraction)")]
public bool BMO_Sublevel_Mode5 { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode6 (Hero Showdown)")]
public bool BMO_Sublevel_Mode6 { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Mode7 (Hero Starfighters)")]
public bool BMO_Sublevel_Mode7 { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("ModeC (Jetpack Cargo)")]
public bool BMO_Sublevel_ModeC { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("DeathMatch_Online (Blast)")]
public bool BMO_Sublevel_DeathMatchOnline { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("PlanetaryBattles (Strike)")]
public bool BMO_Sublevel_PlanetaryBattles { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("FantasyBattles (Galactic Assault)")]
public bool BMO_Sublevel_FantasyBattles { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("Heroes Versus Villains")]
public bool BMO_Sublevel_HvsV { get; set; } = false;
[Category("Swbf2 Gamemode Options")]
[DisplayName("SpaceBattles (Starfighter Assault)")]
public bool BMO_Sublevel_SpaceBattles { get; set; } = false;
public override void Load()
{
//BMO_EnableDebugMode = Config.Get<bool>("BMO_EnableDebugMode", false);
BMO_EnableLogExport = Config.Get<bool>("BMO_EnableLogExport", true);
BMO_EnablePrerequisites = Config.Get<bool>("BMO_EnablePrerequisites", true);
BMO_EnableBundleLogExport = Config.Get<bool>("BMO_EnableBundleLogExport", false);
BMO_CompleteNetworkRegistries = Config.Get<bool>("BMO_CompleteNetworkRegistries", true);
BMO_CreateNetworkRegistries = Config.Get<bool>("BMO_CreateNetworkRegistries", false);
BMO_CompleteMeshVariationDBs = Config.Get<bool>("BMO_CompleteMeshVariationDBs", true);
BMO_CompleteSharedBundles = Config.Get<bool>("BMO_CompleteSharedBundles", true);
BMO_CompleteSublevelBundles = Config.Get<bool>("BMO_CompleteSublevelBundles", true);
BMO_CompleteBlueprintBundles = Config.Get<bool>("BMO_CompleteBlueprintBundles", true);
BMO_CompleteAddedBundles = Config.Get<bool>("BMO_CompleteAddedBundles", true);
BMO_CopyLinkedBundles = Config.Get<bool>("BMO_CopyLinkedBundles", true);
BMO_WhitelistBundles = Config.Get<bool>("BMO_WhitelistBundles", true);
BMO_IgnoreTocChunks = Config.Get<bool>("BMO_IgnoreTocChunks", false);
BMO_Sublevel_SP = Config.Get<bool>("BMO_Sublevel_SP", false);
BMO_Sublevel_MP = Config.Get<bool>("BMO_Sublevel_MP", true);
BMO_LoadFrontendAnimations = Config.Get<bool>("BMO_LoadFrontendAnimations", false);
BMO_Sublevel_Mode1 = Config.Get<bool>("BMO_Sublevel_Mode1", true);
BMO_Sublevel_Mode9 = Config.Get<bool>("BMO_Sublevel_Mode9", true);
BMO_Sublevel_Skirmish = Config.Get<bool>("BMO_Sublevel_Skirmish", true);
BMO_Sublevel_SpaceArcade = Config.Get<bool>("BMO_Sublevel_SpaceArcade", true);
BMO_Sublevel_Mode3 = Config.Get<bool>("BMO_Sublevel_Mode3", false);
BMO_Sublevel_Mode5 = Config.Get<bool>("BMO_Sublevel_Mode5", false);
BMO_Sublevel_Mode6 = Config.Get<bool>("BMO_Sublevel_Mode6", false);
BMO_Sublevel_Mode7 = Config.Get<bool>("BMO_Sublevel_Mode7", false);
BMO_Sublevel_ModeC = Config.Get<bool>("BMO_Sublevel_ModeC", false);
BMO_Sublevel_DeathMatchOnline = Config.Get<bool>("BMO_Sublevel_DeathMatchOnline", false);
BMO_Sublevel_PlanetaryBattles = Config.Get<bool>("BMO_Sublevel_PlanetaryBattles", false);
BMO_Sublevel_FantasyBattles = Config.Get<bool>("BMO_Sublevel_FantasyBattles", false);
BMO_Sublevel_HvsV = Config.Get<bool>("BMO_Sublevel_HvsV", false);
BMO_Sublevel_SpaceBattles = Config.Get<bool>("BMO_Sublevel_SpaceBattles", false);
}
public override void Save()
{
//Config.Add("BMO_EnableDebugMode", BMO_EnableDebugMode);
Config.Add("BMO_EnableLogExport", BMO_EnableLogExport);
Config.Add("BMO_EnablePrerequisites", BMO_EnablePrerequisites);
Config.Add("BMO_EnableBundleLogExport", BMO_EnableBundleLogExport);
Config.Add("BMO_CompleteNetworkRegistries", BMO_CompleteNetworkRegistries);
Config.Add("BMO_CreateNetworkRegistries", BMO_CreateNetworkRegistries);
Config.Add("BMO_CompleteMeshVariationDBs", BMO_CompleteMeshVariationDBs);
Config.Add("BMO_CompleteSharedBundles", BMO_CompleteSharedBundles);
Config.Add("BMO_CompleteSublevelBundles", BMO_CompleteSublevelBundles);
Config.Add("BMO_CompleteBlueprintBundles", BMO_CompleteBlueprintBundles);
Config.Add("BMO_CompleteAddedBundles", BMO_CompleteAddedBundles);
Config.Add("BMO_CopyLinkedBundles", BMO_CopyLinkedBundles);
Config.Add("BMO_WhitelistBundles", BMO_WhitelistBundles);
Config.Add("BMO_IgnoreTocChunks", BMO_IgnoreTocChunks);
Config.Add("BMO_Sublevel_SP", BMO_Sublevel_SP);
Config.Add("BMO_Sublevel_MP", BMO_Sublevel_MP);
Config.Add("BMO_LoadFrontendAnimations", BMO_LoadFrontendAnimations);
Config.Add("BMO_Sublevel_Mode1", BMO_Sublevel_Mode1);
Config.Add("BMO_Sublevel_Mode9", BMO_Sublevel_Mode9);
Config.Add("BMO_Sublevel_Skirmish", BMO_Sublevel_Skirmish);
Config.Add("BMO_Sublevel_SpaceArcade", BMO_Sublevel_SpaceArcade);
Config.Add("BMO_Sublevel_Mode3", BMO_Sublevel_Mode3);
Config.Add("BMO_Sublevel_Mode5", BMO_Sublevel_Mode5);
Config.Add("BMO_Sublevel_Mode6", BMO_Sublevel_Mode6);
Config.Add("BMO_Sublevel_Mode7", BMO_Sublevel_Mode7);
Config.Add("BMO_Sublevel_ModeC", BMO_Sublevel_ModeC);
Config.Add("BMO_Sublevel_DeathMatchOnline", BMO_Sublevel_DeathMatchOnline);
Config.Add("BMO_Sublevel_PlanetaryBattles", BMO_Sublevel_PlanetaryBattles);
Config.Add("BMO_Sublevel_FantasyBattles", BMO_Sublevel_FantasyBattles);
Config.Add("BMO_Sublevel_HvsV", BMO_Sublevel_HvsV);
Config.Add("BMO_Sublevel_SpaceBattles", BMO_Sublevel_SpaceBattles);
}
}
#endregion
}
}