Yuri-YuzuChaN / maimaiDX

基于HoshinoBot V2的舞萌DX查询插件,移植自mai-bot开源项目
MIT License
200 stars 32 forks source link

变量与文件名不一致&完成表fc图标过大 #148

Closed zeke-mai closed 5 months ago

zeke-mai commented 5 months ago

maimaidx_music_info.py

if dev:
    dxscore = info.dxScore
    _dxscore = sum(music.charts[num].notes) * 3
    dxnum = dxScore(dxscore / _dxscore * 100)
    rating, rate = info.ra, info.rate    # 此处rate为小写,如sssp,但文件名为SSSp
    im.alpha_composite(Image.open(maimaidir / 'ra-dx.png'), (1350, 396 + y * num))
    if dxnum != 0:
        im.alpha_composite(Image.open(maimaidir / f'UI_GAM_Gauge_DXScoreIcon_0{dxnum}.png'), (1351, 438 + y * num))
    tb.draw(1465, 416 + y * num, 30, rating, color, 'mm')
    tb.draw(1465, 454 + y * num, 20, f'{dxscore}/{_dxscore}', color, 'mm')
if isfc:
    if _fc := fromid[music.id][music.lv]['fc']:
        achievements_fc_list[ralist.index(music.lvp)].append(combo_rank.index(_fc)) if merge else achievements_fc_list.append(combo_rank.index(_fc))
        im.alpha_composite(b2, (x + 2, y - 18))
        fc = Image.open(maimaidir / f'UI_MSS_MBase_Icon_{fcl[_fc]}.png')    #此处fc未resize
        im.alpha_composite(fc, (x + 14, y - 7))
Yuri-YuzuChaN commented 5 months ago

fc图标设计就这么大的

zeke-mai commented 5 months ago

2b1cc30ce5f2d8633334d437a4a46cd7 那这感觉有点大啊,或者说是歪了

Yuri-YuzuChaN commented 5 months ago

确实

Yuri-YuzuChaN commented 5 months ago

应该是替换图片把小的覆盖了

Yuri-YuzuChaN commented 5 months ago

已修复