Use BUILDJOB_NOW key, dim text when no job is selected

develop
lethosor 2020-08-06 22:44:49 -04:00
parent c7e4c724e8
commit ed9f724117
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 3 additions and 3 deletions

@ -4,7 +4,7 @@ struct do_job_now_hook : public df::viewscreen_joblistst {
typedef df::viewscreen_joblistst interpose_base;
bool handleInput(std::set<df::interface_key> *input) {
if (input->count(interface_key::CUSTOM_N)) {
if (input->count(interface_key::BUILDJOB_NOW)) {
df::job *job = vector_get(jobs, cursor_pos);
if (job) {
job->flags.bits.do_now = !job->flags.bits.do_now;
@ -34,8 +34,8 @@ struct do_job_now_hook : public df::viewscreen_joblistst {
do_now = job->flags.bits.do_now;
}
OutputHotkeyString(x, y, (!do_now ? "Do job now!" : "Normal priority"),
interface_key::CUSTOM_N, false, x, COLOR_WHITE, COLOR_LIGHTRED);
OutputHotkeyString(x, y, (!do_now ? "Do job now!" : "Reset priority"),
interface_key::BUILDJOB_NOW, false, x, job ? COLOR_WHITE : COLOR_DARKGREY, COLOR_LIGHTRED);
}
};