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

Function screen_show

library/LuaApi.cpp:3201–3213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3199namespace {
3200
3201int screen_show(lua_State *L)
3202{
3203 df::viewscreen *before = NULL;
3204 if (lua_gettop(L) >= 2)
3205 before = Lua::CheckDFObject<df::viewscreen>(L, 2);
3206
3207 df::viewscreen *screen = dfhack_lua_viewscreen::get_pointer(L, 1, true);
3208
3209 bool ok = Screen::show(std::unique_ptr<df::viewscreen>{screen}, before);
3210
3211 lua_pushboolean(L, ok);
3212 return 1;
3213}
3214
3215static int screen_dismiss(lua_State *L)
3216{

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
showFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected