Merge pull request #410 from LmeSzinc/dev

Bug fix
This commit is contained in:
LmeSzinc 2024-04-08 22:57:24 +08:00 committed by GitHub
commit 768391852e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 31 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -2,6 +2,7 @@ import asyncio
import filecmp
import os
import shutil
import sys
import typing as t
from dataclasses import dataclass
@ -9,7 +10,8 @@ from deploy.Windows.alas import AlasManager
from deploy.Windows.logger import logger
from deploy.Windows.utils import cached_property
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
if sys.platform.startswith("win"):
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
@dataclass

View File

@ -3,6 +3,16 @@ from module.base.button import Button, ButtonWrapper
# This file was auto-generated, do not modify it manually. To generate:
# ``` python -m dev_tools.button_extract ```
FuXuan = ButtonWrapper(
name='FuXuan',
share=Button(
file='./assets/share/character/switch/FuXuan.png',
area=(1180, 236, 1198, 254),
search=(1160, 216, 1218, 274),
color=(225, 186, 192),
button=(1180, 236, 1198, 254),
),
)
Huohuo = ButtonWrapper(
name='Huohuo',
share=Button(

View File

@ -97,9 +97,8 @@ class CharacterSwitch(UI):
TrailblazerPreservationFemale,
],
KEYWORDS_CHARACTER_LIST.Huohuo: [
Huohuo,
],
KEYWORDS_CHARACTER_LIST.Huohuo: [Huohuo],
KEYWORDS_CHARACTER_LIST.FuXuan: [FuXuan],
}
for character, templates in dict_template.items():
for template in templates:

View File

@ -79,13 +79,22 @@ COSMIC_FRAGMENT = ButtonWrapper(
)
CURIO_OBTAINED = ButtonWrapper(
name='CURIO_OBTAINED',
cn=Button(
file='./assets/cn/rogue/ui/CURIO_OBTAINED.png',
area=(643, 86, 708, 117),
search=(623, 66, 728, 137),
color=(125, 126, 134),
button=(643, 86, 708, 117),
),
cn=[
Button(
file='./assets/cn/rogue/ui/CURIO_OBTAINED.png',
area=(643, 86, 708, 117),
search=(623, 66, 728, 137),
color=(125, 126, 134),
button=(643, 86, 708, 117),
),
Button(
file='./assets/cn/rogue/ui/CURIO_OBTAINED.2.png',
area=(680, 86, 744, 117),
search=(660, 66, 764, 137),
color=(123, 124, 129),
button=(680, 86, 744, 117),
),
],
en=[
Button(
file='./assets/en/rogue/ui/CURIO_OBTAINED.png',