加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 gaofei677 于 2016-1-30 23:50 编辑
在插件"YEP_MessageCore"第918行
原文是:
Yanfly.Message.Window_Message_createSubWindows = Window_Message.prototype.createSubWindows; Window_Message.prototype.createSubWindows = function() { Yanfly.Message.Window_Message_createSubWindows.call(this); this._nameWindow = new Window_NameBox(this); Yanfly.nameWindow = this._nameWindow; };
Yanfly.Message.Window_Message_createSubWindows =
Window_Message.prototype.createSubWindows;
Window_Message.prototype.createSubWindows = function() {
Yanfly.Message.Window_Message_createSubWindows.call(this);
this._nameWindow = new Window_NameBox(this);
Yanfly.nameWindow = this._nameWindow;
};
我想要在对话框下显示一张图片,改成了下面这样:
Yanfly.Message.Window_Message_createSubWindows = Window_Message.prototype.createSubWindows; Window_Message.prototype.createSubWindows = function() { Yanfly.Message.Window_Message_createSubWindows.call(this); this._nameWindow = new Window_NameBox(this); Yanfly.nameWindow = this._nameWindow; //=============新添加================================= this._backSprite = new Sprite(); this._backSprite.bitmap = ImageManager.loadSystem('GameOver'); this.addChild(this._backSprite); };
Yanfly.Message.Window_Message_createSubWindows =
Window_Message.prototype.createSubWindows;
Window_Message.prototype.createSubWindows = function() {
Yanfly.Message.Window_Message_createSubWindows.call(this);
this._nameWindow = new Window_NameBox(this);
Yanfly.nameWindow = this._nameWindow;
//=============新添加=================================
this._backSprite = new Sprite();
this._backSprite.bitmap = ImageManager.loadSystem('GameOver');
this.addChild(this._backSprite);
};
为什么会出现这样的错误提示呢?
求指教,谢谢! |