
_.checkForCC = function() {
if(Imported["SumRndmDde Character Creator EX"]) {
Sprite_HUDFace.prototype.refreshBitmap = function() {
this.bitmap.clear();
const color = _.convertHex(this["Background Color"], parseInt(this["Background Alpha"]));
this.bitmap.fillRect(0, 0, this.bitmap.width, this.bitmap.height, color);
if(this._actor.hasSetImage()) {
this.drawCustomFace(this._actor, 0, 0, this.bitmap.width, this.bitmap.height);
} else {
this.drawFace(this._actor.faceIndex(), parseInt(this["Width"]), parseInt(this["Height"]));
}
this.setupSnaps();
};
Sprite_HUDFace.prototype.drawCustomFace = function(actor, x, y, w, h) {
const width = Window_Base._faceWidth;
const height = Window_Base._faceHeight;
w = w || width;
h = h || height;
const bitmap = Sprite_HUDFace.prototype.getCustomFace.call(this, actor);
this.bitmap.blt(bitmap, 0, 0, width, height, x, y, w, h);
};
}
}
SRD.NotetagGetters.push(_.checkForCC);