MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / ShowLocalsForFrame

Method ShowLocalsForFrame

Code/CryEngine/CryScriptSystem/LuaDebugger/LUADBG.cpp:1278–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278void CLUADbg::ShowLocalsForFrame(int frame)
1279{
1280 m_wLocals.SendMessage(WM_SETREDRAW, (WPARAM)FALSE, (LPARAM)FALSE);
1281
1282 m_nodeLookupByName.clear();
1283 m_wLocals.Clear();
1284 IScriptTable* pFrame = m_pScriptSystem->GetLocalVariables(frame, false);
1285 m_pTreeToAdd = &m_wLocals;
1286 if (pFrame)
1287 {
1288 m_hRoot = NULL;
1289 m_iRecursionLevel = 0;
1290 m_pIVariable = pFrame;
1291 pFrame->Dump((IScriptTableDumpSink*) this);
1292 ShowSelf(pFrame);
1293 pFrame->Release();
1294 }
1295 else
1296 m_wLocals.AddItemToTree("No Locals Available");
1297 m_pTreeToAdd = NULL;
1298 m_pIVariable = NULL;
1299 m_wLocals.SendMessage(WM_SETREDRAW, (WPARAM)TRUE, (LPARAM)FALSE);
1300}
1301
1302HTREEITEM CLUADbg::AddVariableToTree(const char* sName, ScriptVarType type, HTREEITEM hParent)
1303{

Callers

nothing calls this directly

Calls 7

SendMessageMethod · 0.45
clearMethod · 0.45
ClearMethod · 0.45
GetLocalVariablesMethod · 0.45
DumpMethod · 0.45
ReleaseMethod · 0.45
AddItemToTreeMethod · 0.45

Tested by

no test coverage detected