MCPcopy Create free account
hub / github.com/DFHack/dfhack / gui_getWidgetChildren

Function gui_getWidgetChildren

library/LuaApi.cpp:1843–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841}
1842
1843static int gui_getWidgetChildren(lua_State *L) {
1844 df::widget_container *container = Lua::CheckDFObject<df::widget_container>(L, 1);
1845 vector<df::widget *> vec;
1846 if (container) {
1847 for (auto & contained : container->children)
1848 vec.emplace_back(contained.get());
1849 }
1850 Lua::PushVector(L, vec);
1851 return 1;
1852}
1853
1854static const luaL_Reg dfhack_gui_funcs[] = {
1855 { "makeAnnouncement", gui_makeAnnouncement },

Callers

nothing calls this directly

Calls 2

PushVectorFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected