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

File diff suppressed because it is too large Load Diff

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

View File

@@ -1831,6 +1831,19 @@ function get_stake_sprite(_stake, _scale)
return stake_sprite
end
function get_front_spriteinfo(_front)
if _front and _front.suit and (_front.value == 'Jack' or _front.value == 'Queen' or _front.value == 'King') then
if G.SETTINGS.CUSTOM_DECK and G.SETTINGS.CUSTOM_DECK.Collabs[_front.suit] then
local _collab = G.SETTINGS.CUSTOM_DECK.Collabs[_front.suit]
if (_collab == 'default') or (not G.ASSET_ATLAS[_collab..'_'..(G.SETTINGS.colourblind_option and 2 or 1)]) then
else
return G.ASSET_ATLAS[_collab..'_'..(G.SETTINGS.colourblind_option and 2 or 1)], G.COLLABS.pos[_front.value]
end
end
end
return G.ASSET_ATLAS[_front.atlas] or G.ASSET_ATLAS["cards_"..(G.SETTINGS.colourblind_option and 2 or 1)], _front.pos
end
function get_stake_col(_stake)
G.C.STAKES = G.C.STAKES or {
G.C.WHITE,

View File

@@ -26,6 +26,10 @@ function win_game()
G.E_MANAGER:add_event(Event({
trigger = 'immediate',
func = (function()
for k, v in pairs(G.I.CARD) do
v.sticker_run = nil
end
play_sound('win')
G.SETTINGS.paused = true

View File

@@ -1,4 +1,5 @@
function live_test()
end
function do_action(action)