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

Function gui_pauseRecenter

library/LuaApi.cpp:1754–1779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1752}
1753
1754static int gui_pauseRecenter(lua_State *state)
1755{
1756 bool rv;
1757 df::coord p;
1758
1759 switch (lua_gettop(state))
1760 {
1761 default:
1762 case 4:
1763 rv = Gui::pauseRecenter(CheckCoordXYZ(state, 1, false), lua_toboolean(state, 4));
1764 break;
1765 case 3:
1766 rv = Gui::pauseRecenter(CheckCoordXYZ(state, 1, false));
1767 break;
1768 case 2:
1769 Lua::CheckDFAssign(state, &p, 1);
1770 rv = Gui::pauseRecenter(p, lua_toboolean(state, 2));
1771 break;
1772 case 1:
1773 Lua::CheckDFAssign(state, &p, 1);
1774 rv = Gui::pauseRecenter(p);
1775 }
1776
1777 lua_pushboolean(state, rv);
1778 return 1;
1779}
1780
1781static int gui_revealInDwarfmodeMap(lua_State *state)
1782{

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
pauseRecenterFunction · 0.85
CheckCoordXYZFunction · 0.85
lua_tobooleanFunction · 0.85
CheckDFAssignFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected