Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- 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
|
||||
Reference in new issue
Block a user