|
|
|
@ -1814,14 +1814,14 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
|
|
|
|
|
|
|
|
|
|
if (events->count(interface_key::CUSTOM_B))
|
|
|
|
|
{
|
|
|
|
|
Screen::show(new viewscreen_unitbatchopst(units, true, &do_refresh_names), plugin_self);
|
|
|
|
|
Screen::show(dts::make_unique<viewscreen_unitbatchopst>(units, true, &do_refresh_names), plugin_self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (events->count(interface_key::CUSTOM_E))
|
|
|
|
|
{
|
|
|
|
|
vector<UnitInfo*> tmp;
|
|
|
|
|
tmp.push_back(cur);
|
|
|
|
|
Screen::show(new viewscreen_unitbatchopst(tmp, false, &do_refresh_names), plugin_self);
|
|
|
|
|
Screen::show(dts::make_unique<viewscreen_unitbatchopst>(tmp, false, &do_refresh_names), plugin_self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (events->count(interface_key::CUSTOM_P))
|
|
|
|
@ -1832,11 +1832,11 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
|
|
|
|
|
has_selected = true;
|
|
|
|
|
|
|
|
|
|
if (has_selected) {
|
|
|
|
|
Screen::show(new viewscreen_unitprofessionset(units, true), plugin_self);
|
|
|
|
|
Screen::show(dts::make_unique<viewscreen_unitprofessionset>(units, true), plugin_self);
|
|
|
|
|
} else {
|
|
|
|
|
vector<UnitInfo*> tmp;
|
|
|
|
|
tmp.push_back(cur);
|
|
|
|
|
Screen::show(new viewscreen_unitprofessionset(tmp, false), plugin_self);
|
|
|
|
|
Screen::show(dts::make_unique<viewscreen_unitprofessionset>(tmp, false), plugin_self);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2187,7 +2187,7 @@ struct unitlist_hook : df::viewscreen_unitlistst
|
|
|
|
|
{
|
|
|
|
|
if (units[page].size())
|
|
|
|
|
{
|
|
|
|
|
Screen::show(new viewscreen_unitlaborsst(units[page], cursor_pos[page]), plugin_self);
|
|
|
|
|
Screen::show(dts::make_unique<viewscreen_unitlaborsst>(units[page], cursor_pos[page]), plugin_self);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|