|
|
@ -421,7 +421,7 @@ struct trade_hook : public df::viewscreen_dwarfmodest
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
int left_margin = dims.menu_x1 + 1;
|
|
|
|
int left_margin = dims.menu_x1 + 1;
|
|
|
|
int x = left_margin;
|
|
|
|
int x = left_margin;
|
|
|
|
int y = dims.y2 - 4;
|
|
|
|
int y = dims.y2 - 5;
|
|
|
|
|
|
|
|
|
|
|
|
int links = 0;
|
|
|
|
int links = 0;
|
|
|
|
links += sp->links.give_to_pile.size();
|
|
|
|
links += sp->links.give_to_pile.size();
|
|
|
@ -429,7 +429,7 @@ struct trade_hook : public df::viewscreen_dwarfmodest
|
|
|
|
links += sp->links.give_to_workshop.size();
|
|
|
|
links += sp->links.give_to_workshop.size();
|
|
|
|
links += sp->links.take_from_workshop.size();
|
|
|
|
links += sp->links.take_from_workshop.size();
|
|
|
|
if (links + 12 >= y)
|
|
|
|
if (links + 12 >= y)
|
|
|
|
y += 4;
|
|
|
|
y += 5;
|
|
|
|
|
|
|
|
|
|
|
|
OutputToggleString(x, y, "Auto trade", "T", monitor.isMonitored(sp), true, left_margin, COLOR_WHITE, COLOR_LIGHTRED);
|
|
|
|
OutputToggleString(x, y, "Auto trade", "T", monitor.isMonitored(sp), true, left_margin, COLOR_WHITE, COLOR_LIGHTRED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|