27 lines
866 B
Lua
27 lines
866 B
Lua
-- Inspect the active Guide page's Lua state; no UI actions or module writes.
|
|
do
|
|
if not _G.__gacCwGuide1 then
|
|
_G.__gacCwGuide1=true
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_GUIDE] '..tostring(v))end
|
|
local ok,err=pcall(function()
|
|
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:find('Handbook') or name:find('Guide') or name:find('DailyMission') then
|
|
log('PAGE '..name)
|
|
local page=ui:GetPageByName(name)
|
|
if page then
|
|
local lua=page.LuaTable
|
|
if type(lua)=='table' then
|
|
local n=0
|
|
for k,v in pairs(lua)do log('FIELD '..tostring(k)..' '..type(v)..' '..tostring(v));n=n+1;if n>=60 then break end end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end)
|
|
if not ok then log('ERROR '..tostring(err))end
|
|
end
|
|
end
|