Sorry to bother yourselves,i like to ask for a battle hud simlar to MV,im aware about Visu Stella,but that plugins is ofuscated so i cannot make patches if there are incompatbilities with another plugin. PD: im using the tpb feature.
MZ Mv Style Battlehud for MZ
JS Plugin RequestsWhat are the differences in your opinion? Cause they seem pretty similar to me.
Nope,they are quite different... Mv hud look like this:
PD: excuse me for double posting,i tried to put the image in the same post but a second one appeared.
PD: excuse me for double posting,i tried to put the image in the same post but a second one appeared.
Here this is close.
JavaScript:
Window_BattleStatus.prototype.maxCols = function() {
return 1;
};
Window_BattleStatus.prototype.maxRows = function() {
return 4;
};
Window_BattleStatus.prototype.itemHeight = function() {
return this.innerHeight / this.maxRows();
};
Window_BattleStatus.prototype.drawItem = function(index) {
this.drawItemStatus(index);
};
Window_BattleStatus.prototype.nameX = function(rect) {
return rect.x;
};
Window_BattleStatus.prototype.nameY = function(rect) {
return rect.y + rect.height/2 - this.gaugeLineHeight()/2;
};
Window_BattleStatus.prototype.basicGaugesX = function(rect) {
const numGauges = $dataSystem.optDisplayTp ? 3 : 2;
const aftername = rect.x + rect.width - this.gaugeLineWidth() *(numGauges) - this.extraHeight()*(3);
return aftername;
};
Window_BattleStatus.prototype.basicGaugesY = function(rect) {
return this.nameY(rect)
};
Window_BattleStatus.prototype.gaugeLineWidth = function(rect) {
return 138;//(this.innerWidth - this.extraHeight())/4;
};
Window_BattleStatus.prototype.stateIconX = function(rect) {
return rect.x + this.gaugeLineWidth() + 4 + 4;
};
Window_BattleStatus.prototype.stateIconY = function(rect) {
return this.nameY(rect) + Math.round(ImageManager.iconHeight / 4) + 2;
};
Window_BattleStatus.prototype.placeBasicGauges = function(actor, x, y) {
var xPlus = x + ImageManager.iconWidth + 4;
this.placeGauge(actor, "hp", xPlus, y);
this.placeGauge(actor, "mp", xPlus + this.gaugeLineWidth(), y);
if ($dataSystem.optDisplayTp) {
this.placeGauge(actor, "tp", xPlus + this.gaugeLineWidth() * 2, y);
}
};
Oops! I found a bug,when i try to open the menu:
Type Error this.gaugeLineWidth is not a function.
Thanks you very much,that is whar i wanted.
Type Error this.gaugeLineWidth is not a function.
Thanks you very much,that is whar i wanted.
My mistake. I have edited the previously posted plugin. Please copy it again.
Thanks you very much friend,it works perfectly now. :ahappy:
Original thread: https://forums.rpgmakerweb.com/threads/mv-style-battlehud-for-mz.133747/