mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
优化图鉴开关
This commit is contained in:
parent
cfb7ccced0
commit
de13770be6
@ -24,6 +24,7 @@ let cfgMap = {
|
|||||||
"帮助": "sys.help",
|
"帮助": "sys.help",
|
||||||
"匹配": "sys.Atlas",
|
"匹配": "sys.Atlas",
|
||||||
"模板": "mb.len",
|
"模板": "mb.len",
|
||||||
|
"目录":"Atlas.all",
|
||||||
};
|
};
|
||||||
let sysCfgReg = `^#图鉴设置\s*(${lodash.keys(cfgMap).join("|")})?\s*(.*)$`;
|
let sysCfgReg = `^#图鉴设置\s*(${lodash.keys(cfgMap).join("|")})?\s*(.*)$`;
|
||||||
export const rule = {
|
export const rule = {
|
||||||
@ -89,6 +90,7 @@ export async function sysCfg(e, {
|
|||||||
len:Cfg.get("mb.len", 0),
|
len:Cfg.get("mb.len", 0),
|
||||||
imgPlus: fs.existsSync(plusPath),
|
imgPlus: fs.existsSync(plusPath),
|
||||||
bg: await rodom(), //获取底图
|
bg: await rodom(), //获取底图
|
||||||
|
Atlasall:getStatus("Atlas.all"),
|
||||||
}
|
}
|
||||||
console.log(cfg)
|
console.log(cfg)
|
||||||
//渲染图像
|
//渲染图像
|
||||||
|
@ -13,6 +13,9 @@ const __dirname = path.resolve();
|
|||||||
|
|
||||||
const list = ["shiwu_tujian", "yuanmo_tujian", "mijin_tujian", "shengyiwu_tujian"]
|
const list = ["shiwu_tujian", "yuanmo_tujian", "mijin_tujian", "shengyiwu_tujian"]
|
||||||
export async function AtlasAlias(e) {
|
export async function AtlasAlias(e) {
|
||||||
|
if (!Cfg.get("Atlas.all")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
let reg = /#(.*)/;
|
let reg = /#(.*)/;
|
||||||
if (Cfg.get("sys.Atlas")) {
|
if (Cfg.get("sys.Atlas")) {
|
||||||
reg = /#*(.*)图鉴/;
|
reg = /#*(.*)图鉴/;
|
||||||
|
@ -30,6 +30,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="cfg-desc">图鉴匹配规则需要 开启:图鉴结尾 关闭:食物原魔、圣遗物、食物无需图鉴结尾</div>
|
<div class="cfg-desc">图鉴匹配规则需要 开启:图鉴结尾 关闭:食物原魔、圣遗物、食物无需图鉴结尾</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="cfg-li">
|
||||||
|
<div class="cfg-line">
|
||||||
|
图鉴目录开关
|
||||||
|
<span class="cfg-hint"> #图鉴设置目录 + 开启/关闭</span>
|
||||||
|
{{@Atlasall}}
|
||||||
|
</div>
|
||||||
|
<div class="cfg-desc">图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<!-- <li class="cfg-li">
|
<!-- <li class="cfg-li">
|
||||||
<div class="cfg-line">
|
<div class="cfg-line">
|
||||||
面板查询
|
面板查询
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right_model">
|
<div class="right_model">
|
||||||
<div class="uId">
|
<div class="uId">
|
||||||
UID:120065390
|
UID:{{uid}}
|
||||||
</div>
|
</div>
|
||||||
<div class="head_image">
|
<div class="head_image">
|
||||||
{{each expeditions list}}
|
{{each expeditions list}}
|
||||||
|
Loading…
Reference in New Issue
Block a user