| 1625 | } |
| 1626 | |
| 1627 | void render() override { |
| 1628 | using namespace df::enums::interface_key; |
| 1629 | |
| 1630 | if (Screen::isDismissed(this)) |
| 1631 | return; |
| 1632 | |
| 1633 | dfhack_viewscreen::render(); |
| 1634 | |
| 1635 | Screen::clear(); |
| 1636 | Screen::drawBorder(" Dwarf Preferences "); |
| 1637 | |
| 1638 | preferences_column.display(selected_column == 0); |
| 1639 | dwarf_column.display(selected_column == 1); |
| 1640 | |
| 1641 | int32_t y = gps->dimy - 3; |
| 1642 | int32_t x = 2; |
| 1643 | OutputHotkeyString(x, y, "Leave", LEAVESCREEN); |
| 1644 | |
| 1645 | x += 2; |
| 1646 | OutputHotkeyString(x, y, "View Unit", CUSTOM_SHIFT_V, false, 0, |
| 1647 | getSelectedUnit() ? COLOR_WHITE : COLOR_DARKGREY); |
| 1648 | |
| 1649 | x += 2; |
| 1650 | OutputHotkeyString(x, y, "Zoom Unit", CUSTOM_SHIFT_Z, false, 0, |
| 1651 | getSelectedUnit() ? COLOR_WHITE : COLOR_DARKGREY); |
| 1652 | } |
| 1653 | |
| 1654 | std::string getFocusString() override { return "dwarfmonitor_preferences"; } |
| 1655 |
nothing calls this directly
no test coverage detected