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 filecmp
import os import os
import shutil import shutil
import sys
import typing as t import typing as t
from dataclasses import dataclass from dataclasses import dataclass
@ -9,7 +10,8 @@ from deploy.Windows.alas import AlasManager
from deploy.Windows.logger import logger from deploy.Windows.logger import logger
from deploy.Windows.utils import cached_property 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 @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: # This file was auto-generated, do not modify it manually. To generate:
# ``` python -m dev_tools.button_extract ``` # ``` 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( Huohuo = ButtonWrapper(
name='Huohuo', name='Huohuo',
share=Button( share=Button(

View File

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

View File

@ -79,13 +79,22 @@ COSMIC_FRAGMENT = ButtonWrapper(
) )
CURIO_OBTAINED = ButtonWrapper( CURIO_OBTAINED = ButtonWrapper(
name='CURIO_OBTAINED', name='CURIO_OBTAINED',
cn=Button( cn=[
file='./assets/cn/rogue/ui/CURIO_OBTAINED.png', Button(
area=(643, 86, 708, 117), file='./assets/cn/rogue/ui/CURIO_OBTAINED.png',
search=(623, 66, 728, 137), area=(643, 86, 708, 117),
color=(125, 126, 134), search=(623, 66, 728, 137),
button=(643, 86, 708, 117), 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=[ en=[
Button( Button(
file='./assets/en/rogue/ui/CURIO_OBTAINED.png', file='./assets/en/rogue/ui/CURIO_OBTAINED.png',