-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettings.cs
More file actions
49 lines (42 loc) · 1.49 KB
/
Copy pathSettings.cs
File metadata and controls
49 lines (42 loc) · 1.49 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
using System.Collections.Generic;
using UnityEngine;
using UnityModManagerNet;
namespace FilteredBros
{
public class Settings : UnityModManager.ModSettings
{
public UISettings ui = new UISettings();
public ModSettings mod = new ModSettings();
public List<bool> brosEnable;
public override void Save(UnityModManager.ModEntry modEntry)
{
Save(this, modEntry);
}
}
[DrawFields(DrawFieldMask.Public)]
public class UISettings : IDrawable
{
[Header("UI Settings")]
[Draw(Type = DrawType.Slider, Label = "Bros per line", Min = 1, Max = 12)]
public int numberOfBroPerLine = 6;
[Draw(Type = DrawType.Slider, Label = "Names Width", Min = 86, Max = 256)]
public int toggleWidth = 128;
public void OnChange()
{ }
}
[DrawFields(DrawFieldMask.Public)]
public class ModSettings : IDrawable
{
[Header("Mod Settings")]
[Draw(Type = DrawType.Toggle, Label = "Patch In Custom Levels")]
public bool patchInCustomsLevel = false;
[Draw(Type = DrawType.Toggle, Label = "Use in Level Editor")]
public bool useInLevelEditor = false;
[Draw(Type = DrawType.Toggle, Label = "Ignore Forced Bros in levels")]
public bool ignoreForcedBros = false;
[Draw(Type = DrawType.Field, Label = "Maximum number of lives (0 to disabled)", Width = 80)]
public int maxLifeNumber = 0;
public void OnChange()
{ }
}
}