aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/ambientaddons/config/Config.kt
blob: db2c327d499ae528a14bc718ac4d0d5ec252eb06 (plain)
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
package com.ambientaddons.config

import AmbientAddons.Companion.currentGui
import com.ambientaddons.gui.MoveGui
import gg.essential.vigilance.Vigilant
import java.awt.Color
import java.io.File


object Config : Vigilant(
    File(AmbientAddons.configDirectory, "config.toml"), AmbientAddons.metadata.name
) {


    var kuudraReady = false
    var autoTrapper = false
    var trapperEsp = false

    var crimsonNotify = false
    var crimsonColor = Color.CYAN
    var crimsonHighlight = 0

    var batHighlight = 0
    var batColor = Color.CYAN
    var saHighlight = 0
    var saColor = Color.CYAN
    var starredHighlight = 0
    var starredColor = Color.CYAN
    var bestiaryHighlight = 0
    var bestiaryColor = Color.MAGENTA

    var blockLowReroll = false
    var autoBuyChest = 0
    var autoReady = 0

    var maskWarning = false
    var cat = true
    var witherShieldDisplay = 0

    var shouldPing = 0
    var pingDisplay = 0

    var terminatorCps = 0
    var cancelInteractions = false
    var closeSecretChests = false
    var ignoreCarpet = false

    var melodyBlockMisclicks = false
    var melodyAnnouncement = "Meowlody on me!"
    var throttledAnnouncement = "Hi! This is Hypixel Support. We noticed that your runs are actually efficient so we’re throttling this menu. Enjoy slower runs, dipshit. Hope Goldor kills you. Meow."

    init {
        category("Misc") {
            subcategory("Kuudra") {
                switch(
                    ::kuudraReady,
                    name = "Automatically ready in Kuudra",
                    description = "Automatically clicks the ready pane when the ready GUI is opened."
                )
            }
            subcategory("Trevor the Trapper") {
                switch(
                    ::autoTrapper,
                    name = "Automatically start trapper quests",
                    description = "Automatically performs the useless chat message click. This is analogous to SBE's crystal hollows renew feature."
                )
                switch(
                    ::trapperEsp,
                    name = "Highlight trapper animals",
                    description = "Highlights trapper quests with a beacon beam and box. Legal, as Hypixel uses the glowing status effect for clients that support it."
                )
            }
            subcategory("Fishing features") {
                switch(
                    ::crimsonNotify,
                    name = "Crimson sea creature alert",
                    description = "Sends a message in chat when a rare sea creature is fished (within render distance).",
                )
                selector(
                    ::crimsonHighlight,
                    name = "Crimson highlight",
                    description = "Highlight rare Crimson sea creatures and Thunder sparks.",
                    options = listOf("Off", "Highlight", "ESP")
                )
                color(
                    ::crimsonColor,
                    name = "Crimson highlight color",
                    description = "Color of rare Crimson fishing highlight.",
                )
            }
        }

        category("Highlights") {
            subcategory("Bat highlight") {
                selector(
                    ::batHighlight,
                    name = "Bat highlight",
                    description = "Show bat secrets",
                    options = listOf("Off", "Highlight", "ESP")
                )
                color(
                    ::batColor,
                    name = "Bat highlight color",
                    description = "Color of bat secrets",
                )
            }
            subcategory("Shadow assassin highlight") {
                selector(
                    ::saHighlight,
                    name = "Shadow assassin highlight",
                    description = "Show shadow assassins (without this, they will not be highlighted even when starred.)",
                    options = listOf("Off", "Highlight", "ESP")
                )
                color(
                    ::saColor,
                    name = "Shadow assassin highlight color",
                    description = "Color of shadow assassins",
                )
            }
            subcategory("Starred mob highlight") {
                selector(
                    ::starredHighlight,
                    name = "Starred mob highlight",
                    description = "Show bat secrets",
                    options = listOf("Off", "Highlight", "ESP")
                )
                color(
                    ::starredColor,
                    name = "Starred mob highlight color",
                    description = "Color of starred mobs",
                )
            }
            subcategory("Bestiary highlight") {
                selector(
                    ::bestiaryHighlight,
                    name = "Bestiary highlight",
                    description = "Show cave spiders and snipers. Disabled automatically when idkmansry is nearby.",
                    options = listOf("Off", "Highlight", "ESP")
                )
                color(
                    ::bestiaryColor,
                    name = "Bestiary highlight color",
                    description = "Color of bestiary mobs.",
                )
            }
        }


        category("Pre/Post Dungeon") {
            subcategory("Chest QOL") {
                switch(
                    ::blockLowReroll,
                    name = "Block rerolling low chests",
                    description = "Prevents rerolling non-Bedrock chests (or Obsidian on M4)."
                )
                selector(
                    ::autoBuyChest,
                    name = "Dungeon Reward Chests",
                    description = "Either blocks rerolls or automatically buys dungeon reward chests containing certain items.",
                    options = listOf("Off", "Block Reroll", "Autobuy")
                )
            }
            selector(
                ::autoReady,
                name = "Ready at the start of a dungeon",
                description = "Can be enabled always or only when 5 players are in the dungeon.",
                options = listOf("Off", "5 Players", "All")
            )
        }

        category("Notifications") {
            switch(
                ::maskWarning,
                name = "Mask proc warning",
                description = "Displays a title when a spirit mask or bonzo mask procs."
            )
        }

        category("Displays") {
            button(
                name = "Move GUI elements",
                description = "Opens a GUI to edit locations of all GUI elements.",
            ) {
                currentGui = MoveGui()
            }
            switch(
                ::cat,
                name = "Cat",
                description = "Show catplague's awesome cat upgrade! Disabling is a crime.",
            )
            selector(
                ::witherShieldDisplay,
                name = "Wither shield display",
                description = "Displays remaining wither shield duration",
                options = listOf("Off", "Default", "Shadow", "Outline")
            )
            subcategory("Ping and TPS") {
                selector(
                    ::shouldPing,
                    name = "Enable ping",
                    description = "Enables ping in command and display. This requires sending packets to the server.",
                    options = listOf("Off", "In Skyblock", "On Hypixel", "Always")
                    )
                selector(
                    ::pingDisplay,
                    name = "Ping and TPS display",
                    description = "Displays current ping and TPS. Ping requires ",
                    options = listOf("Off", "Default", "Shadow", "Outline")
                )
            }

        }

        category("Dungeon") {
            subcategory("Miscellaneous QOL") {
                slider(
                    ::terminatorCps,
                    name = "Set terminator autoclick CPS",
                    description = "Set to 0 to disable the feature",
                    min = 0,
                    max = 50
                )
                switch(
                    ::cancelInteractions,
                    name = "Cancel block interactions",
                    description = "Cancels interactions with hoppers that prevent using item abilities."
                )
                switch(
                    ::closeSecretChests,
                    name = "Block opening secret chests",
                    description = "Cancels opening chests containing secrets."
                )
                switch(
                    ::ignoreCarpet, name = "Ignore carpet hitboxes", description = "Removes all carpet hitboxes"
                )
                switch(
                    ::melodyBlockMisclicks,
                    name = "Block misclicks on Melody terminal",
                    description = "Prevents clicking Melody terminal when not aligned."
                )
                text(
                    ::melodyAnnouncement,
                    name = "Melody terminal announcement",
                    description = "Announces that Melody terminal was opened in party chat; leave empty to disable."
                )
                text(
                    ::throttledAnnouncement,
                    name = "Throttled terminal announcement",
                    description = "Announces that a terminal was throttled in party chat; leave empty to disable."
                )
            }
        }
    }
}