Project1
标题:
请问如何改变地名的显示位置?
[打印本页]
作者:
nhycs01
时间:
2022-9-3 10:55
标题:
请问如何改变地名的显示位置?
进入新地图时左上角会显示地图名,我想让它显示在中间,或者右上角。请问该怎么修改呢?
作者:
Heiko
时间:
2022-9-3 19:02
window.js 里找到下面这段
//-----------------------------------------------------------------------------
// Window_MapName
//
// The window for displaying the map name on the map screen.
function Window_MapName() {
this.initialize.apply(this, arguments);
}
Window_MapName.prototype = Object.create(Window_Base.prototype);
Window_MapName.prototype.constructor = Window_MapName;
Window_MapName.prototype.initialize = function() {
var wight = this.windowWidth();
var height = this.windowHeight();
Window_Base.prototype.initialize.call(this,
0
,
0
, wight, height); //标红的是XY坐标自己调
this.opacity = 0;
this.contentsOpacity = 0;
this._showCount = 0;
this.refresh();
};
Window_MapName.prototype.open = function() {
this.refresh();
this._showCount =
150
; //这个数字越大显示的时间越久
};
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1