优化下星铁群排名样式

This commit is contained in:
Aluxes 2024-04-13 20:33:08 +08:00
parent c95efa90fe
commit 3835f84bd5
No known key found for this signature in database
GPG Key ID: 6696152F9C003087
6 changed files with 37 additions and 33 deletions

View File

@ -40,24 +40,24 @@ const ProfileChange = {
const isGs = game === 'gs'
const keyMap = isGs
? {
artis: '圣遗物',
arti1: '花,生之花',
arti2: '毛,羽,羽毛,死之羽',
arti3: '沙,沙漏,表,时之沙',
arti4: '杯,杯子,空之杯',
arti5: '头,冠,理之冠,礼冠,帽子,帽',
weapon: '武器'
}
artis: '圣遗物',
arti1: '花,生之花',
arti2: '毛,羽,羽毛,死之羽',
arti3: '沙,沙漏,表,时之沙',
arti4: '杯,杯子,空之杯',
arti5: '头,冠,理之冠,礼冠,帽子,帽',
weapon: '武器'
}
: {
artis: '圣遗物,遗器',
arti1: '头,帽子,头部',
arti2: '手,手套,手部',
arti3: '衣,衣服,甲,躯干,',
arti4: '鞋,靴,鞋子,靴子,脚,脚部',
arti5: '球,位面球',
arti6: '绳,线,链接绳,连接绳',
weapon: '武器,光锥'
}
artis: '圣遗物,遗器',
arti1: '头,帽子,头部',
arti2: '手,手套,手部',
arti3: '衣,衣服,甲,躯干,',
arti4: '鞋,靴,鞋子,靴子,脚,脚部',
arti5: '球,位面球',
arti6: '绳,线,链接绳,连接绳',
weapon: '武器,光锥'
}
let keyTitleMap = {}
lodash.forEach(keyMap, (val, key) => {
lodash.forEach(val.split(','), (v) => {

View File

@ -8,7 +8,7 @@ import DmgCalc from './dmg/DmgCalc.js'
import { MiaoError, Meta, Common } from '#miao'
export default class ProfileDmg extends Base {
constructor(profile = {}, game = 'gs') {
constructor (profile = {}, game = 'gs') {
super()
this.profile = profile
this.game = game

View File

@ -4,11 +4,7 @@
.font-NZBZ {
font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif;
}
body {
width: 820px;
}
.container {
width: 820px;
padding: 0;
background-size: cover;
overflow: hidden;
@ -16,7 +12,7 @@ body {
.group-rank-icon {
width: 16px;
height: 16px;
background: url("./imgs/mark-icon.png");
background: url("imgs/mark-icon.png");
background-size: auto 100%;
display: inline-block;
vertical-align: bottom;
@ -55,7 +51,7 @@ body {
width: 24px;
height: 24px;
margin: 13px 12px;
background: url('./imgs/mark-icon.png');
background: url('imgs/mark-icon.png');
background-size: auto 100%;
text-align: center;
font-size: 12px;
@ -66,7 +62,7 @@ body {
.char-idx .idx-icon.mode-dmg.idx-1 {
width: 48px;
margin: 13px 0;
background-image: url('./imgs/mark-icon2.png');
background-image: url('imgs/mark-icon2.png');
color: rgba(0, 0, 0, 0);
text-shadow: none;
}
@ -342,4 +338,3 @@ body {
font-size: 12px;
color: #aaa;
}
/*# sourceMappingURL=rank-profile-list.css.map */

View File

@ -2,6 +2,19 @@
{{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}/character/rank-profile-list.css"/>
{{if game==='sr'}}
<style>
body .container {
width: 900px;
}
</style>
{{else}}
<style>
body .container {
width: 820px;
}
</style>
{{/if}}
{{/block}}
{{set talentMap = game === 'sr' ? {a: '普攻', e: '战技', t:'天赋', q: '爆发'} : {a: '普攻', e: '战技', q: '爆发'} }}

View File

@ -1,11 +1,6 @@
@import "../common/base.less";
body {
width: 820px;
}
.container {
width: 820px;
padding: 0;
background-size: cover;
overflow: hidden;

View File

@ -20,7 +20,8 @@ export const abbr = {
美梦小镇大冒险: '美梦小镇',
// 智识
别让世界静下来: '别让世界静下',
今日亦是和平的一日: '今日亦是和平'
今日亦是和平的一日: '今日亦是和平',
'片刻,留在眼底': '片刻留在眼底'
}
export const aliasCfg = {
@ -131,6 +132,6 @@ export const aliasCfg = {
今日亦是和平的一日: '和平的一日,和平一日',
银河铁道之夜: '银河铁道,星穹铁道之夜,星穹铁道',
拂晓之前: '拂晓',
'片刻,留在眼底': '留在眼底,眼一直留',
'片刻,留在眼底': '片刻留在眼底,留在眼底,眼一直留',
银河沦陷日: '银河沦陷,沦陷日'
}