Bladeren bron

fix(Exploration): 将返回按钮图像资源从红色改为黄色

- 在 base.py 中将 I_UI_BACK_RED 替换为 I_UI_BACK_YELLOW 的图像识别
- 在 solo.py 中将 ui_click_until_disappear 改为 ui_click 配合 stop 参数
- 适配游戏界面返回按钮的视觉变化
yuyuyuyuyu 5 maanden geleden
bovenliggende
commit
d0b7b2163f
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      tasks/Exploration/base.py
  2. 1 1
      tasks/Exploration/solo.py

+ 1 - 1
tasks/Exploration/base.py

@@ -383,7 +383,7 @@ class BaseExploration(GameUi, GeneralBattle, GeneralRoom, GeneralInvite, Replace
             self.screenshot()
             
             # 探索章节标题界面
-            if self.appear(self.I_UI_BACK_RED) and self.appear(self.I_E_EXPLORATION_CLICK):
+            if self.appear(self.I_UI_BACK_YELLOW) and self.appear(self.I_E_EXPLORATION_CLICK):
                 break
             # 探索大世界界面
             if self.appear(self.I_CHECK_EXPLORATION) and not self.appear(self.I_E_SETTINGS_BUTTON):

+ 1 - 1
tasks/Exploration/solo.py

@@ -260,7 +260,7 @@ class SoloExploration(BaseExploration):
                 continue
             #
             elif scene == Scene.ENTRANCE:
-                self.ui_click_until_disappear(self.I_UI_BACK_RED)
+                self.ui_click(self.I_UI_BACK_YELLOW,stop=self.I_CHECK_EXPLORATION)
             #
             elif scene == Scene.TEAM:
                 continue