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

Function gui_getDwarfmodeViewDims

library/LuaApi.cpp:1430–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428/***** Gui module *****/
1429
1430static int gui_getDwarfmodeViewDims(lua_State *state)
1431{
1432 auto dims = Gui::getDwarfmodeViewDims();
1433 lua_newtable(state);
1434 Lua::TableInsert(state, "map_x1", dims.map_x1);
1435 Lua::TableInsert(state, "map_x2", dims.map_x2);
1436 Lua::TableInsert(state, "map_y1", dims.map_y1);
1437 Lua::TableInsert(state, "map_y2", dims.map_y2);
1438 return 1;
1439}
1440
1441static int gui_getMousePos(lua_State *L)
1442{

Callers

nothing calls this directly

Calls 1

TableInsertFunction · 0.85

Tested by

no test coverage detected