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

Function gui_getFocusStrings

library/LuaApi.cpp:1482–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480};
1481
1482static int gui_getFocusStrings(lua_State *state) {
1483 df::viewscreen *r = Lua::GetDFObject<df::viewscreen>(state, 1);
1484 vector<string> focusStrings = Gui::getFocusStrings(r);
1485 Lua::PushVector(state, focusStrings);
1486 return 1;
1487}
1488
1489static int gui_getCurFocus(lua_State *state) {
1490 bool skip_dismissed = lua_toboolean(state, 1);

Callers

nothing calls this directly

Calls 1

PushVectorFunction · 0.85

Tested by

no test coverage detected