增加部分Q版角色头像资源

This commit is contained in:
Kokomi 2023-02-19 10:38:51 +08:00
parent 3c737a8f76
commit 9f9385dfe1
46 changed files with 42 additions and 20 deletions

View File

@ -45,9 +45,11 @@ const ProfileStat = {
}
let faceChar = Character.get(player.face || avatarRet[0]?.id)
let imgs = faceChar.imgs
let face = {
banner: faceChar.imgs?.banner,
face: faceChar.imgs?.face,
banner: imgs?.banner,
face: imgs?.face,
qFace: imgs?.qFace,
name: player.name || `#${uid}`,
sign: player.sign,
level: player.level

View File

@ -82,8 +82,16 @@ export default class Player extends Base {
/**
* 保存json文件
* @param flag false时暂时禁用保存true时启用保存并保存数据
* @returns {boolean}
*/
save () {
save (flag = null) {
if (flag === true) {
this._save = true
} else if (flag === false || this._save === false) {
this._save = false
return false
}
let ret = Data.getData(this, 'uid,name,level,word,face,card,sign,info,_info,_mys,_profile')
ret.avatars = {}
this.forEachAvatar((avatar) => {
@ -257,18 +265,25 @@ export default class Player extends Base {
}
async refresh (cfg) {
if (cfg.index || cfg.index === 0) {
await this.refreshMysInfo(cfg.index)
}
if (cfg.detail || cfg.detail === 0) {
await this.refreshMysDetail(cfg.detail)
}
if (cfg.talent || cfg.talent === 0) {
await this.refreshTalent(cfg.ids, cfg.talent)
}
if (cfg.profile || cfg.profile === 0) {
await this.refreshProfile(cfg.profile)
this.save(false)
try {
if (cfg.index || cfg.index === 0) {
await this.refreshMysInfo(cfg.index)
}
if (cfg.detail || cfg.detail === 0) {
await this.refreshMysDetail(cfg.detail)
}
if (cfg.talent || cfg.talent === 0) {
await this.refreshTalent(cfg.ids, cfg.talent)
}
if (cfg.profile || cfg.profile === 0) {
await this.refreshProfile(cfg.profile)
}
} catch (e) {
Bot.logger.mark(`刷新uid${this.uid}数据遇到错误...`)
console.log(e)
}
this.save(true)
}
async refreshAndGetAvatarData (cfg) {

View File

@ -101,10 +101,10 @@ const CharImg = {
imgs[key] = `${travelerElem ? tPath : nPath}${path}.${fileType}`
}
add('face', 'imgs/face', `imgs/face${costumeIdx}`)
add('qFace', 'imgs/face', 'imgs/face-q')
add('side', 'imgs/side', `imgs/side${costumeIdx}`)
add('gacha', 'imgs/gacha')
add('splash', 'imgs/splash', `imgs/splash${costumeIdx}`)
// 检查彩蛋自定义
tAdd('card', 'imgs/card')
tAdd('banner', 'imgs/banner')
for (let i = 1; i <= 6; i++) {

View File

@ -18,7 +18,7 @@ export default {
},
updatePlayer (player, data) {
player.setBasicData(Data.getData(data, 'name:nickname,face:profilePicture.avatarID,card:nameCardID,level,word:worldLevel,sign:signature'))
player.setBasicData(Data.getData(data, 'name:nickname,face:profilePicture.avatarId,card:nameCardID,level,word:worldLevel,sign:signature'))
lodash.forEach(data.showAvatarInfoList, (ds) => {
let ret = MiaoData.setAvatar(player, ds)
if (ret) {

View File

@ -9,13 +9,12 @@
{{block 'main'}}
<div class="user-banner" style="background-image:url({{_res_path}}{{face?.banner}})">
<div class="face">
<span style="background-image:url({{_res_path}}{{face?.face}})"></span>
<span style="background-image:url({{_res_path}}{{face?.qFace||face?.face}})"></span>
</div>
<div class="user-info">
<div class="name">
<strong>{{face.name}}</strong>
{{if face.level && face.level > 1}} Lv.{{face.level}}{{/if}}
</div>
<div class="uid">
{{if uid}}<span> #{{uid}}</span>{{/if}}
@ -36,7 +35,6 @@
{{/if}}
</div>
{{if !isSelfCookie}}
<div class="ck-notice">未绑定CK或CK失效信息可能不完全。发送<strong>#体力帮助</strong>查看CK绑定方法发送<strong>#更新面板</strong>更新游戏内角色展柜信息</div>
{{/if}}

View File

@ -419,6 +419,9 @@ ul.cont-msg li strong,
.item-icon.opacity-bg.star5 {
background-image: url("../common/item/bg5-o.png");
}
.item-icon.star-w {
background: #fff;
}
.item-list {
display: flex;
}

View File

@ -348,6 +348,10 @@ ul.cont-msg, .cont-footer ul {
background-image: url("../common/item/bg@{value}-o.png");
}
})
&.star-w {
background: #fff;
}
}
.item-list {

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -7,7 +7,7 @@
{{block 'main'}}
<div class="head-box" style="background-image:url('{{_res_path}}{{imgs.card}}')">
<div class="head">
<img src="{{_res_path}}{{imgs.face}}"/>
<img src="{{_res_path}}{{imgs.qFace||imgs.face}}"/>
</div>
<!-- <div class="head-astro">{{astro}}</div>
<div class="head-icon">