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

Function LuaNewPieNode

engine/gui/src/gui_script.cpp:1746–1752  ·  view source on GitHub ↗

creates a new pie node * Dynamically create a new pie node. * * @name gui.new_pie_node * @param pos [type:vector3|vector4] node position * @param size [type:vector3] node size * @return node [type:node] new pie node */

Source from the content-addressed store, hash-verified

1744 * @return node [type:node] new pie node
1745 */
1746 static int LuaNewPieNode(lua_State* L)
1747 {
1748 Point3 pos = GetPositionFromArgumentIndex(L, 1);
1749 Vector3 size = *dmScript::CheckVector3(L, 2);
1750 Scene* scene = GuiScriptInstance_Check(L);
1751 return LuaDoNewNode(L, scene, pos, size, NODE_TYPE_PIE, 0, 0, 0x0);
1752 }
1753
1754 /*# gets the node text
1755 * Returns the text value of a text node. This is only useful for text nodes.

Callers

nothing calls this directly

Calls 4

CheckVector3Function · 0.85
GuiScriptInstance_CheckFunction · 0.85
LuaDoNewNodeFunction · 0.85

Tested by

no test coverage detected