| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2023-3-16 |
| 在线时间 | 7 小时 |
- 梦石
- 0
- 星屑
- 79
- 在线时间
- 7 小时
- 注册时间
- 2017-11-20
- 回帖
- 2
|
楼主 |
发表于 2018-7-4 17:35:40
|
显示全部楼层
[pre lang="javascript"]Shelter_Window_MenuStatus.prototype.drawItemImage = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
this.drawActorFace(actor, rect.x + 2, rect.y + 2, 61, 61);
this.changePaintOpacity(true);
};
Shelter_Window_MenuStatus.prototype.drawActorFace = function(actor, x, y, width, height) {
this.drawFace(actor._name, x, y, width, height);
};
Shelter_Window_MenuStatus.prototype.drawFace = function(actorName, x, y, width, height) {
var pw = 61;
var ph = 61;
var dx = Math.floor(x + Math.max(width - pw, 0) / 2);
var dy = Math.floor(y + Math.max(height - ph, 0) / 2);
var bitmap = ImageManager.loadBitmap("img/system/menu/head/",actorName);
this.contents.blt(bitmap, 0, 0, pw, ph, dx, dy);
};[/pre]
感觉跟原生的区别不大啊……而且现在变成有一个Scene能正常显示,有一个Scene只有翻页之后才会显示出来 |
|