This commit is contained in:
2025-03-04 18:04:04 +08:00
parent 471ff75954
commit e9b3d81edf
120 changed files with 61974 additions and 59142 deletions

View File

@@ -865,6 +865,16 @@ G.FUNCS.change_crt_bloom = function(args)
G:save_settings()
end
G.FUNCS.change_collab = function(args)
G.SETTINGS.CUSTOM_DECK.Collabs[args.cycle_config.curr_suit] = G.COLLABS.options[args.cycle_config.curr_suit][args.to_key] or 'default'
for k, v in pairs(G.I.CARD) do
if v.config and v.config.card and v.children.front and v.ability.effect ~= 'Stone Card' then
v:set_sprites(nil, v.config.card)
end
end
G:save_settings()
end
--||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-- TEXT ENTRY
--||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -1251,6 +1261,21 @@ G.FUNCS.RUN_SETUP_check_stake2 = function(e)
end
end
G.FUNCS.change_viewed_collab = function(args)
G.viewed_collab = args.to_val
end
G.FUNCS.CREDITS_check_collab = function(e)
if (G.viewed_collab ~= e.config.id) then
e.config.object:remove()
e.config.object = UIBox{
definition = G.UIDEF.viewed_collab_option(),
config = {offset = {x=0,y=0}, align = 'cm', parent = e}
}
e.config.id = G.viewed_collab
end
end
G.FUNCS.RUN_SETUP_check_back_stake_column= function(e)
if G.GAME.viewed_back.name ~= e.config.id then
--removes the UI from the previously selected back and adds the new one
@@ -1528,6 +1553,13 @@ G.FUNCS.high_scores = function(e)
}
end
G.FUNCS.customize_deck = function(e)
G.SETTINGS.paused = true
G.FUNCS.overlay_menu{
definition = create_UIBox_customize_deck(),
}
end
G.FUNCS.usage = function(e)
G.SETTINGS.paused = true
G.FUNCS.overlay_menu{
@@ -1721,6 +1753,19 @@ G.FUNCS.reset_achievements = function(e)
G.FUNCS.exit_overlay_menu()
end
G.FUNCS.refresh_contrast_mode = function()
local new_colour_proto = G.C["SO_"..(G.SETTINGS.colourblind_option and 2 or 1)]
G.C.SUITS.Hearts = new_colour_proto.Hearts
G.C.SUITS.Diamonds = new_colour_proto.Diamonds
G.C.SUITS.Spades = new_colour_proto.Spades
G.C.SUITS.Clubs = new_colour_proto.Clubs
for k, v in pairs(G.I.CARD) do
if v.config and v.config.card and v.children.front and v.ability.effect ~= 'Stone Card' then
v:set_sprites(nil, v.config.card)
end
end
end
G.FUNCS.warn_lang = function(e)
local _infotip_object = G.OVERLAY_MENU:get_UIE_by_ID('overlay_menu_infotip')
if (_infotip_object.config.set ~= e.config.ref_table.label) and (not G.F_NO_ACHIEVEMENTS) then