miao-plugin/resources/common/tpl/avatar-card.html
yoimiya-kokomi 95bebaaac8 * #喵喵日历 增加 #喵喵日历列表命令,以列表形式展示活动信息
* `#深渊出场率`、`#角色持有率` 等功能样式及字体微调
2022-05-17 05:32:31 +08:00

16 lines
510 B
HTML

{{set avatar = $data[0]}}
{{set {_res_path,_char} = $data[1]}}
{{set _char = _char || "meta/character/"}}
<div class="item">
<div class="item-bg elem-{{avatar.element}}">
<div class="role-box char-{{avatar.name}}">
<img class="role" src="{{_res_path}}{{_char}}/{{avatar.name}}/gacha_card.png"/>
</div>
{{ if avatar.cons>0}}
<div class="role-life life{{avatar.cons}}">{{avatar.cons}}命</div>
{{/if}}
<div class="role-name">{{avatar.label || avatar.name}}</div>
</div>
</div>