| 379 | } |
| 380 | |
| 381 | void render() |
| 382 | { |
| 383 | using namespace df::enums::interface_key; |
| 384 | |
| 385 | if (Screen::isDismissed(this)) |
| 386 | return; |
| 387 | |
| 388 | dfhack_viewscreen::render(); |
| 389 | |
| 390 | Screen::clear(); |
| 391 | Screen::drawBorder(" Dwarf Activity "); |
| 392 | |
| 393 | dwarves_column.display(selected_column == 0); |
| 394 | dwarf_activity_column.display(selected_column == 1); |
| 395 | |
| 396 | int32_t y = gps->dimy - 4; |
| 397 | int32_t x = 2; |
| 398 | OutputHotkeyString(x, y, "Leave", LEAVESCREEN); |
| 399 | |
| 400 | x += 13; |
| 401 | string window_label = "Window Months: " + int_to_string(window_days / min_window); |
| 402 | OutputHotkeyString(x, y, window_label.c_str(), SECONDSCROLL_PAGEDOWN); |
| 403 | |
| 404 | ++y; |
| 405 | x = 2; |
| 406 | OutputHotkeyString(x, y, "Fort Stats", CUSTOM_SHIFT_D); |
| 407 | |
| 408 | x += 3; |
| 409 | OutputHotkeyString(x, y, "Zoom Unit", CUSTOM_SHIFT_Z); |
| 410 | } |
| 411 | |
| 412 | std::string getFocusString() { return "dwarfmonitor_dwarfstats"; } |
| 413 |
nothing calls this directly
no test coverage detected