From 04f07b2ed4fef9420c555a938189770c5f7fdddf Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Fri, 29 Jan 2021 10:57:51 +0800 Subject: [PATCH] V2.7.3.1 --- README.md | 5 +++++ _docs/api.md | 2 +- _server/CodeMirror/defs.js | 2 +- _server/MotaAction.g4 | 2 +- _server/editor_blockly.js | 2 +- libs/control.js | 2 +- main.js | 6 +++--- project/data.js | 2 +- 8 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3127a67b..1867e56c 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,11 @@ HTML5 canvas制作的魔塔样板,支持全平台游戏! ## 更新说明 +### 2021.1.29 HTML5魔塔样板V2.7.3.1 + +* [x] 怪物可以增加怪物描述到详情页 +* [x] 修复V2.7.3的所有已知bug + ### 2020.11.8 HTML5魔塔样板V2.7.3 * [x] 内置高清UI,界面更清晰! diff --git a/_docs/api.md b/_docs/api.md index 1409ce40..ca17b40f 100644 --- a/_docs/api.md +++ b/_docs/api.md @@ -870,7 +870,7 @@ beforeBattle: fn(enemyId?: string, x?: number, y?: number) -> bool changeFloor: fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn()) 场景切换 例如:core.changeFloor('MT0'); // 传送到主塔0层,主角坐标和朝向不变,黑屏时间取用户定义的值 -floorId: 传送的目标地图id,可以填':before'和':after'分别表示楼下或楼上 +floorId: 传送的目标地图id,可以填':before'和':next'分别表示楼下或楼上 stair: 传送的位置 heroLoc: 传送的坐标;会覆盖stair time: 传送的黑屏时间,单位为毫秒;不填为用户设置值 diff --git a/_server/CodeMirror/defs.js b/_server/CodeMirror/defs.js index 9e385aec..0f44780c 100644 --- a/_server/CodeMirror/defs.js +++ b/_server/CodeMirror/defs.js @@ -3929,7 +3929,7 @@ var terndefs_f6783a0a_522d_417e_8407_94c67b692e50 = [ "!type": "fn(steps: [step], time?: number, callback?: fn())" }, "changeFloor": { - "!doc": "场景切换
例如:core.changeFloor('MT0'); // 传送到主塔0层,主角坐标和朝向不变,黑屏时间取用户定义的值
floorId: 传送的目标地图id,可以填':before'和':after'分别表示楼下或楼上
stair: 传送的位置
heroLoc: 传送的坐标;会覆盖stair
time: 传送的黑屏时间,单位为毫秒;不填为用户设置值
callback: 传送的回调函数
【异步脚本,请勿在脚本中直接调用(而是使用对应的事件),否则可能导致录像出错】", + "!doc": "场景切换
例如:core.changeFloor('MT0'); // 传送到主塔0层,主角坐标和朝向不变,黑屏时间取用户定义的值
floorId: 传送的目标地图id,可以填':before'和':next'分别表示楼下或楼上
stair: 传送的位置
heroLoc: 传送的坐标;会覆盖stair
time: 传送的黑屏时间,单位为毫秒;不填为用户设置值
callback: 传送的回调函数
【异步脚本,请勿在脚本中直接调用(而是使用对应的事件),否则可能导致录像出错】", "!type": "fn(floorId: string, stair?: string, heroLoc?: {x?: number, y?: number, direction?: string}, time?: number, callback?: fn())" }, "getCommonEvent": { diff --git a/_server/MotaAction.g4 b/_server/MotaAction.g4 index c30f4182..fc61c98a 100644 --- a/_server/MotaAction.g4 +++ b/_server/MotaAction.g4 @@ -595,7 +595,7 @@ return '{' + [ mainStyle_m - : '主要样式设置:' '标题界面背景图(544x422):' EvalString BGNL? Newline + : '主要样式设置:' '标题界面背景图(554x422):' EvalString BGNL? Newline '竖屏标题界面背景图(422x580)' EvalString BGNL? Newline '标题样式;可写 display: none 隐藏标题' EvalString BGNL? Newline '标题按钮样式:' EvalString BGNL? Newline diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 2b3bd34d..66470253 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -486,7 +486,7 @@ editor_blockly = function () { editor.uievent.selectPoint(floorId, x, y, false, function (fv, xv, yv) { if (!arr) return; if (arr[2] != null) { - if (fv != editor.currentFloorId) block.setFieldValue(fv, arr[2]); + if (fv != editor.currentFloorId || editor_blockly.entryType == 'commonEvent') block.setFieldValue(fv, arr[2]); else block.setFieldValue(arr[3] ? fv : "", arr[2]); } if (arr[0] === arr[1]) { diff --git a/libs/control.js b/libs/control.js index 30019899..576b88f8 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2711,7 +2711,7 @@ control.prototype.clearStatusBar = function() { ////// 更新状态栏 ////// control.prototype.updateStatusBar = function (doNotCheckAutoEvents) { - if (!core.isPlaying()) return; + if (!core.isPlaying() || core.hasFlag('__statistics__')) return; this.controldata.updateStatusBar(); if (!doNotCheckAutoEvents) core.checkAutoEvents(); this._updateStatusBar_setToolboxIcon(); diff --git a/main.js b/main.js index 55d8aba8..5c53adcf 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ function main() { //------------------------ 用户修改内容 ------------------------// - this.version = "2.7.3"; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。 + this.version = "2.7.3.1"; // 游戏版本号;如果更改了游戏内容建议修改此version以免造成缓存问题。 this.useCompress = false; // 是否使用压缩文件 // 当你即将发布你的塔时,请使用“JS代码压缩工具”将所有js代码进行压缩,然后将这里的useCompress改为true。 @@ -186,8 +186,8 @@ function main() { this.floors = {} this.canvas = {}; - this.__VERSION__ = "2.7.3"; - this.__VERSION_CODE__ = 261; + this.__VERSION__ = "2.7.3.1"; + this.__VERSION_CODE__ = 273; } main.prototype.init = function (mode, callback) { diff --git a/project/data.js b/project/data.js index 846e364f..74ee53bc 100644 --- a/project/data.js +++ b/project/data.js @@ -105,7 +105,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "firstData": { "title": "魔塔样板", "name": "template", - "version": "Ver 2.7.3", + "version": "Ver 2.7.3.1", "floorId": "sample0", "hero": { "image": "hero.png",