mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
commit
aed435d0dc
@ -69,7 +69,9 @@ async def draw_daily_note_card(data, uid):
|
|||||||
# 宝钱文字
|
# 宝钱文字
|
||||||
bg_draw.text((337, 701), f"{data['current_home_coin']}/{data['max_home_coin']}", fill='white',
|
bg_draw.text((337, 701), f"{data['current_home_coin']}/{data['max_home_coin']}", fill='white',
|
||||||
font=get_font(48, 'number.ttf'))
|
font=get_font(48, 'number.ttf'))
|
||||||
bg_img.alpha_composite(await draw_ring(data['current_home_coin'] / data['max_home_coin']), (98, 593))
|
bg_img.alpha_composite(
|
||||||
|
await draw_ring(data['current_home_coin'] / data['max_home_coin'] if data['max_home_coin'] != 0 else 1),
|
||||||
|
(98, 593))
|
||||||
if data['current_home_coin'] == data['max_home_coin']:
|
if data['current_home_coin'] == data['max_home_coin']:
|
||||||
bg_draw.text((820, 701), f"洞天宝钱满了哦~", fill='white', font=get_font(40, '优设标题黑.ttf'))
|
bg_draw.text((820, 701), f"洞天宝钱满了哦~", fill='white', font=get_font(40, '优设标题黑.ttf'))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user