chore.一些小修改,更新版本号

This commit is contained in:
MistEO
2021-12-04 18:06:49 +08:00
parent 63f6664338
commit 8926bfa381
4 changed files with 38 additions and 4 deletions

View File

@@ -12,7 +12,26 @@
"StartToWakeUp",
"TodaysSupplies",
"CloseAnno",
"Terminal"
"Terminal",
"GameStart"
]
},
"GameStart": {
"action": "clickSelf",
"roi": [
550,
600,
200,
120
],
"cache": false,
"rearDelay": 5000,
"maskRange": [
1,
255
],
"next": [
"StartToWakeUp"
]
},
"ReturnToTerminal": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -2,5 +2,5 @@
namespace asst
{
constexpr static const char* Version = "v2.1.1";
constexpr static const char* Version = "v2.1.2";
}

View File

@@ -66,10 +66,10 @@ namespace MeoAsstGui
AddLog("捕获模拟器窗口失败,若是第一次运行,请尝试使用管理员权限", "Red");
return;
}
AddLog("正在运行中……");
bool ret = true;
// 直接遍历TaskItemViewModels里面的内容是排序后的
int count = 0;
foreach (var item in TaskItemViewModels)
{
if (item.IsChecked == false)
@@ -77,6 +77,7 @@ namespace MeoAsstGui
continue;
}
++count;
if (item.Name == "基建换班")
{
ret &= appendInfrast();
@@ -101,11 +102,25 @@ namespace MeoAsstGui
{
ret &= asstProxy.AsstAppendAward();
}
else
{
--count;
// TODO 报错
}
}
if (count == 0)
{
AddLog("未选择任务");
return;
}
setPenguinId();
ret &= asstProxy.AsstStart();
if (!ret)
if (ret)
{
AddLog("正在运行中……");
}
else
{
AddLog("出现未知错误");
}