mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2025-04-12 23:29:37 +08:00
fix bug(氵氵氵
This commit is contained in:
parent
d8db99e72f
commit
b4abc0e4dc
@ -67,7 +67,7 @@ async def draw_teams_rate(floor='上半半'):
|
|||||||
r = 0
|
r = 0
|
||||||
for role in team['formation']:
|
for role in team['formation']:
|
||||||
role_img = Image.open(
|
role_img = Image.open(
|
||||||
os.path.join(res_path, 'role_card', f'{get_id_by_alias(role["name"])[0]}.png')).resize((160, 200))
|
os.path.join(res_path, 'role_card', f'{get_id_by_name(role["name"])}.png')).resize((160, 200))
|
||||||
role_draw = ImageDraw.Draw(role_img)
|
role_draw = ImageDraw.Draw(role_img)
|
||||||
role_draw.text((80 - 15 * len(role['name']), 158), role['name'], font=get_font(30), fill='black')
|
role_draw.text((80 - 15 * len(role['name']), 158), role['name'], font=get_font(30), fill='black')
|
||||||
bg_img.alpha_composite(role_img, (130 + 204 * r, 180 + 240 * n))
|
bg_img.alpha_composite(role_img, (130 + 204 * r, 180 + 240 * n))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user