#喵喵设置可配置#圣遗物列表内圣遗物数量,可选值4~100,默认28 (#438)

This commit is contained in:
SunRyK 2023-02-06 02:09:30 +08:00 committed by GitHub
parent de5951f008
commit d0da0989f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -3,7 +3,7 @@
*
* */
import lodash from 'lodash'
import { Profile, Common } from '../../components/index.js'
import { Cfg, Profile, Common } from '../../components/index.js'
import { getTargetUid, profileHelp, autoGetProfile } from './ProfileCommon.js'
import { Artifact, Character, ProfileArtis } from '../../models/index.js'
@ -93,7 +93,8 @@ export async function profileArtisList (e) {
}
artis = lodash.sortBy(artis, '_mark')
artis = artis.reverse()
artis = artis.slice(0, 28)
let number = Cfg.get('artisNumber', 28)
artis = artis.slice(0, `${number}`)
let artisKeyTitle = ProfileArtis.getArtisKeyTitle()
// 渲染图像

View File

@ -8,9 +8,12 @@ export const avatarProfile = true
// 群面板排名
export const groupRank = false
// 可选值5~30建议15。设置高排名人数会导致渲染图片速度加长,发送缓慢
// 可选值5~30建议15。设置高排名人数会提高图片的长度,图片较大可能会影响渲染与发送速度
export const rankNumber = 15
// 可选值4~100建议28最终圣遗物数量取决于面板内圣遗物数量。设置高圣遗物数量会提高图片的长度图片较大可能会影响渲染与发送速度
export const artisNumber = 28
// 使用【#上传深渊】功能取代【#深渊】功能,默认关闭
export const uploadAbyssData = false

View File

@ -41,7 +41,15 @@ export const cfgSchema = {
type: 'num',
def: 15,
input: (n) => Math.min(30, Math.max(5, (n * 1 || 15))),
desc: '可选值5~30建议15。设置高排名人数会导致渲染图片速度加长发送缓慢'
desc: '可选值5~30建议15。设置高排名人数会提高图片的长度图片较大可能会影响渲染与发送速度'
},
artisNumber: {
title: '圣遗物列表数量',
key: '圣遗物数量',
type: 'num',
def: 28,
input: (n) => Math.min(100, Math.max(4, (n * 1 || 28))),
desc: '可选值4~100建议28最终圣遗物数量取决于面板内圣遗物数量。设置高圣遗物数量会提高图片的长度图片较大可能会影响渲染与发送速度'
},
uploadAbyssData: {
title: '上传深渊',