Сам допер как это сделать
Код:
LevelsBossPlayer.prototype.update = function() {
this.contents.clear();
if ($gameSwitches.value(enableSwitchId) == true) {
this.show();
this.drawFace($gameParty.members()[0].faceName(),$gameParty.members()[0].faceIndex(), 5, 10, Face_Player_Width, Face_Player_Height);
this.resetTextColor();
this.drawTextEx("fdgdfgd", 10 + Face_Player_Width + 5, 15);
} else {
this.hide();
}
};
LevelsBossPlayer.prototype.drawFace = function(faceName, faceIndex, x, y, width, height) {
var bitmap = ImageManager.loadFace(faceName);
var pw = Window_Base._faceWidth;
var ph = Window_Base._faceHeight;
var sx = faceIndex % 4 * pw;
var sy = Math.floor(faceIndex / 4) * pw;
this.contents.blt(bitmap, sx, sy, pw, ph, x, y, width, height);
};
Социальные закладки