|
|
|
@ -110,7 +110,6 @@ struct buildingplan_hook : public df::viewscreen_dwarfmodest
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_P) ||
|
|
|
|
|
input->count(interface_key::CUSTOM_F) ||
|
|
|
|
|
input->count(interface_key::CUSTOM_Q) ||
|
|
|
|
|
input->count(interface_key::CUSTOM_D) ||
|
|
|
|
|
input->count(interface_key::CUSTOM_N))
|
|
|
|
|
{
|
|
|
|
@ -161,7 +160,19 @@ struct buildingplan_hook : public df::viewscreen_dwarfmodest
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_Q))
|
|
|
|
|
{
|
|
|
|
|
planner.cycleDefaultQuality(type);
|
|
|
|
|
planner.adjustMinQuality(type, 1);
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_W))
|
|
|
|
|
{
|
|
|
|
|
planner.adjustMaxQuality(type, 1);
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_Q))
|
|
|
|
|
{
|
|
|
|
|
planner.adjustMinQuality(type, -1);
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_W))
|
|
|
|
|
{
|
|
|
|
|
planner.adjustMaxQuality(type, -1);
|
|
|
|
|
}
|
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_D))
|
|
|
|
|
{
|
|
|
|
@ -269,9 +280,12 @@ struct buildingplan_hook : public df::viewscreen_dwarfmodest
|
|
|
|
|
|
|
|
|
|
auto filter = planner.getDefaultItemFilterForType(type);
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString(x, y, "Min Quality: ", "Q");
|
|
|
|
|
OutputHotkeyString(x, y, "Min Quality: ", "qQ");
|
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMinQuality(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString(x, y, "Max Quality: ", "wW");
|
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMaxQuality(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
OutputToggleString(x, y, "Decorated Only: ", "D", filter->decorated_only, true, left_margin);
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString(x, y, "Material Filter:", "M", true, left_margin);
|
|
|
|
@ -297,7 +311,10 @@ struct buildingplan_hook : public df::viewscreen_dwarfmodest
|
|
|
|
|
auto filter = planner.getSelectedPlannedBuilding()->getFilter();
|
|
|
|
|
y = 24;
|
|
|
|
|
OutputString(COLOR_BROWN, x, y, "Planned Building Filter:", true, left_margin);
|
|
|
|
|
OutputString(COLOR_BROWN, x, y, "Min Quality: ", false, left_margin);
|
|
|
|
|
OutputString(COLOR_BLUE, x, y, filter->getMinQuality(), true, left_margin);
|
|
|
|
|
OutputString(COLOR_BROWN, x, y, "Max Quality: ", false, left_margin);
|
|
|
|
|
OutputString(COLOR_BLUE, x, y, filter->getMaxQuality(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
if (filter->decorated_only)
|
|
|
|
|
OutputString(COLOR_BLUE, x, y, "Decorated Only", true, left_margin);
|
|
|
|
|