Files
GaCy-GO/tools/request_gacha_tab_control_capture.lua
2026-10-28 18:54:43 +07:00

11 lines
782 B
Lua

do local function capture()
if _G.__gacTabControlCapture1 then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
local current=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
if not current or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(current)then return end
_G.__gacTabControlCapture1=true
local ok,v=pcall(package.loaders[3],'Ui.Component.TabControl')
CS.UnityEngine.Debug.Log('[GAC_GACHA_TAB_CONTROL_CAPTURE] '..tostring(ok)..' '..type(v))
end local ok,e=pcall(capture);if not ok then _G.__gacTabControlCapture1=true;CS.UnityEngine.Debug.Log('[GAC_GACHA_TAB_CONTROL_CAPTURE] ERROR '..tostring(e))end end