mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 角色图存放位置
This commit is contained in:
parent
1c7ced1a8c
commit
ea8f6b2086
3 changed files with 14 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
# 1.1
|
||||||
|
* 支持自定义面板图,详情请查看 `README`。
|
||||||
|
|
||||||
# 1.0
|
# 1.0
|
||||||
* 重构帮助指令,发送 `%帮助`
|
* 重构帮助指令,发送 `%帮助`
|
||||||
|
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -42,6 +42,16 @@ git clone --depth=1 https://github.com/ZZZure/ZZZ-Plugin.git ./plugins/ZZZ-Plugi
|
||||||
* [Mora-Plugin](https://gitee.com/Rrrrrrray/mora-plugin)
|
* [Mora-Plugin](https://gitee.com/Rrrrrrray/mora-plugin)
|
||||||
Mora-Plugin是一个Yunzai-Bot的插件 仅用于自我学习其他优秀插件
|
Mora-Plugin是一个Yunzai-Bot的插件 仅用于自我学习其他优秀插件
|
||||||
|
|
||||||
|
## 自定义面板图
|
||||||
|
|
||||||
|
将你下载的面板图放在`zzz插件目录/resources/images/panel/[角色名简称]/`文件夹下。若文件夹不存在请自行创建。
|
||||||
|
|
||||||
|
**角色名简称**请参考官方wiki中代理人名称:[米游社·绝区零 绳网情报站](https://baike.mihoyo.com/zzz/wiki/channel/map/2/43)
|
||||||
|
|
||||||
|
**请注意**:
|
||||||
|
|
||||||
|
执行`%删除全部资源`也会删除自定义面板图,该指令用于将插件回归原始状态(数据除外)。
|
||||||
|
|
||||||
# 贡献
|
# 贡献
|
||||||
|
|
||||||
请先 `fork` 本仓库,修改并测试完成后提交PR。
|
请先 `fork` 本仓库,修改并测试完成后提交PR。
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@ export class ZZZAvatarInfo {
|
||||||
async get_detail_assets() {
|
async get_detail_assets() {
|
||||||
const custom_panel_images = path.join(
|
const custom_panel_images = path.join(
|
||||||
imageResourcesPath,
|
imageResourcesPath,
|
||||||
`panel/${this.id}`
|
`panel/${this.name_mi18n}`
|
||||||
);
|
);
|
||||||
let role_icon = '';
|
let role_icon = '';
|
||||||
if (fs.existsSync(custom_panel_images)) {
|
if (fs.existsSync(custom_panel_images)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue