diff --git "a/DATA/assets/\345\267\256\345\274\202.txt" "b/DATA/assets/\345\267\256\345\274\202.txt" index f9574bc2..789d498c 100644 --- "a/DATA/assets/\345\267\256\345\274\202.txt" +++ "b/DATA/assets/\345\267\256\345\274\202.txt" @@ -3,5 +3,6 @@ 国际服 国服 +咖啡厅左上角标题会改为 咖啡厅 礼服日奈的fes也许会把竞技场的跳过战斗文字改动。 礼服日奈的fes会把社团的入口改动 diff --git a/DATA/assets_cn/BUTTON/BUTTON_CAFE_SET_ROOM.png b/DATA/assets_cn/BUTTON/BUTTON_CAFE_SET_ROOM.png index 0eb216e5..118437f5 100644 Binary files a/DATA/assets_cn/BUTTON/BUTTON_CAFE_SET_ROOM.png and b/DATA/assets_cn/BUTTON/BUTTON_CAFE_SET_ROOM.png differ diff --git a/DATA/assets_cn/PAGE/PAGE_WANTED.png b/DATA/assets_cn/PAGE/PAGE_WANTED.png index 8140dbca..ddc60287 100644 Binary files a/DATA/assets_cn/PAGE/PAGE_WANTED.png and b/DATA/assets_cn/PAGE/PAGE_WANTED.png differ diff --git a/DATA/assets_cn/POPUP/POPUP_TASK_INFO.png b/DATA/assets_cn/POPUP/POPUP_TASK_INFO.png index 58051fbf..ece53ed6 100644 Binary files a/DATA/assets_cn/POPUP/POPUP_TASK_INFO.png and b/DATA/assets_cn/POPUP/POPUP_TASK_INFO.png differ diff --git a/gui/pages/Setting_task_order.py b/gui/pages/Setting_task_order.py index 4d47f3a5..0841263d 100644 --- a/gui/pages/Setting_task_order.py +++ b/gui/pages/Setting_task_order.py @@ -24,6 +24,9 @@ def select_clear_all_and_refresh_task_order(type="select"): @ui.refreshable def task_order(): + with ui.row(): + # 第一行添加上添加按钮 + ui.button(f'{config.get_text("button_add")} {config.get_text("config_task")}', on_click=lambda: add_task(0)) for i in range(len(config.userconfigdict["TASK_ORDER"])): with ui.row(): ui.label(f'{config.get_text("config_task")} {i+1}:') @@ -33,10 +36,6 @@ def task_order(): acheck = ui.checkbox(config.get_text("button_enable"), value=config.userconfigdict["TASK_ACTIVATE"][i], on_change=lambda v,i=i: config.userconfigdict["TASK_ACTIVATE"].__setitem__(i, v.value)) ui.button(f'{config.get_text("button_add")} {config.get_text("config_task")}', on_click=lambda i=i+1: add_task(i)) ui.button(f'{config.get_text("button_delete")} {config.get_text("config_task")}', on_click=lambda i=i: del_task(i), color="red") - with ui.row(): - # 最后一行添加上添加按钮和删除按钮 - ui.button(f'{config.get_text("button_add")} {config.get_text("config_task")}', on_click=lambda: add_task(0)) - ui.button(f'{config.get_text("button_delete")} {config.get_text("config_task")}', on_click=lambda: del_task(-1), color="red") def add_task(i): config.userconfigdict["TASK_ORDER"].insert(i, TaskName.MAIL) diff --git a/modules/AllTask/InClub/InClub.py b/modules/AllTask/InClub/InClub.py index ca7be1d1..53ba64f4 100644 --- a/modules/AllTask/InClub/InClub.py +++ b/modules/AllTask/InClub/InClub.py @@ -21,22 +21,9 @@ def pre_condition(self) -> bool: def on_run(self) -> None: - if config.userconfigdict["SERVER_TYPE"] in ["JP", "GLOBAL", "GLOBAL_EN"]: - # 日服, 国际服适配新界面 - click((565, 669), sleeptime=3) - click((299, 330), sleeptime=3) - else: - self.run_until( - lambda: click((563, 665)), - lambda: Page.is_page(PageName.PAGE_CLUB), - sleeptime=2 - ) - self.run_until( - lambda: self.back_to_home(), - lambda: Page.is_page(PageName.PAGE_HOME), - ) + click((565, 669), sleeptime=3) + click((299, 330), sleeptime=3) - def post_condition(self) -> bool: return self.back_to_home() \ No newline at end of file diff --git a/modules/AllTask/InCraft/InCraft.py b/modules/AllTask/InCraft/InCraft.py index 741f7197..646855cb 100644 --- a/modules/AllTask/InCraft/InCraft.py +++ b/modules/AllTask/InCraft/InCraft.py @@ -24,7 +24,7 @@ def __init__(self, name="InCraft") -> None: self.COLOR_BUTTON_CRAFT_YELLOW = self.COLOR_CRAFT_DONE # 制造材料清单从上到下三个点的位置 # 国服下方没有一键收集按钮,因此三个点偏下 - offsetY = 20 if "CN" in config.userconfigdict["SERVER_TYPE"] else 0 + offsetY = 0 items_ys = np.linspace(285, 530, 3, dtype=int) self.items_pos = [(1130, y+offsetY) for y in items_ys] diff --git a/modules/AllTask/SolveChallenge/SolveChallenge.py b/modules/AllTask/SolveChallenge/SolveChallenge.py index 506aca60..fe6bd916 100644 --- a/modules/AllTask/SolveChallenge/SolveChallenge.py +++ b/modules/AllTask/SolveChallenge/SolveChallenge.py @@ -57,14 +57,16 @@ def on_run(self) -> None: lambda: not match_pixel((1195, 130), Page.COLOR_WHITE) ) # 处理第n个挑战任务 - ScrollSelect(self.scroll_down_index, 141, 273, 613, 1150, hasexpectimage=lambda: not match_pixel(Page.MAGICPOINT, Page.COLOR_WHITE), swipeoffsetx=-200).run() + scroll_task = ScrollSelect(self.scroll_down_index, 153, 285, 625, 1150, hasexpectimage=lambda: not match_pixel(Page.MAGICPOINT, Page.COLOR_WHITE), swipeoffsetx=-200) + scroll_task.run() if not self.has_popup(): logging.warn(istr({ CN: "无法识别跳转弹窗", EN: "can not recognize popup window" })) return - click((1193, 144), sleeptime=3) + blue_button_pos = scroll_task.wantclick_pos + click((blue_button_pos[0] + 36, blue_button_pos[1] - 80), sleeptime=3) screenshot() # 通过识别弹窗后右侧像素颜色判断是困难还是普通 pixel_r = match_pixel((1181,159), ((0,0,50), (30, 30, 80))) diff --git a/modules/configs/MyConfig.py b/modules/configs/MyConfig.py index 9cce82cf..f8c226d1 100644 --- a/modules/configs/MyConfig.py +++ b/modules/configs/MyConfig.py @@ -12,7 +12,7 @@ class MyConfigger: """ 维护config字典,包含软件config,用户任务config,语言包 """ - NOWVERSION="1.8.5" + NOWVERSION="1.8.6" USER_CONFIG_FOLDER="./BAAH_CONFIGS" SOFTWARE_CONFIG_FOLDER="./DATA/CONFIGS" LANGUAGE_PACKAGE_FOLDER="./DATA/i18n"