|
|
@ -246,9 +246,17 @@ struct autogem_hook : public df::viewscreen_dwarfmodest {
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
auto dims = Gui::getDwarfmodeViewDims();
|
|
|
|
int x = dims.menu_x1 + 1;
|
|
|
|
int x = dims.menu_x1 + 1;
|
|
|
|
int y = dims.y1 + 12;
|
|
|
|
int y = dims.y1 + 12;
|
|
|
|
|
|
|
|
Screen::Pen pen = Screen::readTile(x, y);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (pen.valid() && pen.ch != ' ') {
|
|
|
|
|
|
|
|
pen = Screen::readTile(x, ++y);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (pen.valid()) {
|
|
|
|
OutputHotkeyString(x, y, (running? "Auto Cut Gems": "No Auto Cut Gems"), "g", false, x, COLOR_WHITE, COLOR_LIGHTRED);
|
|
|
|
OutputHotkeyString(x, y, (running? "Auto Cut Gems": "No Auto Cut Gems"), "g", false, x, COLOR_WHITE, COLOR_LIGHTRED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_VMETHOD_INTERPOSE(autogem_hook, feed);
|
|
|
|
IMPLEMENT_VMETHOD_INTERPOSE(autogem_hook, feed);
|
|
|
|