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

Method render

plugins/dwarfmonitor.cpp:381–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

OutputHotkeyStringFunction · 0.85
int_to_stringFunction · 0.85
displayMethod · 0.80
c_strMethod · 0.80
clearFunction · 0.50

Tested by

no test coverage detected