-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDashCountModSettings.cs
executable file
·72 lines (63 loc) · 2.8 KB
/
DashCountModSettings.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
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
namespace Celeste.Mod.DashCountMod {
public class DashCountModSettings : EverestModuleSettings {
public enum CountOptionsInChapterPanel { None, Fewest, Total }
public enum ShowCountInGameOptions { None, Session, Chapter, File, Both }
private CountOptionsInChapterPanel dashCountInChapterPanel = CountOptionsInChapterPanel.None;
private CountOptionsInChapterPanel dashCountOnProgressPage = CountOptionsInChapterPanel.None;
private ShowCountInGameOptions showDashCountInGame = ShowCountInGameOptions.None;
private CountOptionsInChapterPanel jumpCountInChapterPanel = CountOptionsInChapterPanel.None;
private ShowCountInGameOptions showJumpCountInGame = ShowCountInGameOptions.None;
private bool countDreamDashRedirectsAsDashes = false;
private bool doNotResetDashCountOnDeath = false;
public CountOptionsInChapterPanel DashCountInChapterPanel {
get { return dashCountInChapterPanel; }
set {
dashCountInChapterPanel = value;
Features.DashCountInChapterPanel.Instance.SetValue(value);
}
}
public CountOptionsInChapterPanel JumpCountInChapterPanel {
get { return jumpCountInChapterPanel; }
set {
jumpCountInChapterPanel = value;
Features.JumpCountInChapterPanel.Instance.SetValue(value);
}
}
public CountOptionsInChapterPanel DashCountOnProgressPage {
get { return dashCountOnProgressPage; }
set {
dashCountOnProgressPage = value;
Features.DashCountOnProgressPage.SetValue(value);
}
}
public ShowCountInGameOptions DashCountInGame {
get { return showDashCountInGame; }
set {
showDashCountInGame = value;
Features.DisplayDashCountInLevel.SetValue(value);
}
}
public ShowCountInGameOptions JumpCountInGame {
get { return showJumpCountInGame; }
set {
showJumpCountInGame = value;
Features.DisplayJumpCountInLevel.SetValue(value);
}
}
public bool CountDreamDashRedirectsAsDashes {
get { return countDreamDashRedirectsAsDashes; }
set {
countDreamDashRedirectsAsDashes = value;
Features.CountDreamDashRedirectsAsDashes.SetEnabled(value);
}
}
public bool DoNotResetDashCountOnDeath {
get { return doNotResetDashCountOnDeath; }
set {
doNotResetDashCountOnDeath = value;
Features.DoNotResetDashCountOnDeath.SetEnabled(value);
}
}
public bool DoNotResetJumpCountOnDeath { get; set; } = false;
}
}