forked from Evankhell0/sbd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.js
136 lines (120 loc) · 3.82 KB
/
Config.js
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
import {
@ButtonProperty,
@CheckboxProperty,
Color,
@ColorProperty,
@PercentSliderProperty,
@SelectorProperty,
@SwitchProperty,
@TextProperty,
@Vigilant,
} from '../Vigilance/index.js';
@Vigilant('sbd', 'SBD Settings')
class Config {
@SwitchProperty({
name: 'Party Finder Stats',
description: 'Shows stats of players in Party Finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinder = true;
@SwitchProperty({
name: 'Show class level',
description: 'Shows the player\'s class level in party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinderClassLevel = true;
@SwitchProperty({
name: 'Show cata level',
description: 'Shows the player\'s catacombs level in party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinderCata = true;
@SwitchProperty({
name: 'Show total secrets',
description: 'Shows the player\'s total amount of secrets in party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinderSecrets = true;
@SwitchProperty({
name: 'Show secret average',
description: 'Shows the player\'s secret average in party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinderSecretAverage = true;
@SwitchProperty({
name: 'Show S+ PB',
description: 'Shows the player\'s fastest S+ time for the current floor in party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
partyfinderF7PB = true;
@SwitchProperty({
name: 'Show missing classes',
description: 'Displays missing classes in M4/M6/M7 party finder.',
category: 'Dungeons',
subcategory: 'Party Finder',
})
missingclasses = false;
@SwitchProperty({
name: 'Autokick',
description: 'Autokick players below certain requirements.',
category: 'Dungeons',
subcategory: 'Autokick',
})
autokick = false;
@SelectorProperty({
name: 'Selected Floor',
description: 'Which floor\'s S+ PB should be checked.',
category: 'Dungeons',
subcategory: 'Autokick',
options: [
"F7",
"M4",
"M5",
"M6",
"M7"
]
})
selectedfloor = 0;
@TextProperty({
name: 'Required S+ PB',
description: 'Time in seconds. Leave empty for no requirement.',
category: 'Dungeons',
subcategory: 'Autokick',
placeholder: "no req"
})
requiredPB = "";
@TextProperty({
name: 'Required Secrets',
description: 'Required secrets (across all profiles). Leave empty for no requirement.',
category: 'Dungeons',
subcategory: 'Autokick',
placeholder: "no req"
})
requiredSecrets = "";
@SwitchProperty({
name: 'Send kick message',
description: 'Sends a message in party chat before kicking.',
category: 'Dungeons',
subcategory: 'Autokick',
})
kickmessage = false;
constructor() {
this.initialize(this);
this.addDependency("Show class level", "Party Finder Stats")
this.addDependency("Show total secrets", "Party Finder Stats")
this.addDependency("Show cata level", "Party Finder Stats")
this.addDependency("Show secret average", "Party Finder Stats")
this.addDependency("Show S+ PB", "Party Finder Stats")
this.addDependency("Selected Floor", "Autokick")
this.addDependency("Required S+ PB", "Autokick")
this.addDependency("Required Secrets", "Autokick")
this.addDependency("Send kick message", "Autokick")
}
}
export default new Config();