-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
150 lines (133 loc) · 4.17 KB
/
config.js
File metadata and controls
150 lines (133 loc) · 4.17 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
// --------------------------------- Imports ---------------------------------
import {
@Vigilant,
@SwitchProperty,
@TextProperty,
@CheckboxProperty,
@ButtonProperty,
@SelectorProperty,
@SliderProperty,
@ColorProperty,
@PercentSliderProperty,
@DecimalSliderProperty,
Color
} from "../Vigilance/index"
import { consts } from "./utils/constants"
@Vigilant("PerryClient", "§3§lPerry§6Client", {
getCategoryComparator: () => (a, b) => {
const categories = ["General", "Combat", "Dungeons", "Fishing"]
return categories.indexOf(a.name) - categories.indexOf(b.name);
}
})
// --------------------------------- Settings ---------------------------------
class Settings {
// Init Viligant Settings Page
constructor() {
this.initialize(this);
this.setCategoryDescription("General", consts.HEADER + "&f&bGeneral Features\n");
this.setCategoryDescription("Combat", consts.HEADER + "&f&bCombat Features\n");
this.setCategoryDescription("Dungeons", consts.HEADER + "&f&bDungeon Features\n");
this.setCategoryDescription("Fishing", consts.HEADER + "&f&bFishing Features\n");
}
// --------------------------------- General ---------------------------------
// --- Essential ---
@ButtonProperty({
name: "GitHub Link",
description: "A link to our official GitHub Repository for updates.",
placeholder: "Link",
category: "General",
subcategory: "Essential"
})
githubLink() {
const url =
"https://github.com/Perry5596/PerryClient";
java.awt.Desktop.getDesktop().browse(new java.net.URI(url));
}
@SwitchProperty({
name: "Discord Webhook Toggle",
description: "Toggles the Discord Webhook for all reminders/alerts that go to webhooks.",
category: "General",
subcategory: "Essential"
})
webhookToggle = false;
@TextProperty({
name: "Discord Webhook URL",
description: "The URL for the Discord Webhook for all reminders/alerts that go to webhooks.",
placeholder: "Discord webhook url here...",
category: "General",
subcategory: "Essential"
})
webhookURL = "";
// --- Alerts ---
@SwitchProperty({
name: "Piggy Bank Alert",
description: "Alerts you when your piggy bank cracks.",
category: "General",
subcategory: "Alerts"
})
piggyBankAlert = true;
@SwitchProperty({
name: "Sack Full Alert",
description: "Alerts you when a sack in your sack of sacks is full.",
category: "General",
subcategory: "Alerts"
})
sackFullAlert = true;
@SwitchProperty({
name: "Booster Cookie Alert",
description: "Alerts you of your Booster Cookie status.",
category: "General",
subcategory: "Alerts"
})
boosterCookieAlert = true;
// --- QOL ---
@SwitchProperty({
name: 'Click To Visit',
description: 'Click a chat message that contains "visit" to visit that person.',
category: 'General',
subcategory: 'QOL'
})
clickToVisit = true;
// --------------------------------- Combat ---------------------------------
// --- ESP's ---
@SwitchProperty({
name: "Ghost ESP",
description: "Renders ESP for Ghosts in the Dwarven Mines.",
category: "Combat",
subcategory: "ESP's"
})
ghostESP = true;
@ColorProperty({
name: 'Ghost ESP Color',
description: `Sets the color for the Ghost ESP`,
category: 'Combat',
subcategory: "ESP's"
})
ghostEspColor = Color.RED;
// --------------------------------- Dungeons ---------------------------------
// ESP's
@SwitchProperty({
name: "Dungeon Teammate ESP",
description: "Renders ESP for all teammates in Dungeons.",
category: "Dungeons",
subcategory: "ESP's"
})
dungeonTeammateESP = true;
@ColorProperty({
name: 'Dungeon Teammate ESP Color',
description: `Sets the color for the Dungeon Teammate ESP`,
category: 'Dungeons',
subcategory: "ESP's"
})
dungeonTeammateESPColor = Color.GREEN;
// --------------------------------- Fishing ---------------------------------
// Renders
@SwitchProperty({
name: "Trophy Fishing Waypoints",
description: "Renders where to fish for specific trophy fish.",
category: "Fishing",
subcategory: "Renders"
})
renderTrophyLocations = true;
}
export default new Settings();