|
|
@ -525,6 +525,10 @@ struct buildingplan_place_hook : public df::viewscreen_dwarfmodest
|
|
|
|
if (input->count(interface_key::CUSTOM_P) ||
|
|
|
|
if (input->count(interface_key::CUSTOM_P) ||
|
|
|
|
input->count(interface_key::CUSTOM_F) ||
|
|
|
|
input->count(interface_key::CUSTOM_F) ||
|
|
|
|
input->count(interface_key::CUSTOM_D) ||
|
|
|
|
input->count(interface_key::CUSTOM_D) ||
|
|
|
|
|
|
|
|
input->count(interface_key::CUSTOM_Q) ||
|
|
|
|
|
|
|
|
input->count(interface_key::CUSTOM_W) ||
|
|
|
|
|
|
|
|
input->count(interface_key::CUSTOM_A) ||
|
|
|
|
|
|
|
|
input->count(interface_key::CUSTOM_S) ||
|
|
|
|
input->count(interface_key::CUSTOM_M))
|
|
|
|
input->count(interface_key::CUSTOM_M))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
show_help = true;
|
|
|
|
show_help = true;
|
|
|
@ -559,13 +563,13 @@ struct buildingplan_place_hook : public df::viewscreen_dwarfmodest
|
|
|
|
|
|
|
|
|
|
|
|
if (input->count(interface_key::CUSTOM_SHIFT_M))
|
|
|
|
if (input->count(interface_key::CUSTOM_SHIFT_M))
|
|
|
|
Screen::show(dts::make_unique<ViewscreenChooseMaterial>(*filter), plugin_self);
|
|
|
|
Screen::show(dts::make_unique<ViewscreenChooseMaterial>(*filter), plugin_self);
|
|
|
|
else if (input->count(interface_key::CUSTOM_Q))
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_Q))
|
|
|
|
filter->decMinQuality();
|
|
|
|
filter->decMinQuality();
|
|
|
|
else if (input->count(interface_key::CUSTOM_W))
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_W))
|
|
|
|
filter->incMinQuality();
|
|
|
|
filter->incMinQuality();
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_Q))
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_A))
|
|
|
|
filter->decMaxQuality();
|
|
|
|
filter->decMaxQuality();
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_W))
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_S))
|
|
|
|
filter->incMaxQuality();
|
|
|
|
filter->incMaxQuality();
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_D))
|
|
|
|
else if (input->count(interface_key::CUSTOM_SHIFT_D))
|
|
|
|
filter->toggleDecoratedOnly();
|
|
|
|
filter->toggleDecoratedOnly();
|
|
|
@ -669,10 +673,10 @@ struct buildingplan_place_hook : public df::viewscreen_dwarfmodest
|
|
|
|
OutputString(COLOR_WHITE, x, y, title.c_str(), true, left_margin + 1);
|
|
|
|
OutputString(COLOR_WHITE, x, y, title.c_str(), true, left_margin + 1);
|
|
|
|
OutputString(COLOR_WHITE, x, y, get_item_label(key, filter_idx).c_str(), true, left_margin);
|
|
|
|
OutputString(COLOR_WHITE, x, y, get_item_label(key, filter_idx).c_str(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString(x, y, "Min Quality: ", "qw");
|
|
|
|
OutputHotkeyString(x, y, "Min Quality: ", "QW");
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMinQuality(), true, left_margin);
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMinQuality(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString(x, y, "Max Quality: ", "QW");
|
|
|
|
OutputHotkeyString(x, y, "Max Quality: ", "AS");
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMaxQuality(), true, left_margin);
|
|
|
|
OutputString(COLOR_BROWN, x, y, filter->getMaxQuality(), true, left_margin);
|
|
|
|
|
|
|
|
|
|
|
|
OutputToggleString(x, y, "Decorated Only", "D", filter->getDecoratedOnly(), true, left_margin);
|
|
|
|
OutputToggleString(x, y, "Decorated Only", "D", filter->getDecoratedOnly(), true, left_margin);
|
|
|
|