|
|
@ -409,18 +409,7 @@ struct stockpiles_import_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 - 3;
|
|
|
|
int y = dims.y2 - 7; // above automelt, autotrade, stocks, and stockflow
|
|
|
|
|
|
|
|
|
|
|
|
int links = 0;
|
|
|
|
|
|
|
|
links += sp->links.give_to_pile.size();
|
|
|
|
|
|
|
|
links += sp->links.take_from_pile.size();
|
|
|
|
|
|
|
|
links += sp->links.give_to_workshop.size();
|
|
|
|
|
|
|
|
links += sp->links.take_from_workshop.size();
|
|
|
|
|
|
|
|
if ( links + 12 >= y )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
y += 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutputHotkeyString ( x, y, "Load/Save Settings", "l", true, left_margin, COLOR_WHITE, COLOR_LIGHTRED );
|
|
|
|
OutputHotkeyString ( x, y, "Load/Save Settings", "l", true, left_margin, COLOR_WHITE, COLOR_LIGHTRED );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|