Skip to content

Commit

Permalink
🐛 修复wcd查询的背包banner错位问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Sep 1, 2024
1 parent 0324b4a commit 92f9fe7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions GenshinUID/genshinuid_collection/draw_new_collection_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .const import max_data, cal_level, expmax_data
from ..utils.resource.RESOURCE_PATH import ICON_PATH
from .draw_collection_card import TEXT_PATH, get_base_data
from ..utils.image.image_tools import get_v4_bg, shift_image_hue
from ..utils.image.image_tools import get_v4_bg, add_footer, shift_image_hue
from ..utils.fonts.genshin_fonts import (
gs_font_15,
gs_font_20,
Expand Down Expand Up @@ -98,6 +98,8 @@ async def draw_explore(uid: str):
bg = get_v4_bg(img.size[0], img.size[1])
bg.paste(img, (0, 0), img)

bg = add_footer(bg)

return await convert_img(bg)


Expand Down Expand Up @@ -197,7 +199,12 @@ async def _draw_explore(raw_data: IndexData):

image.paste(
div_b,
(0, div_h + line * (((len(new_culus) - 1) // 5) + 1) + title_offer),
(
0,
div_h
+ line * (((len(new_culus) - 1) // column) + 1)
+ title_offer,
),
div_b,
)

Expand Down

0 comments on commit 92f9fe7

Please sign in to comment.