AzurLaneAutoScript
AzurLaneAutoScript copied to clipboard
希望能保留愚人节的三角形图标旋转功能
你的功能请求是否与问题有关?
前几天的一直旋转的图标可以在不点进对应的配置文件的情况下就能看到它是否在运行,很舒服。可以及时发现某个配置停止了。
解决方案
做成可选项放在设置里面?
其他内容
No response
这个比较小众,估计不太会做,可以直接本地修改。
对应实现在:module\webui\app.py下的 set_aside 方法中
https://github.com/LmeSzinc/AzurLaneAutoScript/blob/ba39fe8c3fe8ef5b506709134bed77a8da8a839b/module/webui/app.py#L148-L150
最简单的实现常现的方法,是将日期判断去除,直接将 self.af_flag 设为 True。即:
在 set_aside 方法中,将
current_date = datetime.now().date()
if current_date.month == 4 and current_date.day == 1:
self.af_flag = True
替换为
self.af_flag = True