-- Read-only CW page and native entry state, bounded to CW-named pages. do if not _G.__gacCwUIState1 then _G.__gacCwUIState1=true local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_UI_STATE] '..tostring(v))end local ok,err=pcall(function() local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60) local module=CS.RPG.Client.GlobalVars.s_ModuleManager.GridFightModule log('AUTO_SHOW '..tostring(module:GetType():GetField('_NeedShowEntrancePage',flags):GetValue(module))) log('SESSION '..tostring(module.CurGameSession)) local ui=CS.RPG.Client.GlobalVars.s_UIManager local names=ui:GetAllPageNames() for i=0,names.Count-1 do local name=tostring(names[i]) if name:lower():find('gridfight')then log('PAGE '..name) local page=ui:GetPageByName(name) local lua=page and page.LuaTable if type(lua)=='table' then local n=0 for k,v in pairs(lua)do if type(v)=='function' then local info=debug.getinfo(v,'S') log('FUNCTION '..tostring(k)..' '..tostring(info and info.source)) elseif type(v)~='userdata' and type(v)~='table' then log('FIELD '..tostring(k)..' '..tostring(v))end n=n+1;if n>=96 then break end end end end end end) if not ok then log('ERROR '..tostring(err))end end end