mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
让#喵喵设置
可配置#圣遗物列表
内圣遗物数量,可选值4~100,默认28 (#438)
This commit is contained in:
parent
de5951f008
commit
d0da0989f7
@ -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()
|
||||
|
||||
// 渲染图像
|
||||
|
@ -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
|
||||
|
||||
|
@ -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: '上传深渊',
|
||||
|
Loading…
Reference in New Issue
Block a user