感谢大家的回复!
这个问题是我自己没有找对地方,现在已经解决了,直接在Window_ChoiceList.prototype.numVisibleRows里面修改maxLines的数值就可以了。
Window_ChoiceList.prototype.numVisibleRows = function() { var messageY = this._messageWindow.y; var messageHeight = this._messageWindow.height; var centerY = Graphics.boxHeight / 2; var choices = $gameMessage.choices(); var numLines = choices.length; var maxLines = 8; if (messageY < centerY && messageY + messageHeight > centerY) { maxLines = 6; //显示的选项的行数 } if (numLines > maxLines) { numLines = maxLines; } return numLines; };
Window_ChoiceList.prototype.numVisibleRows = function() {
var messageY = this._messageWindow.y;
var messageHeight = this._messageWindow.height;
var centerY = Graphics.boxHeight / 2;
var choices = $gameMessage.choices();
var numLines = choices.length;
var maxLines = 8;
if (messageY < centerY && messageY + messageHeight > centerY) {
maxLines = 6; //显示的选项的行数
}
if (numLines > maxLines) {
numLines = maxLines;
}
return numLines;
};
|