| 
 
| 赞 | 58 |  
| VIP | 37 |  
| 好人卡 | 59 |  
| 积分 | 12 |  
| 经验 | 66255 |  
| 最后登录 | 2023-5-29 |  
| 在线时间 | 1017 小时 |  
 Lv3.寻梦者 
	梦石0 星屑1232 在线时间1017 小时注册时间2011-4-30帖子1516 | 
| 本帖最后由 汪汪 于 2016-2-2 01:13 编辑 
 主要是脸图没准备好的问题,这里参考的是Window_Message里的写法.. 
 //果然还是要读默认脚本啊 T_T
 更新一下方法......复制代码Window_Base.prototype.drawFace = function(faceName, faceIndex, x, y, width, height) {
    width = width || Window_Base._faceWidth;
    height = height || Window_Base._faceHeight;
    var bitmap = ImageManager.loadFace(faceName);
    var pw = Window_Base._faceWidth;
    var ph = Window_Base._faceHeight;
    var sw = Math.min(width, pw);
    var sh = Math.min(height, ph);
    var dx = Math.floor(x + Math.max(width - pw, 0) / 2);
    var dy = Math.floor(y + Math.max(height - ph, 0) / 2);
    var sx = faceIndex % 4 * pw + (pw - sw) / 2;
    var sy = Math.floor(faceIndex / 4) * ph + (ph - sh) / 2;
    bitmap.addLoadListener(
            this.contents.blt.bind(this.contents,bitmap, sx, sy, sw, sh, dx, dy)
    );
};
 | 
 评分
查看全部评分
 |