|
|
@ -76,7 +76,10 @@ struct farm_select_hook : df::viewscreen_dwarfmodest {
|
|
|
|
DEFINE_VMETHOD_INTERPOSE(void, render, ())
|
|
|
|
DEFINE_VMETHOD_INTERPOSE(void, render, ())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
INTERPOSE_NEXT(render)();
|
|
|
|
INTERPOSE_NEXT(render)();
|
|
|
|
if (!getFarmPlot() || !ui->selected_farm_crops.size())
|
|
|
|
auto farm_plot = getFarmPlot();
|
|
|
|
|
|
|
|
if (!farm_plot || !ui->selected_farm_crops.size())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (farm_plot->getBuildStage() != farm_plot->getMaxBuildStage())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
int x = dims.menu_x1 + 1,
|
|
|
|
int x = dims.menu_x1 + 1,
|
|
|
|