MCPcopy Create free account
hub / github.com/defold/defold / CloneNodeToTable

Function CloneNodeToTable

engine/gui/src/gui_script.cpp:3868–3880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3866 static dmGui::Result CloneNodeListToTable(lua_State* L, dmGui::HScene scene, uint16_t start_index, dmGui::HNode parent);
3867
3868 static dmGui::Result CloneNodeToTable(lua_State* L, dmGui::HScene scene, InternalNode* n, dmGui::HNode* out_node)
3869 {
3870 dmGui::HNode node = GetNodeHandle(n);
3871 dmGui::Result result = dmGui::CloneNode(scene, node, out_node);
3872 if (result == dmGui::RESULT_OK)
3873 {
3874 dmScript::PushHash(L, n->m_NameHash);
3875 LuaPushNode(L, scene, *out_node);
3876 lua_rawset(L, -3);
3877 result = CloneNodeListToTable(L, scene, n->m_ChildHead, *out_node);
3878 }
3879 return result;
3880 }
3881
3882 static dmGui::Result CloneNodeListToTable(lua_State* L, dmGui::HScene scene, uint16_t start_index, dmGui::HNode parent)
3883 {

Callers 2

CloneNodeListToTableFunction · 0.85
LuaCloneTreeFunction · 0.85

Calls 6

PushHashFunction · 0.85
LuaPushNodeFunction · 0.85
lua_rawsetFunction · 0.85
CloneNodeListToTableFunction · 0.85
GetNodeHandleFunction · 0.70
CloneNodeFunction · 0.70

Tested by

no test coverage detected