赞 | 2 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 0 |
最后登录 | 2022-5-12 |
在线时间 | 20 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 102
- 在线时间
- 20 小时
- 注册时间
- 2018-3-22
- 帖子
- 16
|
9楼

楼主 |
发表于 2020-2-9 23:03:28
|
只看该作者
阿诺奈亚 发表于 2020-2-9 19:51
Window_MapStatus.prototype.update = function () {
this._dizzyBitmap = ImageManager.loadHitMo ...
我在update里面加了一句- Window_MapStatus.prototype.update = function () {
- Window_Base.prototype.update.call(this);
- }
复制代码 仍然报错
我精简了一下代码
- /*:
- @author ttt
- @plugindesc 窗口示例
- @help
- */
- function Window_MapStatus() {
- this.initialize.apply(this, arguments)
- }
- Window_MapStatus.prototype = Object.create(Window_Base.prototype);
- Window_MapStatus.prototype.initialize = function (x, y, width, height) {
- Window_Base.prototype.initialize.call(this, x, y, width, height);
- this.refresh();
- this.update();
- }
- ImageManager.loadHitMouse = function(filename, hue) {//
- return this.loadBitmap('img/HitMouse/', filename, hue, true);
- };
- Window_MapStatus.prototype.refresh = function () {
- //this.drawText($gameParty.members()[0]._name, 0, 0, this.Width);
- //这里的图片显示不出来
- //this._dizzyBitmap = ImageManager.loadHitMouse("star");
- //this.contents.blt(this._dizzyBitmap, 0, 0, 120, 70, 5, 30,120,70);
- }
- Window_MapStatus.prototype.update = function () {
- Window_Base.prototype.update.call(this);
- //this._dizzyBitmap = ImageManager.loadHitMouse("star");
- //this.contents.blt(this._dizzyBitmap, 0, 0, 120, 70, 5, 30,120,70);
- }
- Scene_Map.prototype.createDisplayObjects = function () {
- //创建精灵组
- this.createSpriteset();
- //创建地图名称窗口
- this.createMapNameWindow();
- //创建窗口层
- this.createWindowLayer();
- //创建所有窗口
- this.createAllWindows();
- //创建一个显示角色状态的窗口
- this.createStatusWindow();
- };
- //创建一个显示名字的窗口
- Scene_Map.prototype.createStatusWindow = function () {
- this._StatusWindow = new Window_MapStatus(0, 0, 410, 216);
- this.addWindow(this._StatusWindow); //把窗口添加到窗口层
- SceneManager.push(Window_MapStatus);
- };
复制代码
不知道错在哪里呀 |
|