状态栏自绘高清UI
This commit is contained in:
parent
681e18f77e
commit
a1c1e4672c
@ -203,9 +203,9 @@ dynamicMapEditor.prototype.openToolBox = function() {
|
|||||||
this.selectedIndex = -1;
|
this.selectedIndex = -1;
|
||||||
this.dom.style.display = this.isUsingTool ? 'block' : 'none';
|
this.dom.style.display = this.isUsingTool ? 'block' : 'none';
|
||||||
this.dom.style.width = core.dom.statusCanvas.style.width;
|
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.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.offsetX = this.dom.width / 2 - 60;
|
||||||
this.refreshToolBox();
|
this.refreshToolBox();
|
||||||
if (this.isUsingTool) this.showHelp();
|
if (this.isUsingTool) this.showHelp();
|
||||||
|
|||||||
@ -3045,15 +3045,13 @@ control.prototype._resize_statusBar = function (obj) {
|
|||||||
// 自绘状态栏
|
// 自绘状态栏
|
||||||
if (core.domStyle.isVertical) {
|
if (core.domStyle.isVertical) {
|
||||||
core.dom.statusCanvas.style.width = obj.CANVAS_WIDTH * core.domStyle.scale + "px";
|
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.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 {
|
else {
|
||||||
core.dom.statusCanvas.style.width = obj.BAR_WIDTH * core.domStyle.scale + "px";
|
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.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";
|
core.dom.statusCanvas.style.display = core.flags.statusCanvas ? "block" : "none";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -472,7 +472,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"betweenAttackMax": false,
|
"betweenAttackMax": false,
|
||||||
"useLoop": false,
|
"useLoop": false,
|
||||||
"startUsingCanvas": false,
|
"startUsingCanvas": false,
|
||||||
"statusCanvas": false,
|
"statusCanvas": true,
|
||||||
"displayEnemyDamage": true,
|
"displayEnemyDamage": true,
|
||||||
"displayCritical": true,
|
"displayCritical": true,
|
||||||
"displayExtraDamage": true,
|
"displayExtraDamage": true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user