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

Method render

plugins/dwarfmonitor.cpp:991–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989 }
990
991 void render()
992 {
993 using namespace df::enums::interface_key;
994
995 if (Screen::isDismissed(this))
996 return;
997
998 dfhack_viewscreen::render();
999
1000 Screen::clear();
1001 Screen::drawBorder(" Fortress Efficiency ");
1002
1003 fort_activity_column.display(selected_column == 0);
1004 dwarf_activity_column.display(selected_column == 1);
1005 category_breakdown_column.display(false);
1006
1007 int32_t y = gps->dimy - 4;
1008 int32_t x = 2;
1009 OutputHotkeyString(x, y, "Leave", LEAVESCREEN);
1010
1011 x += 13;
1012 string window_label = "Window Months: " + int_to_string(window_days / min_window);
1013 OutputHotkeyString(x, y, window_label.c_str(), SECONDSCROLL_PAGEDOWN);
1014
1015 ++y;
1016 x = 2;
1017 OutputHotkeyString(x, y, "Dwarf Stats", CUSTOM_SHIFT_D);
1018
1019 x += 3;
1020 OutputHotkeyString(x, y, "Zoom Unit", CUSTOM_SHIFT_Z);
1021 }
1022
1023 std::string getFocusString() { return "dwarfmonitor_fortstats"; }
1024

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