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