MZ UI little Tweaks

Hi! I´ve been looking around how could I move the numbers of the HP and MP (here called PP) Gauge next to them instead of on top (and possibly at 16 size like the rest of the fonts)

And also how to make that the Actor Select area on Battles also has windowskin like the rest of the menus, but I haven´t found anything that only tweaks these things... I tried touching up the Sprite.gauge on a separate plugin but I only managed to make the numbers dissapear (by accident I might say x__D) Thanks a mega million!😅
1747776787928.png

Edit: Or rise the mini numbers up if that´s easier and that way it will also fit in the battle screen when displayed with the actor
1747777650297.png
If this is just for the battle UI. Then this will work...
If this is just for the battle UI. Then this will work...
Hi! thanks for the fast reply! the hp and mp numbers would be for all menus, I tried using the HUD maker Ultra but is a bit too much for me, I wouldnt want to chage all the hud, only the "actor select window" to have windowskin like the rest of the original hud
And also how to make that the Actor Select area on Battles also has windowskin like the rest of the menus, but I haven´t found anything that only tweaks these things
try this. you end up having to tweak the dimensions of the status window a bit since its not intended to have the window skin frame and isnt actually the same height or on the same height as the command window
Code:
Window_BattleStatus.prototype.initialize = function(rect) {
    Window_StatusBase.prototype.initialize.call(this, rect);
    this.openness = 0;
    this._bitmapsReady = 0;
    this.preparePartyRefresh();
};
Scene_Battle.prototype.statusWindowRect = function() {
    const ww = Graphics.boxWidth - 192;
    const wh = this.windowAreaHeight();
    const wx = this.isRightInputMode() ? 0 : Graphics.boxWidth - ww;
    const wy = Graphics.boxHeight - wh;
    return new Rectangle(wx, wy, ww, wh);
};

Hi! I´ve been looking around how could I move the numbers of the HP and MP (here called PP) Gauge next to them instead of on top (and possibly at 16 size like the rest of the fonts)
Or rise the mini numbers up if that´s easier and that way it will also fit in the battle screen when displayed with the actor
thats a bit more involved. putting the numbers on the sides means the gauges themselves would need to be shortened because they extend to the end of the actor's area. nudging the numbers up and adjusting the font size might look better imo, but you can only go up so far without readjusting gauge sizes as each gauge is its own sprite and the text cannot leave the boundaries
try this and itll move the numbers up a bit and make number text size match the size of the regular text
Code:
Sprite_Gauge.prototype.drawValue = function() {
    const currentValue = this.currentValue();
    const width = this.bitmapWidth();
    const height = this.textHeight();
    this.setupValueFont();
    this.bitmap.drawText(currentValue, 0, -6, width, height, "right");
};

Sprite_Gauge.prototype.valueFontSize = function() {
    return $gameSystem.mainFontSize();
};
1747794530964.png
try this. you end up having to tweak the dimensions of the status window a bit since its not intended to have the window skin frame and isnt actually the same height or on the same height as the command window
Code:
Window_BattleStatus.prototype.initialize = function(rect) {
    Window_StatusBase.prototype.initialize.call(this, rect);
    this.openness = 0;
    this._bitmapsReady = 0;
    this.preparePartyRefresh();
};
Scene_Battle.prototype.statusWindowRect = function() {
    const ww = Graphics.boxWidth - 192;
    const wh = this.windowAreaHeight();
    const wx = this.isRightInputMode() ? 0 : Graphics.boxWidth - ww;
    const wy = Graphics.boxHeight - wh;
    return new Rectangle(wx, wy, ww, wh);
};



thats a bit more involved. putting the numbers on the sides means the gauges themselves would need to be shortened because they extend to the end of the actor's area. nudging the numbers up and adjusting the font size might look better imo, but you can only go up so far without readjusting gauge sizes as each gauge is its own sprite and the text cannot leave the boundaries
try this and itll move the numbers up a bit and make number text size match the size of the regular text
Code:
Sprite_Gauge.prototype.drawValue = function() {
    const currentValue = this.currentValue();
    const width = this.bitmapWidth();
    const height = this.textHeight();
    this.setupValueFont();
    this.bitmap.drawText(currentValue, 0, -6, width, height, "right");
};

Sprite_Gauge.prototype.valueFontSize = function() {
    return $gameSystem.mainFontSize();
};
View attachment 341000
Aaaaah This is absolutely perfect!!! thanks a mega million!! it´s exactly what I needed!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ui-little-tweaks.177807/