miao-plugin/resources/common/tpl/talent-detail.html
yoimiya-kokomi b5c1daf472 框架底层角色相关逻辑重构,角色图像资源迁移为webp格式
角色面板支持旅行者,暂未支持伤害计算
`#雷主天赋`、`#草主命座`功能升级
2022-09-04 05:08:57 +08:00

52 lines
1.3 KiB
HTML

{{set ds = $data[0] || false }}
{{set {_res_path, icon,lvs,type} = $data[1]}}
<div class="talent-line">
<div class="talent-icon">
<img src="{{_res_path}}{{icon}}"/>
</div>
<div class="talent-info">
<div class="talent-name">{{ds.name}}</div>
<div class="talent-desc">
{{each ds.desc d}}
{{ if d[0] === "<" }}
{{@d}}
{{else if d!=""}}
<p>{{d}}</p>
{{/if}}
{{/each}}
</div>
</div>
{{if ds.tables && ds.tables.length > 0}}
<table class="talent-table cont-table">
<tr class="tr">
<td class="th"></td>
{{each lvs lv idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<td class="th lv">{{lv}}</td>
{{/if}}
{{/each}}
</tr>
{{each ds.tables tr}}
<tr class="tr">
<td class="th talent-name">
{{tr.name}}
{{if tr.unit}}
<span class="unit">({{tr.unit}})</span>
{{/if}}
</td>
{{if tr.isSame}}
<td class="td colspan" colspan="{{type == a ? 6 : 8}}" class="td">{{tr.values[0]}}</td>
{{else}}
{{each tr.values v idx}}
{{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}}
<td class="td">{{v}}</td>
{{/if}}
{{/each}}
{{/if}}
</tr>
{{/each}}
</table>
{{/if}}
</div>