-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMoreFluff.lua
857 lines (797 loc) · 21.4 KB
/
MoreFluff.lua
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
--- STEAMODDED HEADER
--- MOD_NAME: More Fluff
--- MOD_ID: MoreFluff
--- PREFIX: mf
--- MOD_AUTHOR: [notmario]
--- MOD_DESCRIPTION: Back, despite popular demand
--- BADGE_COLOR: 814BA8
--- DEPENDENCIES: [Talisman>=2.0.0-beta8, Steamodded>=1.0.0~ALPHA-0909a]
--- VERSION: 1.0.3-ja
local current_mod = SMODS.current_mod
local mod_path = SMODS.current_mod.path
mf_config = SMODS.current_mod.config
local folder = string.match(mod_path, "[Mm]ods.*")
if mf_config["Jokers"] == nil then
mf_config["Jokers"] = true
end
if mf_config["Colour Cards"] == nil then
mf_config["Colour Cards"] = true
end
if mf_config["Colour Pack Music"] == nil then
mf_config["Colour Pack Music"] = true
end
if mf_config["Achievements"] == nil then
mf_config["Achievements"] = true
end
if mf_config["Unfinished"] == nil then
mf_config["Unfinished"] = false
end
if Cryptid then
SMODS.load_mod_config(SMODS.Mods.Cryptid)
end
SMODS.Sound({
key = "music_colourpack",
path = "music_colourpack.ogg",
select_music_track = function()
return (
mf_config["Colour Pack Music"] and
(
G.pack_cards
and G.pack_cards.cards
and G.pack_cards.cards[1]
and G.pack_cards.cards[1].ability.set == "Colour"
)
)
end,
})
-- comment out the shit you dont want
local joker_list = {
-- common
"basepaul_card",
"clownfish",
"expansion_pack",
"hollow",
"jester",
"lollipop",
"luckycharm",
"monochrome",
"mspaint",
"simplified",
"spiral",
"treasuremap",
"philosophical",
-- uncommon
"badlegaldefence",
"clipart",
-- uncommon (spire) - these should be together in the collection and in class order
"dropkick",
"bladedance",
"hyperbeam",
"blasphemy",
"dramaticentrance",
-- other uncommons
"coupon_catalogue",
"css",
"globe",
"goldencarrot",
"hallofmirrors",
"impostor",
"tonersoup",
"loadeddisk",
"stylemeter",
"teacup",
"recycling",
"virtual",
-- rare
"bloodpact",
"bowlingball",
"cba",
"fleshprison",
"hugejoker",
"jankman",
"mashupalbum",
"pixeljoker",
"rainbowjoker",
"rosetinted",
"the_solo",
-- legendary!!
"triangle",
-- epic?????
-- "fleshpanopticon", -- IT'S IN CRYPTID NOW
-- exotic?!?!
"colorem",
}
if not mf_config["Jokers"] then
joker_list = {}
end
function has(table, elem)
for i = 1,#table do
if table[i] == elem then
return true
end
end
return false
end
local to_big = to_big or function(num)
return num
end
for _, v in ipairs(joker_list) do
print(v)
local joker = SMODS.load_file("jokers/"..v..".lua")()
if not joker then
goto continue
end
joker.key = v
joker.atlas = "mf_jokers"
if not joker.pos then
joker.pos = { x = 0, y = 0 }
end
local joker_obj = SMODS.Joker(joker)
for k_, v_ in pairs(joker) do
if type(v_) == 'function' then
joker_obj[k_] = joker[k_]
end
end
::continue::
end
if mf_config["Unfinished"] then
local ortalab_jokers = {
-- common
"clintcondition",
"sheetsuggestion",
-- uncommon
"devilsknife",
-- rare
"twotrucks"
}
local familiar_jokers = {
-- common
"jimbojjoker"
}
if not mf_config["Jokers"] then
ortalab_jokers = {}
familiar_jokers = {}
end
for _, v in ipairs(ortalab_jokers) do
print(v)
local joker = SMODS.load_file("jokers/ortalab/"..v..".lua")()
if not joker then
goto eunitnoc
end
joker.key = v
joker.atlas = "mf_srekoj"
if not joker.pos then
joker.pos = { x = 0, y = 0 }
end
local joker_obj = SMODS.Joker(joker)
for k_, v_ in pairs(joker) do
if type(v_) == 'function' then
joker_obj[k_] = joker[k_]
end
end
joker_obj.jank_force_badge = {
name = "ffulF eroM",
col = G.C.GREEN
}
::eunitnoc::
end
for _, v in ipairs(familiar_jokers) do
print(v)
local joker = SMODS.load_file("jokers/familiar/"..v..".lua")()
if not joker then
goto continue_fam
end
joker.key = v
joker.atlas = "mf_srekoj"
if not joker.pos then
joker.pos = { x = 0, y = 0 }
end
joker.pos.x = joker.pos.x + 10
local joker_obj = SMODS.Joker(joker)
for k_, v_ in pairs(joker) do
if type(v_) == 'function' then
joker_obj[k_] = joker[k_]
end
end
joker_obj.jank_force_badge = {
name = "Ectoplasm",
col = G.C.DARK_EDITION
}
::continue_fam::
end
end
local smods_cmb = SMODS.create_mod_badges
function SMODS.create_mod_badges(obj, badges)
if not SMODS.config.no_mod_badges and obj and obj.jank_force_badge then
local mod_name = obj.jank_force_badge.name
local size = 0.9
local font = G.LANG.font
local max_text_width = 2 - 2*0.05 - 4*0.03*size - 2*0.03
local calced_text_width = 0
-- Math reproduced from DynaText:update_text
for _, c in utf8.chars(mod_name) do
local tx = font.FONT:getWidth(c)*(0.33*size)*G.TILESCALE*font.FONTSCALE + 2.7*1*G.TILESCALE*font.FONTSCALE
calced_text_width = calced_text_width + tx/(G.TILESIZE*G.TILESCALE)
end
local scale_fac =
calced_text_width > max_text_width and max_text_width/calced_text_width
or 1
badges[#badges + 1] = {n=G.UIT.R, config={align = "cm"}, nodes={
{n=G.UIT.R, config={align = "cm", colour = obj.jank_force_badge.col, r = 0.1, minw = 2, minh = 0.36, emboss = 0.05, padding = 0.03*size}, nodes={
{n=G.UIT.B, config={h=0.1,w=0.03}},
{n=G.UIT.O, config={object = DynaText({string = mod_name or 'ERROR', colours = {G.C.WHITE},float = true, shadow = true, offset_y = -0.05, silent = true, spacing = 1*scale_fac, scale = 0.33*size*scale_fac})}},
{n=G.UIT.B, config={h=0.1,w=0.03}},
}}
}}
else
smods_cmb(obj, badges)
end
end
SMODS.Atlas({
key = "mf_jokers",
atlas_table = "ASSET_ATLAS",
path = "mf_jokers.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_srekoj",
atlas_table = "ASSET_ATLAS",
path = "mf_srekoj.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_colours",
atlas_table = "ASSET_ATLAS",
path = "mf_colours.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_oddities",
atlas_table = "ASSET_ATLAS",
path = "mf_oddities.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_packs",
atlas_table = "ASSET_ATLAS",
path = "mf_packs.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_vouchers",
atlas_table = "ASSET_ATLAS",
path = "mf_vouchers.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "mf_enhancers",
atlas_table = "ASSET_ATLAS",
path = "mf_enhancers.png",
px = 71,
py = 95
})
SMODS.Atlas({
key = "modicon",
path = "mf_icon.png",
px = 32,
py = 32
})
if CardSleeves then
SMODS.Atlas({
key = "mf_sleeves",
atlas_table = "ASSET_ATLAS",
path = "mf_sleeves.png",
px = 73,
py = 95
})
end
-- add a way for these to be disabled
if mf_config["Colour Cards"] then
init_cols = SMODS.load_file("other/colours.lua")()
init_cols()
else
function colour_end_of_round_effects()
end
end
-- maybe another day
-- if OddityAPI then
-- init_odds = SMODS.load_file("other/oddities.lua")()
-- init_odds()
-- end
SMODS.Back({
name = "Gros Michel Deck",
key = "grosmichel",
config = { mf_grosmichel = true },
pos = { x = 0, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Gros Michel Sleeve",
key="grosmichel",
atlas="mf_sleeves",
pos = { x = 0, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_grosmichel" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
if self.get_current_deck_key() ~= "b_mf_grosmichel" then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_gros_michel', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
else
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_cavendish', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
end
end
})
end
if has(joker_list, "philosophical") then
SMODS.Back({
name = "Philosophical Deck",
key = "philosophical",
config = { mf_philosophical = true },
pos = { x = 1, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Philosophical Sleeve",
key="philosophical",
atlas="mf_sleeves",
pos = { x = 1, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_philosophical" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = 1,5 do
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_philosophical', nil)
card:add_to_deck()
G.jokers:emplace(card)
end
return true
end
}))
end
})
end
end
if mf_config["Colour Cards"] then
SMODS.Back({
name = "Rainbow Deck",
key = "rainbow",
config = { voucher = 'v_mf_paintroller', consumables = {'c_mf_white'} },
pos = { x = 2, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
key = "rainbow",
name = "Rainbow Sleeve",
atlas = "mf_sleeves",
pos = { x = 2, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_rainbow" then
key = self.key
self.config = { voucher = 'v_mf_paintroller', consumables = { 'c_mf_white' } }
else
key = self.key .. "_alt"
self.config = { voucher = "v_mf_colourtheory" }
end
return { key = key }
end
})
end
end
if has(joker_list, "blasphemy") then
SMODS.Back({
name = "Blasphemous Deck",
key = "blasphemy",
config = { mf_blasphemy = true },
pos = { x = 3, y = 0 },
atlas = "mf_enhancers",
unlocked = true,
})
if CardSleeves then
CardSleeves.Sleeve({
name = "Blasphemous Sleeve",
key="blasphemy",
atlas="mf_sleeves",
pos = { x = 3, y = 0 },
unlocked = true,
loc_vars = function(self)
local key
if self.get_current_deck_key() ~= "b_mf_blasphemy" then
key = self.key
else
key = self.key .. "_alt"
end
return { key = key }
end,
apply = function(self)
if self.get_current_deck_key() ~= "b_mf_blasphemy" then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
card:set_eternal(true)
G.jokers:emplace(card)
return true
end
}))
else
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
G.jokers:emplace(card)
return true
end
}))
end
end
})
end
end
local old_back_apply_to_run = Back.apply_to_run
function Back.apply_to_run(self)
old_back_apply_to_run(self)
if self.effect.config.mf_grosmichel then
sendDebugMessage(G.GAME.selected_sleeve)
if not (CardSleeves and (G.GAME.selected_sleeve or "sleeve_casl_none") == "sleeve_mf_grosmichel") then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_gros_michel', nil)
card:add_to_deck()
G.jokers:emplace(card)
return true
end
}))
end
end
if self.effect.config.mf_philosophical then
G.E_MANAGER:add_event(Event({
func = function()
for i = 1,5 do
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_philosophical', nil)
card:add_to_deck()
G.jokers:emplace(card)
end
return true
end
}))
end
if self.effect.config.mf_blasphemy then
if not (CardSleeves and (G.GAME.selected_sleeve or "sleeve_casl_none") == "sleeve_mf_blasphemy") then
G.E_MANAGER:add_event(Event({
func = function()
local card = create_card('Joker', G.jokers, nil, nil, nil, nil, 'j_mf_blasphemy', nil)
card:add_to_deck()
card:set_edition({negative = true})
card:set_eternal(true)
G.jokers:emplace(card)
return true
end
}))
end
end
end
if mf_config["Achievements"] then
SMODS.Atlas({
key = "mf_achievements",
path = "mf_achievements.png",
px = 66,
py = 66,
})
SMODS.Achievement({
key = "mf_ten_colour_rounds",
order = 1,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_ten_colour_rounds"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_whos_paul",
order = 2,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_trigger_paul"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_jank_it_up",
order = 3,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
local jankman_count = 0
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_jankman" then
jankman_count = jankman_count + 1
end
end
end
if jankman_count >= 3 then
return true
end
end
end,
})
SMODS.Achievement({
key = "mf_dropkick_ten_hands",
order = 4,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if
args.type == "mf_dropkick_ten_hands"
then
return true
end
end,
})
SMODS.Achievement({
key = "mf_negative_philosophical",
order = 5,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_philosophical" and
(G.jokers.cards[i].edition and G.jokers.cards[i].edition.negative) then
return true
end
end
end
return false
end
end,
})
SMODS.Achievement({
key = "mf_huge_and_pixel",
order = 6,
bypass_all_unlocked = true,
atlas = "mf_achievements",
--reset_on_startup = true,
unlock_condition = function(self, args)
if args.type == "modify_jokers" then
local has_huge = false
local has_pixel = false
if G.jokers then
for i = 1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_mf_hugejoker" then
has_huge = true
end
if G.jokers.cards[i].config.center.key == "j_mf_pixeljoker" then
has_pixel = true
end
end
end
return has_huge and has_pixel
end
end,
})
end
-- cryptid pool additions
if Cryptid then
-- check if we are running against an older version of cryptid
if Cryptid.food then
local food_jokers = {
"j_mf_lollipop",
"j_mf_goldencarrot",
"j_mf_teacup",
}
for i = 1, #food_jokers do
Cryptid.food[#Cryptid.food+1] = food_jokers[i]
end
end
if Cryptid.memepack then
local meme_jokers = {
"j_mf_basepaulcard", -- Paul
"j_mf_blasphemy", -- it can instakill you that's funny right
"j_mf_cba", -- Chess Battle Advanced
"j_mf_hugejoker", -- it's huge
"j_mf_jankman", -- Love That Janker
"j_mf_impostor", -- Sus
}
for i = 1, #meme_jokers do
Cryptid.memepack[#Cryptid.memepack+1] = meme_jokers[i]
end
end
if Cryptid.aliases then
local aliases = {
paul = "basepaul card",
basepaul = "basepaul card",
bowling = "bowling ball",
cba = "card buffer advanced",
clipart = "clipart joker",
coupon = "coupon catalogue",
dramatic = "dramatic entrance",
expansion = "expansion pack",
carrot = "golden carrot",
hollow = "hollow joker",
huge = "huge joker",
beam = "hyper beam",
jank = "jankman",
loaded = "loaded disk",
mashup = "mashup album",
mspaint = "ms paint joker",
philosophical = "philosophical joker",
rainbow = "rainbow joker",
rose = "rose-tinted glasses",
rosetinted = "rose-tinted glasses",
["rose-tinted"] = "rose-tinted glasses",
rosetintedglasses = "rose-tinted glasses",
simplified = "simplified joker",
simplifiedjoker = "simplified joker",
style = "stylemeter",
solo = "the solo",
treasure = "treasure map",
virtual = "virtual joker",
ooffoo = "00FF00",
lime = "00FF00",
toner = "i sip toner soup",
tonersoup = "i sip toner soup",
isiptonersoup = "i sip toner soup",
}
for k, v in pairs(aliases) do
Cryptid.aliases[k] = v
end
end
end
--- hooks
local update_round_evalref = Game.update_round_eval
function Game:update_round_eval(dt)
update_round_evalref(self, dt)
-- thanks feder
-- does CA even have a 1.0.0 port?
if G.bladedance_temp_ids then
for _, remove_id in ipairs(G.bladedance_temp_ids) do
for k, card in ipairs(G.playing_cards) do
if card.unique_val == remove_id then
G.E_MANAGER:add_event(Event({trigger = 'after', delay = 0.3, blockable = false,
func = function()
G.deck:remove_card(card)
G.hand:remove_card(card)
G.discard:remove_card(card)
card:start_dissolve(nil, false)
card = nil
return true; end}))
end
end
-- for k, card in ipairs(G.hand.cards) do
-- if card.unique_val == remove_id then
-- G.E_MANAGER:add_event(Event({trigger = 'after', delay = 0.3, blockable = false,
-- func = function()
-- G.hand:remove_card(card)
-- hand:remove()
-- card = nil
-- return true; end}))
-- end
-- end
end
G.bladedance_temp_ids = {}
end
if G.do_colour_end_of_round_stuff then
colour_end_of_round_effects()
G.do_colour_end_of_round_stuff = false
end
end
local old_g_funcs_check_for_buy_space = G.FUNCS.check_for_buy_space
G.FUNCS.check_for_buy_space = function(card)
if card.ability.name == "Philosophical Joker" and card.ability.extra >= 1 then
return true
end
return old_g_funcs_check_for_buy_space(card)
end
local old_g_funcs_can_select_card = G.FUNCS.can_select_card
G.FUNCS.can_select_card = function(e)
if e.config.ref_table.ability.name == "Philosophical Joker" and e.config.ref_table.ability.extra >= 1 then
e.config.colour = G.C.GREEN
e.config.button = 'use_card'
else
old_g_funcs_can_select_card(e)
end
end
local update_blind_selectref = Game.update_blind_select
function Game:update_blind_select(dt)
update_blind_selectref(self, dt)
G.do_colour_end_of_round_stuff = true
end
-- config menu
local morefluffTabs = function() return {
{
label = localize("mf_config_features"),
chosen = true,
tab_definition_function = function()
mf_nodes = {}
settings = { n = G.UIT.C, config = { align = "tm", padding = 0.05 }, nodes = {} }
settings.nodes[#settings.nodes + 1] =
create_toggle({ label = localize("mf_config_jokers"), ref_table = mf_config, ref_value = "Jokers" })
settings.nodes[#settings.nodes + 1] =
create_toggle({ label = localize("mf_config_colour_cards"), ref_table = mf_config, ref_value = "Colour Cards" })
settings.nodes[#settings.nodes + 1] =
create_toggle({ label = localize("mf_config_colour_music"), ref_table = mf_config, ref_value = "Colour Pack Music" })
settings.nodes[#settings.nodes + 1] =
create_toggle({ label = localize("mf_config_achievements"), ref_table = mf_config, ref_value = "Achievements" })
settings.nodes[#settings.nodes + 1] =
create_toggle({ label = localize("mf_config_unfinished"), ref_table = mf_config, ref_value = "Unfinished" })
config = { n = G.UIT.R, config = { align = "tm", padding = 0 }, nodes = { settings } }
mf_nodes[#mf_nodes + 1] = config
return {
n = G.UIT.ROOT,
config = {
emboss = 0.05,
minh = 6,
r = 0.1,
minw = 10,
align = "cm",
padding = 0.2,
colour = G.C.BLACK,
},
nodes = mf_nodes,
}
end,
},
} end
SMODS.current_mod.extra_tabs = morefluffTabs