From 27d49e42b3f32cae6c95df9e40084534a444dd7e Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Fri, 13 Aug 2021 11:58:41 +0800 Subject: [PATCH] Tiny fix --- _docs/script.md | 6 ++++-- libs/ui.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_docs/script.md b/_docs/script.md index 67ae0ddb..3c5495cb 100644 --- a/_docs/script.md +++ b/_docs/script.md @@ -1,8 +1,10 @@ # 脚本 -?> 在这一节中,让我们来了解如何使用控制台和复写函数! +?> 在这一节中,让我们来了解如何使用控制台和使用脚本! -在V2.6版本中,基本对整个项目代码进行了重写,更加方便造塔者的使用和复写函数。 +在V2.6版本中,基本对整个项目代码进行了重写,更加方便造塔者的使用。 + +可配合基础js教学视频 https://www.bilibili.com/video/BV1uL411J7yZ/ 使用。 ## 控制台的使用 diff --git a/libs/ui.js b/libs/ui.js index 1a2eb608..6d714a94 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -2586,7 +2586,7 @@ ui.prototype._drawViewMaps = function (index, x, y) { ui.prototype._drawViewMaps_drawHint = function () { core.playSound('打开界面'); - core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, 'rgba(0,0,0,0.4)'); + core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, 'rgba(0,0,0,0.7)'); core.setTextAlign('ui', 'center'); var stroke = function (left, top, width, height, fillStyle, lineWidth) { core.strokeRect('ui', left*32+2, top*32+2, width*32-4, height*32-4, fillStyle, lineWidth); @@ -2619,7 +2619,7 @@ ui.prototype._drawViewMaps_drawHint = function () { core.fillText('ui', "后张地图 [▼ / PGDN]", this.HPIXEL, this.PIXEL - (32 * per + 48)); core.fillText('ui', "退出 [ESC / ENTER]", this.HPIXEL, this.HPIXEL); - core.fillText('ui', "[X] 可查看" + core.material.items['book'].name, this.HPIXEL + 77, this.HPIXEL + 32, null, '13px Arial'); + core.fillText('ui', "[X] 可查看" + core.material.items['book'].name + " [G] 可使用" + core.material.items.fly.name, this.HPIXEL, this.HPIXEL + 32, null, '12px Arial'); core.setTextBaseline('ui', 'alphabetic'); }