mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
feat.修复肉鸽的一些小问题,增加盐风溶洞18作业
This commit is contained in:
@@ -27,11 +27,14 @@ bool asst::BattleProcessTask::_run()
|
||||
return false;
|
||||
}
|
||||
|
||||
while (!analyze_opers_preview()) {
|
||||
while (!need_exit() && !analyze_opers_preview()) {
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
for (const auto& action : m_actions_group.actions) {
|
||||
if (need_exit()) {
|
||||
break;
|
||||
}
|
||||
do_action(action);
|
||||
}
|
||||
|
||||
@@ -79,12 +82,8 @@ bool asst::BattleProcessTask::analyze_opers_preview()
|
||||
std::string text = "( " + std::to_string(loc.x) + ", " + std::to_string(loc.y) + " )";
|
||||
cv::putText(draw, text, cv::Point(info.pos.x - 30, info.pos.y), 1, 1.2, cv::Scalar(0, 0, 255), 2);
|
||||
}
|
||||
#ifdef WIN32
|
||||
std::string output_filename = utils::utf8_to_gbk(m_stage_name);
|
||||
#else
|
||||
std::string output_filename = m_stage_name;
|
||||
#endif
|
||||
cv::imwrite(output_filename + ".png", draw);
|
||||
|
||||
cv::imwrite("map.png", draw);
|
||||
//#endif
|
||||
|
||||
// 干员头像出来之后,还要过 2 秒左右才可以点击,这里要加个延时
|
||||
|
||||
Reference in New Issue
Block a user