Files
GaCy-GO/tools/gacha_refresh_owned_card.lua
T

17 lines
754 B
Lua
Raw Normal View History

2026-10-28 18:54:43 +07:00
-- Refresh only the already-owned preview card after a renderer correction.
-- No native list mutation, scene/camera changes, selection or draw command.
do
local page=_G.__gacWarpCreateTrace1 and _G.__gacWarpCreateTrace1.page
local state=_G.__GAC_GACHA_PRESENTATION_STATE
if not _G.__gacRefreshOwnedCard2 and page and state and state.render_current then
_G.__gacRefreshOwnedCard2=true
for _,tab in pairs(page._gacha_tab_items or {})do
local pool=tab._gacha_pool_data
local owned=pool and state.installed[pool.GachaID]
if owned and owned.pool==pool then
local ok,e=pcall(state.render_current,tab,state.by_id[pool.GachaID])
CS.UnityEngine.Debug.Log('[GAC_OWNED_CARD_REFRESH] '..tostring(ok)..' '..tostring(e))
end
end
end
end