Hello,
I'm attempting to put custom gauges in my game and I'm using a script from I got from a Soul Video. The script works for the main menu, but when I got to any other screens such as status or equip it shows the old ugly default gauges. Below are images of what I see.
Here is the current script I have, let me know what I need to add to have the other screens show the custom gauges.
(function($){
$.prototype.drawActorHp = function(actor, x, y, width) {
var _hpBar = ImageManager.loadSystem('HP');
width = width || 186;
var _rate = Math.floor(actor.hpRate() * width);
this.contents.blt(_hpBar, 0, 0, _rate, 16, x, y + 20);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y, width,
this.hpColor(actor), this.normalColor());
};
$.prototype.drawActorMp = function(actor, x, y, width) {
var _mpBar = ImageManager.loadSystem('MP');
width = width || 186;
var _rate = Math.floor(actor.mpRate() * width);
this.contents.blt(_mpBar, 0, 0, _rate, 16, x, y + 20);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y, width,
this.mpColor(actor), this.normalColor());
};
})(Window_MenuStatus)(Window_EquipStatus)(Window_SkillStatus);
I'm attempting to put custom gauges in my game and I'm using a script from I got from a Soul Video. The script works for the main menu, but when I got to any other screens such as status or equip it shows the old ugly default gauges. Below are images of what I see.
Here is the current script I have, let me know what I need to add to have the other screens show the custom gauges.
(function($){
$.prototype.drawActorHp = function(actor, x, y, width) {
var _hpBar = ImageManager.loadSystem('HP');
width = width || 186;
var _rate = Math.floor(actor.hpRate() * width);
this.contents.blt(_hpBar, 0, 0, _rate, 16, x, y + 20);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y, width,
this.hpColor(actor), this.normalColor());
};
$.prototype.drawActorMp = function(actor, x, y, width) {
var _mpBar = ImageManager.loadSystem('MP');
width = width || 186;
var _rate = Math.floor(actor.mpRate() * width);
this.contents.blt(_mpBar, 0, 0, _rate, 16, x, y + 20);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.mpA, x, y, 44);
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y, width,
this.mpColor(actor), this.normalColor());
};
})(Window_MenuStatus)(Window_EquipStatus)(Window_SkillStatus);