修改YEP_MessageCore.js
修改方法如下:
找到//============================================================================= // Parameter Variables //============================================================================= Yanfly.Parameters = PluginManager.parameters('YEP_MessageCore');
//=============================================================================
// Parameter Variables
//=============================================================================
Yanfly.Parameters = PluginManager.parameters('YEP_MessageCore');
添加一句:
tright = XXX; 这个XXX是你想要向右移动的像素,类型为整数。
改后样子:
// Parameter Variables //============================================================================= tright = 10; Yanfly.Parameters = PluginManager.parameters('YEP_MessageCore');
// Parameter Variables
//=============================================================================
tright = 10;
Yanfly.Parameters = PluginManager.parameters('YEP_MessageCore');
之后找到
Window_Message.prototype.newLineX = function() { if ($gameMessage.faceName() === '') { return 0; } else { return eval(Yanfly.Param.MSGFaceIndent); } };
Window_Message.prototype.newLineX = function() {
if ($gameMessage.faceName() === '') {
return 0;
} else {
return eval(Yanfly.Param.MSGFaceIndent);
}
};
先修改,在 return eval(Yanfly.Param.MSGFaceIndent) 添加个 +tright,即 return eval(Yanfly.Param.MSGFaceIndent)+tright;
修改后在整个代码的上面添加
Window_Message.prototype.drawMessageFace = function() { this.drawFace($gameMessage.faceName(), $gameMessage.faceIndex(), tright, 0); ImageManager.releaseReservation(this._imageReservationId); };
Window_Message.prototype.drawMessageFace = function() {
this.drawFace($gameMessage.faceName(), $gameMessage.faceIndex(), tright, 0);
ImageManager.releaseReservation(this._imageReservationId);
};
改后样子:
Window_Message.prototype.drawMessageFace = function() { this.drawFace($gameMessage.faceName(), $gameMessage.faceIndex(), tright, 0); ImageManager.releaseReservation(this._imageReservationId); }; Window_Message.prototype.newLineX = function() { if ($gameMessage.faceName() === '') { return 0; } else { return eval(Yanfly.Param.MSGFaceIndent)+tright; } };
Window_Message.prototype.drawMessageFace = function() {
this.drawFace($gameMessage.faceName(), $gameMessage.faceIndex(), tright, 0);
ImageManager.releaseReservation(this._imageReservationId);
};
Window_Message.prototype.newLineX = function() {
if ($gameMessage.faceName() === '') {
return 0;
} else {
return eval(Yanfly.Param.MSGFaceIndent)+tright;
}
};
==================================
备注:YEP_MessageCore插件没有重写绘制脸图,所以我们添加一个,让我们自己重写。。
Q:为什么要加一个一个tright?直接修改drawMessageFace不就好了?
A:如果直接修改drawMessageFace也可以,但是如果你右移距离比较远,就会和绘制文字重叠。所以就加了个tright让脸图和绘制文字一起移动。
依然:不对此修改造成的游戏问题负责。仅供参考,不保证可用性。 |