diff --git a/extensions/dynamicMapEditor.js b/extensions/dynamicMapEditor.js index 21489faa..7b996d7e 100644 --- a/extensions/dynamicMapEditor.js +++ b/extensions/dynamicMapEditor.js @@ -203,9 +203,9 @@ dynamicMapEditor.prototype.openToolBox = function() { this.selectedIndex = -1; this.dom.style.display = this.isUsingTool ? 'block' : 'none'; this.dom.style.width = core.dom.statusCanvas.style.width; - this.dom.width = core.dom.statusCanvas.width; + this.dom.width = core.dom.statusCanvas.width / core.domStyle.ratio; this.dom.style.height = core.dom.statusCanvas.style.height; - this.dom.height = core.dom.statusCanvas.height; + this.dom.height = core.dom.statusCanvas.height / core.domStyle.ratio; this.offsetX = this.dom.width / 2 - 60; this.refreshToolBox(); if (this.isUsingTool) this.showHelp(); diff --git a/libs/control.js b/libs/control.js index d92f9714..71284acd 100644 --- a/libs/control.js +++ b/libs/control.js @@ -3045,15 +3045,13 @@ control.prototype._resize_statusBar = function (obj) { // 自绘状态栏 if (core.domStyle.isVertical) { core.dom.statusCanvas.style.width = obj.CANVAS_WIDTH * core.domStyle.scale + "px"; - core.dom.statusCanvas.width = obj.CANVAS_WIDTH; core.dom.statusCanvas.style.height = obj.statusBarHeightInVertical - 3 + "px"; - core.dom.statusCanvas.height = obj.col * 32 + 9; + core.maps._setHDCanvasSize(core.dom.statusCanvasCtx, obj.CANVAS_WIDTH, obj.col * 32 + 9); } else { core.dom.statusCanvas.style.width = obj.BAR_WIDTH * core.domStyle.scale + "px"; - core.dom.statusCanvas.width = obj.BAR_WIDTH; core.dom.statusCanvas.style.height = obj.outerSize - 2 * obj.BORDER + "px"; - core.dom.statusCanvas.height = obj.CANVAS_WIDTH; + core.maps._setHDCanvasSize(core.dom.statusCanvasCtx, obj.BAR_WIDTH, obj.CANVAS_WIDTH); } core.dom.statusCanvas.style.display = core.flags.statusCanvas ? "block" : "none"; } diff --git a/project/data.js b/project/data.js index 846e364f..deea69a6 100644 --- a/project/data.js +++ b/project/data.js @@ -472,7 +472,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "betweenAttackMax": false, "useLoop": false, "startUsingCanvas": false, - "statusCanvas": false, + "statusCanvas": true, "displayEnemyDamage": true, "displayCritical": true, "displayExtraDamage": true,