From 1f1cd6ea3b072cd2d371e37e1d226883f7efd373 Mon Sep 17 00:00:00 2001
From: unanmed <1319491857@qq.com>
Date: Fri, 30 Dec 2022 00:55:03 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E7=A7=91=E5=85=A8=E4=B9=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/project/functions.js | 16 +----
public/project/items.js | 3 +-
public/project/plugins.js | 17 +++--
src/components/scroll.vue | 35 +++++-----
src/plugin/uiController.ts | 3 +-
src/types/plugin.d.ts | 3 +
src/ui/desc.vue | 124 +++++++++++++++++++++++++++++++++++-
src/ui/settings.vue | 36 +++++++++--
8 files changed, 190 insertions(+), 47 deletions(-)
diff --git a/public/project/functions.js b/public/project/functions.js
index 806091c..c2a501e 100644
--- a/public/project/functions.js
+++ b/public/project/functions.js
@@ -1394,13 +1394,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
values: values,
version: core.firstData.version,
guid: core.getGuid(),
- time: new Date().getTime(),
- tower6: core.saveLoopMap('tower6', [
- 'tower1',
- 'tower2',
- 'tower4',
- 'tower5'
- ])
+ time: new Date().getTime()
};
return data;
@@ -2264,12 +2258,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
// cls为道具类型,只可能是 tools, constants 和 equips
// 返回一个数组,代表当前某类型道具的显示内容和顺序
// 默认按id升序排列,您可以取消下面的注释改为按名称排列
-
- return Object.keys(core.status.hero.items[cls] || {})
- .filter(function (id) {
- return !core.material.items[id].hideInToolbox;
- })
- .sort(/*function (id1, id2) { return core.material.items[id1].name <= core.material.items[id2].name ? -1 : 1 }*/);
+ //
+ // 用不到这个东西
},
drawStatusBar: function () {
// 自定义绘制状态栏,需要开启状态栏canvas化
diff --git a/public/project/items.js b/public/project/items.js
index 2cfe404..8cf8845 100644
--- a/public/project/items.js
+++ b/public/project/items.js
@@ -1254,6 +1254,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"cls": "constants",
"name": "百科全书",
"canUseItemEffect": "true",
- "text": "一个包含游戏中所有功能详细说明的百科全书,可以查看游戏中所有的功能"
+ "text": "一个包含游戏中所有功能详细说明的百科全书,可以查看游戏中所有的功能",
+ "useItemEffect": "core.plugin.descOpened.value = true;"
}
}
\ No newline at end of file
diff --git a/public/project/plugins.js b/public/project/plugins.js
index 152c950..c9d95c8 100644
--- a/public/project/plugins.js
+++ b/public/project/plugins.js
@@ -415,7 +415,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
};
/// 能否使用快捷商店
- this.canUseQuickShop = function (id) {
+ this.canUseQuickShop = function () {
// 如果返回一个字符串,表示不能,字符串为不能使用的提示
// 返回null代表可以使用
@@ -492,7 +492,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
core.registerAction(
'longClick',
'shops',
- (x, y, px, py) => {
+ (x, y) => {
if (
!core.status.lockControl ||
!core.hasFlag('@temp@shop') ||
@@ -2906,7 +2906,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
);
areaSprite[maps[0]] = btn;
if (i === nowArea) btn.setCss(`border: 2px solid gold;`);
- btn.addEventListener('click', e => {
+ btn.addEventListener('click', () => {
if (i === nowArea) return;
changeArea(i);
});
@@ -2924,7 +2924,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
transition
);
areaSprite._area_last_ = last;
- last.addEventListener('click', e => {
+ last.addEventListener('click', () => {
areaPage--;
drawAreaList(false);
});
@@ -2941,7 +2941,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
transition
);
areaSprite._area_next_ = next;
- next.addEventListener('click', e => {
+ next.addEventListener('click', () => {
areaPage++;
drawAreaList(false);
});
@@ -5967,13 +5967,13 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
xhr.open(type, url);
xhr.send(data);
const res = await new Promise(res => {
- xhr.onload = e => {
+ xhr.onload = () => {
if (xhr.status !== 200) {
console.error(`hot reload: http ${xhr.status}`);
res('@error');
} else res('success');
};
- xhr.onerror = e => {
+ xhr.onerror = () => {
res('@error');
console.error(`hot reload: error on connection`);
};
@@ -6245,8 +6245,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
if (core.isReplaying()) showToolbox = true;
core.plugin.showStatusBar.value = false;
- var statusItems = core.dom.status,
- toolItems = core.dom.tools;
+ var toolItems = core.dom.tools;
core.setFlag('hideStatusBar', true);
core.setFlag('showToolbox', showToolbox || null);
if (
diff --git a/src/components/scroll.vue b/src/components/scroll.vue
index 65ac76e..7ce3db4 100644
--- a/src/components/scroll.vue
+++ b/src/components/scroll.vue
@@ -10,6 +10,7 @@
diff --git a/src/ui/settings.vue b/src/ui/settings.vue
index 25853a0..54e2e2f 100644
--- a/src/ui/settings.vue
+++ b/src/ui/settings.vue
@@ -18,7 +18,10 @@
>
-