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

Method pauseRecenter

library/modules/Gui.cpp:2851–2868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2849}
2850
2851bool Gui::pauseRecenter(int32_t x, int32_t y, int32_t z, bool pause)
2852{ // Reverse-engineered from DF announcement code
2853 if (*gamemode != game_mode::DWARF)
2854 return false;
2855
2856 resetDwarfmodeView(pause);
2857
2858 if (Maps::isValidTilePos(x, y, z))
2859 revealInDwarfmodeMap(x, y, z, false);
2860
2861 if (init->input.pause_zoom_no_interface_ms > 0)
2862 {
2863 gview->shutdown_interface_tickcount = Core::getInstance().p->getTickCount();
2864 gview->shutdown_interface_for_ms = init->input.pause_zoom_no_interface_ms;
2865 }
2866
2867 return true;
2868}
2869
2870bool Gui::refreshSidebar()
2871{

Callers

nothing calls this directly

Calls 3

isValidTilePosFunction · 0.85
revealInDwarfmodeMapFunction · 0.85
getTickCountMethod · 0.80

Tested by

no test coverage detected