Skip to content

Commit 4bb043e

Browse files
Add Main Menu toggle and HTTPS toggle
you will probably need to delete your old cryptid.jkr again for these to work HTTPS toggle does nothing rn btw
1 parent f860baa commit 4bb043e

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

Cryptid.lua

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ local cryptidConfigTab = function()
226226
config = { n = G.UIT.R, config = { align = "tm", padding = 0 }, nodes = { left_settings, right_settings } }
227227
cry_nodes[#cry_nodes + 1] = config
228228
cry_nodes[#cry_nodes + 1] = UIBox_button({
229+
colour = G.C.CRY_GREENGRADIENT,
229230
button = "your_collection_content_sets",
230231
label = { localize("b_content_sets") },
231232
count = modsCollectionTally(G.P_CENTER_POOLS["Content Set"]),
@@ -237,18 +238,31 @@ local cryptidConfigTab = function()
237238
--Add warning notifications later for family mode
238239
cry_nodes[#cry_nodes + 1] = create_toggle({
239240
label = localize("cry_family"),
240-
active_colour = G.C.MONEY,
241+
active_colour = HEX("40c76d"),
241242
ref_table = Cryptid_config,
242243
ref_value = "family_mode",
243244
callback = reload_cryptid_localization,
244245
})
245246
cry_nodes[#cry_nodes + 1] = create_toggle({
246247
label = localize("cry_experimental"),
247-
active_colour = G.C.MONEY,
248+
active_colour = HEX("1f8505"),
248249
ref_table = Cryptid_config,
249250
ref_value = "experimental",
250251
})
252+
cry_nodes[#cry_nodes + 1] = create_toggle({
253+
label = localize("cry_feat_https module"),
254+
active_colour = HEX("b1c78d"),
255+
ref_table = Cryptid_config,
256+
ref_value = "HTTPS",
257+
})
258+
cry_nodes[#cry_nodes + 1] = create_toggle({
259+
label = localize("cry_feat_menu"),
260+
active_colour = HEX("1c5c23"),
261+
ref_table = Cryptid_config,
262+
ref_value = "menu",
263+
})
251264
cry_nodes[#cry_nodes + 1] = UIBox_button({
265+
colour = G.C.CRY_ALTGREENGRADIENT,
252266
button = "reset_gameset_config",
253267
label = { localize("b_reset_gameset_" .. (G.PROFILES[G.SETTINGS.profile].cry_gameset or "mainline")) },
254268
minw = 5,
@@ -292,26 +306,31 @@ local cryptidTabs = function()
292306
}
293307
settings = { n = G.UIT.C, config = { align = "tl", padding = 0.05 }, nodes = {} }
294308
settings.nodes[#settings.nodes + 1] = create_toggle({
309+
active_colour = G.C.CRY_JOLLY,
295310
label = localize("cry_mus_jimball"),
296311
ref_table = Cryptid_config.Cryptid,
297312
ref_value = "jimball_music",
298313
})
299314
settings.nodes[#settings.nodes + 1] = create_toggle({
315+
active_colour = G.C.CRY_JOLLY,
300316
label = localize("cry_mus_code"),
301317
ref_table = Cryptid_config.Cryptid,
302318
ref_value = "code_music",
303319
})
304320
settings.nodes[#settings.nodes + 1] = create_toggle({
321+
active_colour = G.C.CRY_JOLLY,
305322
label = localize("cry_mus_exotic"),
306323
ref_table = Cryptid_config.Cryptid,
307324
ref_value = "exotic_music",
308325
})
309326
settings.nodes[#settings.nodes + 1] = create_toggle({
327+
active_colour = G.C.CRY_JOLLY,
310328
label = localize("cry_mus_high_score"),
311329
ref_table = Cryptid_config.Cryptid,
312330
ref_value = "big_music",
313331
})
314332
settings.nodes[#settings.nodes + 1] = create_toggle({
333+
active_colour = G.C.CRY_JOLLY,
315334
label = localize("cry_mus_alt_bg"),
316335
ref_table = Cryptid_config.Cryptid,
317336
ref_value = "alt_bg_music",

config.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ return {
88
},
99
["family_mode"] = false,
1010
["experimental"] = false,
11+
["HTTPS"] = false,
12+
["menu"] = false,
1113
}

lib/misc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ end
375375

376376
--Changes main menu colors and stuff
377377
--has to be modified with new enabling system
378-
if true then --Cryptid.enabled["Menu"] then
378+
if Cryptid_config.menu then
379379
local oldfunc = Game.main_menu
380380
Game.main_menu = function(change_context)
381381
local ret = oldfunc(change_context)

lib/overrides.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ G.C.CRY_BLOSSOM = { 0, 0, 0, 0 }
229229
G.C.CRY_AZURE = { 0, 0, 0, 0 }
230230
G.C.CRY_ASCENDANT = { 0, 0, 0, 0 }
231231
G.C.CRY_JOLLY = { 0, 0, 0, 0 }
232+
G.C.CRY_GREENGRADIENT = { 0, 0, 0, 0 }
233+
G.C.CRY_ALTGREENGRADIENT = { 0, 0, 0, 0 }
232234
Cryptid.C = {
233235
EXOTIC = { HEX("708b91"), HEX("1e9eba") },
234236
TWILIGHT = { HEX("0800ff"), HEX("aa00ff") },
@@ -241,8 +243,9 @@ Cryptid.C = {
241243
ASCENDANT = { HEX("2e00f5"), HEX("e5001d") },
242244
JOLLY = { HEX("6ec1f5"), HEX("456b84") },
243245
SELECTED = { HEX("e38039"), HEX("ccdd1b") },
246+
GREENGRADIENT = { HEX("51e099"), HEX("1e523a") },
247+
ALTGREENGRADIENT = { HEX("6bb565"), HEX("bd28bf") },
244248
}
245-
246249
cry_pointer_dt = 0
247250
cry_jimball_dt = 0
248251
cry_glowing_dt = 0

0 commit comments

Comments
 (0)