| 2849 | } |
| 2850 | |
| 2851 | bool 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 | |
| 2870 | bool Gui::refreshSidebar() |
| 2871 | { |
nothing calls this directly
no test coverage detected