mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
✨ 瑶瑶ID少写个0
This commit is contained in:
parent
f6e60c79e1
commit
676d817de3
@ -392,7 +392,7 @@
|
||||
"miku",
|
||||
"前辈"
|
||||
],
|
||||
"1000077": [
|
||||
"10000077": [
|
||||
"瑶瑶"
|
||||
],
|
||||
"10000078": [
|
||||
|
@ -139,9 +139,12 @@ async def draw_pool_detail(pool_name: str,
|
||||
|
||||
async def draw_four_star(info: FourStarItem) -> PMImage:
|
||||
bg = PMImage(await load_image(RESOURCE_BASE_PATH / 'gacha_log' / 'item_avatar_4.png'))
|
||||
img = PMImage(
|
||||
await load_image(RESOURCE_BASE_PATH / ('avatar' if info.type == '角色' else 'weapon') / f'{info.icon}.png',
|
||||
size=(123, 123)))
|
||||
if info.icon:
|
||||
img = PMImage(
|
||||
await load_image(RESOURCE_BASE_PATH / ('avatar' if info.type == '角色' else 'weapon') / f'{info.icon}.png',
|
||||
size=(123, 123)))
|
||||
else:
|
||||
img = PMImage(size=(123, 123), color=(255, 255, 255, 0))
|
||||
await img.to_circle('circle')
|
||||
await bg.paste(img, (34, 26))
|
||||
await bg.text(info.name, (0, bg.width), 163, fm.get('hywh', 24), '#221a33', 'center')
|
||||
|
Loading…
Reference in New Issue
Block a user