From ad30bd4ddaa9ec23f533b3b70b9b96ef20863c3b Mon Sep 17 00:00:00 2001 From: Erdnase <1398341065@qq.com> Date: Wed, 23 Nov 2022 18:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=80=E5=BC=A0=E5=86=85?= =?UTF-8?q?=E9=83=A8=E5=AE=8C=E5=85=A8=E9=80=8F=E6=98=8E=E7=9A=84winskin?= =?UTF-8?q?=E5=9B=BE=E7=94=A8=E4=BA=8E=E7=BB=98=E5=88=B6=20=E6=89=93?= =?UTF-8?q?=E5=BC=80=E9=81=93=E5=85=B7=E6=A0=8F=E5=92=8C=E6=89=8B=E5=86=8C?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E7=BB=98=E7=8A=B6=E6=80=81=E6=A0=8F=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E6=94=B9=E5=8A=A8=20=E7=BB=98=E5=88=B6=E9=81=93?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E6=94=B9=E5=8A=A8=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=81=93=E5=85=B7=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=9C=A8=E9=81=93=E5=85=B7=E6=A0=8F=E4=B8=AD?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=94=B9=E5=8F=98=EF=BC=88=E9=92=A5=E5=8C=99?= =?UTF-8?q?=E5=92=8C=E6=89=8B=E5=86=8C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/data.js | 1 + project/functions.js | 55 +++++++++++++++++++++-------- project/images/winskin3.png | Bin 0 -> 7602 bytes project/items.js | 14 ++++---- project/plugins.js | 68 ++++++++++++++++++++++++++++++++++-- 5 files changed, 115 insertions(+), 23 deletions(-) create mode 100644 project/images/winskin3.png diff --git a/project/data.js b/project/data.js index 0845278..f479e32 100644 --- a/project/data.js +++ b/project/data.js @@ -377,6 +377,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "wangyuexiao.png", "winskin.png", "winskin2.png", + "winskin3.png", "wupin.png", "xialouti.png", "xianzi.png", diff --git a/project/functions.js b/project/functions.js index ceb3ecd..d9217d9 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1647,6 +1647,13 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = core.dom.caidan1Ctx.drawImage(core.material.images.images['caidan_grayscale.png'], 0, 0) return; } + //手册和道具栏画面背景 + if (core.status.event.id === 'book' || core.status.event.id === 'toolbox') { + core.dom.caidan1Ctx.drawImage(core.material.images.images['black.png'], 0, 0) + core.drawWindowSkin('winskin.png', core.dom.caidan1Ctx, -20, 0, 201, 290); + core.drawWindowSkin('winskin.png', core.dom.caidan1Ctx, 0, 290, 161, 95); + core.drawWindowSkin('winskin.png', core.dom.caidan1Ctx, 0, 385, 161, 95); + } if (core.flags.statusCanvas) { // 系统开关「自绘状态栏」开启 @@ -1687,20 +1694,40 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = fill(core.getFlag("juqing", 0), 107, 91 + 35 + 36 + 34 + 32 + 32, '#FF0000'); ctx.textAlign = 'left'; if (flags.hard - 4) fill1('[' + core.formatBigNumber(core.getRealStatus('mdef')) + ']', 76, 174, '#FF1495'); - core.drawImage(ctx, core.material.images.items, 0, 0, 32, 128, 13, 300, 28, 112); - fill('黄钥匙', 50, 320, '#FFFF80'); - fill('蓝钥匙', 50, 320 + 28, '#80FFFF'); - fill('红钥匙', 50, 320 + 56, '#FF8080'); - fill('黑钥匙', 50, 320 + 84, '#000000'); - ctx.textAlign = 'right'; - fill(core.itemCount('yellowKey'), 140, 320, '#FFFF80'); - fill(core.itemCount('blueKey'), 140, 320 + 28, '#80FFFF'); - fill(core.itemCount('redKey'), 140, 320 + 56, '#FF8080'); - fill(core.itemCount('greenKey'), 140, 320 + 84, '#000000'); - core.drawImage(ctx, core.material.images.images[['00005.png', '00001.png', '00002.png', '00003.png', '00004.png', '00005.png'][flags.hard || 0]], 7, 404 - [0, 10, 10, 0, 0, 0][flags.hard || 0]); - ctx.textAlign = 'left'; - if (flags.poison) fill("中毒", 8, 282, '#00CD00'); - if (flags.weak) fill("衰弱", 64, 282, '#FF1493'); + if (core.status.event.id !== 'book' && core.status.event.id !== 'toolbox') { + core.drawImage(ctx, core.material.images.items, 0, 0, 32, 128, 13, 300, 28, 112); + fill('黄钥匙', 50, 320, '#FFFF80'); + fill('蓝钥匙', 50, 320 + 28, '#80FFFF'); + fill('红钥匙', 50, 320 + 56, '#FF8080'); + fill('黑钥匙', 50, 320 + 84, '#000000'); + ctx.textAlign = 'right'; + fill(core.itemCount('yellowKey'), 140, 320, '#FFFF80'); + fill(core.itemCount('blueKey'), 140, 320 + 28, '#80FFFF'); + fill(core.itemCount('redKey'), 140, 320 + 56, '#FF8080'); + fill(core.itemCount('greenKey'), 140, 320 + 84, '#000000'); + core.drawImage(ctx, core.material.images.images[['00005.png', '00001.png', '00002.png', '00003.png', '00004.png', '00005.png'][flags.hard || 0]], 7, 404 - [0, 10, 10, 0, 0, 0][flags.hard || 0]); + ctx.textAlign = 'left'; + if (flags.poison) fill("中毒", 8, 282, '#00CD00'); + if (flags.weak) fill("衰弱", 64, 282, '#FF1493'); + } else { + core.drawWindowSkin('winskin3.png', ctx, 0, 0, 181, 290); + fill('游戏时间', 20, 330, '#c0e0ff'); + fill('步数', 20, 425, '#c0e0ff'); + ctx.textAlign = 'right'; + var hour = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60)) % 24, + minutes = Math.floor(core.animateFrame.totalTime / (1000 * 60)) % 60, + seconds = Math.floor(core.animateFrame.totalTime / 1000) % 60, + day = Math.floor(core.animateFrame.totalTime / (1000 * 60 * 60 * 24)), + step = core.status.hero.steps; + hour = hour < 10 ? '0' + hour : hour; + minutes = minutes < 10 ? '0' + minutes : minutes; + seconds = seconds < 10 ? '0' + seconds : seconds; + if (day >= 1) + fill(day + ':' + hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff"); + else + fill(hour + ':' + minutes + ':' + seconds, 140, 360, "#ffffff"); + fill(step, 140, 455, '#ffffff'); + } } } else if (core.flags.extendToolbar && !core.domStyle.isVertical) { // 横屏且隐藏状态栏 if (!core.dymCanvas['status']) diff --git a/project/images/winskin3.png b/project/images/winskin3.png new file mode 100644 index 0000000000000000000000000000000000000000..c66c656908aee4b8323e6e4331fc5c475295ddf4 GIT binary patch literal 7602 zcmX9?cR&-()4qfN2{rU4(y`E+bPPd?(ouTv9Rkv8=pX_?q<2sO=>mdC2^~bL(iMU< zkq*+N{qla_AA5VZw=+BQ%(FXlm!PAiN>0K|0ssK{W3@+m_#TUIXebf>Y98(2itk`3 zHRI<1KuYsp0|7aCi~vBQ>8zxrqvPc1^% z(E|nrpAFIigN#7k(*`>d;57ia1%@Cwf%oLV_TR?}gurY?+7AX`w&Yd?6i5OA*>_dB z!HCa*m41XCKN#B$6jdQO1tHiP5Zd^os45uUP6+rV8(}CBRscF1$^R8#mjVMyw`oQQ z*fj`>geN<36_%)&7Bvun9Zny~RG$>1ZAl+z_CMUm{o?r5?N*PpX1E7;fUR=oW#)3x zsBI8vjFJHW^Z7*AwbVn*#`@~=y2FOs-rv5GYu9~GP6dvGrR%nrUd3$9ju|lyry3rnp^rB~jr< zY}pf+7qO8-T@87_LjmT?73^Ct(YVzseaABmfW-LPT1AaEju(WD=M z2s;vZ$xNCGz#YX!15W`Ut@Atu!3P3HGT*EKK-+Idv+~yr8vRfJcvKW|zfO^utc$h^ zOOe;b+J;7FoX^evKN#tcQKXIPn8NK+jFa}ia}GQ6=%M2dU^M{O3d zg<>GGVl3!pY>S0K6bGR+)*LeNR5r=8oTE^N>|_Y1wVL=V^c(igcv@Y~zCrId;0mNm zs<|51p@287bdnk3A7){YUG&A}i#An}*AX9d3BH4U5ueK0m|yf4J)iIqr!+@rl(s-+fa*Wc(+?52BT`EVW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Wu>-Jc6&yNT|6!rN?hf+kp1ZvszN*MclHw0s(dJ8uzXt8ki{;~ zL)4tqElT&3#mz60X~l zJdsvvXBpxLBfT9l-lk)3_VGhtE44>Eltt?Cr6;Mw!lkI$|YP=<;phYzIgNvJKiTxsC4PtHYHrr%y@WZAxcszP0tIj zimJak&Ldt!`22+UOnR8LVD0P#OTL&bAJ1ge(wn?E$u0!5QscIS-7;2(h zXu`B~`@{0v*ee<`AxTiil60i(-qjri7MT~?f;ZG#*|sfL7c?#B%eDKPY+6>fCFF(I z%aCjFU~2y|S>3_6x`XXeBPnAm*WLCZGS7)l=>>l^%+cZC~W;V zL$~?cQu5#GZm-@!g`fMkG{5fKo#+0TF@W;Cm$;Lz8&WS7EyNJFzji2mJLFYYW};F{ zXAm9bOn6*-uJLwN(k~&FmDwf6fyEulgWuDPCms&<7c?iHN!F(h^ppm*zqFxEh`p+jEx2sdE9d|-QK7|mP@@3YwhY-pR;|)Pk$qpOVWwQ0-{cMq#N_n_8 zy4+B&_2c%Hgh%+k>uQ`yUC5@CfgtO^WQ@vJp74k@|76^#8qID})ADtItc4%=(iNzj X^cSfKpf1M$76TqDYdxw#T1Ea3y16*K literal 0 HcmV?d00001 diff --git a/project/items.js b/project/items.js index 4a417ea..b9fced1 100644 --- a/project/items.js +++ b/project/items.js @@ -4,19 +4,19 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "cls": "tools", "name": "黄钥匙", "text": "用来开黄色的门", - "hideInToolbox": true + "hideInToolbox": false }, "blueKey": { "cls": "tools", "name": "蓝钥匙", "text": "用来开蓝色的门", - "hideInToolbox": true + "hideInToolbox": false }, "redKey": { "cls": "tools", "name": "红钥匙", "text": "用来开红色的门", - "hideInToolbox": true + "hideInToolbox": false }, "redGem": { "cls": "items", @@ -310,15 +310,15 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "book": { "cls": "constants", "name": "怪物手册", - "text": "可以查看当前楼层各怪物属性", - "hideInToolbox": true, + "text": "持有后可以察看怪物信息", + "hideInToolbox": false, "useItemEffect": "core.ui.drawBook(0);", "canUseItemEffect": "true" }, "fly": { "cls": "constants", "name": "楼层传送器", - "text": "可以自由往来去过的楼层", + "text": "在访问过的楼层间任意往来(快捷键g)", "hideInReplay": true, "hideInToolbox": false, "useItemEffect": "core.ui.drawFly(core.floorIds.indexOf(core.status.floorId));", @@ -363,7 +363,7 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a = "greenKey": { "cls": "tools", "name": "黑钥匙", - "text": "可以打开一扇黑门" + "text": "用来开黑色的门" }, "steelKey": { "cls": "tools", diff --git a/project/plugins.js b/project/plugins.js index 10d7a68..8b1e48a 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -850,7 +850,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.clearMap('bookBg'); ////清空手册Bg core.clearMap('itemBg'); ////清空道具栏Bg core.clearUIEventSelector(1); ////清除绘制的光标 - + core.clearUIEventSelector(2); if (core.status.hero && core.status.hero.flags) { // 清除全部临时变量 Object.keys(core.status.hero.flags).forEach(function (name) { @@ -879,7 +879,71 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = /// core.setAlpha('ui', 0.85); /// core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000'); core.createCanvas('itemBg', 0, 0, 480, 480, 138); ///创建一个动态画布用于绘制道具栏bg - core.drawWindowSkin('winskin.png', 'itemBg', 0, 0, core._PX_, core._PY_); ///道具栏背景用winskin绘制 + core.drawWindowSkin('winskin.png', 'itemBg', 0, 0, core._PX_, core._PY_ - 306); ///道具栏背景用winskin绘制 + core.drawWindowSkin('winskin.png', 'itemBg', 0, core._PY_ - 306 - 20, core._PX_, core._PY_ - 306); + core.drawWindowSkin('winskin.png', 'itemBg', 0, core._PY_ - 146 - 30, core._PX_, core._PY_ - 306); + } + + ////// 绘制道具栏 ////// + ui.prototype._drawToolbox = function (index) { + var info = this._drawToolbox_getInfo(index); + this._drawToolbox_drawBackground(); + + // 绘制线 + core.setAlpha('ui', 1); + core.setStrokeStyle('ui', '#DDDDDD'); + core.canvas.ui.lineWidth = 2; + core.canvas.ui.strokeWidth = 2; + core.setTextAlign('ui', 'right'); + var line1 = core._PY_ - 306; + // this._drawToolbox_drawLine(line1, "消耗道具"); + var line2 = core._PY_ - 146; + // this._drawToolbox_drawLine(line2, "永久道具"); + + this._drawToolbox_drawDescription(info, line1); + + this._drawToolbox_drawContent(info, line1, info.tools, info.toolsPage, true); + this.drawPagination(info.toolsPage, info.toolsTotalPage, core._HEIGHT_ - 6); + this._drawToolbox_drawContent(info, line2, info.constants, info.constantsPage); + this.drawPagination(info.constantsPage, info.constantsTotalPage); + + core.setTextAlign('ui', 'center'); + core.fillText('ui', '[装备栏]', core._PX_ - 46, 25, '#DDDDDD', this._buildFont(15, true)); + core.fillText('ui', '返回游戏', core._PX_ - 46, core._PY_ - 13); + } + + ui.prototype._drawToolbox_drawDescription = function (info, max_height) { + core.setTextAlign('ui', 'left'); + if (!info.selectId) return; + var item = core.material.items[info.selectId]; + var name = item.name || "未知道具"; + try { name = core.replaceText(name); } catch (e) {} + core.fillText('ui', name, 10 + 10, 32 + 10, "#ffffff", this._buildFont(20, true)); + core.drawUIEventSelector(2, 'winskin.png', 15, 32 - 10, 25 * name.length || 0, 30, 139); + var text = item.text || "该道具暂无描述。"; + try { text = core.replaceText(text); } catch (e) {} + + var height = null; + for (var fontSize = 20; fontSize >= 9; fontSize -= 2) { + var config = { left: 10 + 10, top: 46 + 20, fontSize: fontSize, maxWidth: core._PX_ - 15, bold: true, color: "white" }; + height = 42 + core.getTextContentHeight(text, config); + if (height < max_height || fontSize == 9) { + core.drawTextContent('ui', text, config); + break; + } + } + if (height < max_height - 33) { + core.fillText('ui', '<继续点击该道具即可进行使用>', 10 + 10, max_height - 15 - 10, '#CCCCCC', this._buildFont(14, false)); + } + } + + ////// 点击工具栏时的打开操作 ////// + events.prototype.openToolbox = function (fromUserAction) { + if (core.isReplaying()) return; + if (!this._checkStatus('toolbox', fromUserAction)) return; + core.playSound('打开界面'); + core.updateStatusBar(); ///更新状态栏以绘制工具栏时的状态栏背景 + core.ui._drawToolbox(); } ui.prototype._drawToolbox_drawContent = function (info, line, items, page, drawCount) {