Where would I find the width and/or height of the bars in the battle screen. See below:
Want it to fill the the entire box basically.
SOLVED:
I solved it with this. It will automatically resize your status gauges based on your screen resolution. I don't know if it collides with other plugins or such. I've only tested it for 1080p. But go ahead and try it out if you wish.
Before:
After:
Want it to fill the the entire box basically.
SOLVED:
I solved it with this. It will automatically resize your status gauges based on your screen resolution. I don't know if it collides with other plugins or such. I've only tested it for 1080p. But go ahead and try it out if you wish.
JavaScript:
//=============================================================================
// BISH_battleCore_resize.js
//=============================================================================
/*:
* @plugindesc Changes the status gauges based on your screen resolution.
* @author Bishiba
* Free to use for commercial use.
* Credits appreciated but not required.
* @help Help text
*
*/
var BISH = BISH || {};
BISH.battleCore = BISH.battleCore || {};
BISH.battleCore.resizeBattleWindow = function() {
Sprite_Gauge.prototype.bitmapWidth = function() {
return 128 * (Graphics.width/816);
};
Window_StatusBase.prototype.placeGauge = function(actor, type, x, y) {
const key = "actor%1-gauge-%2".format(actor.actorId(), type);
const sprite = this.createInnerSprite(key, Sprite_Gauge);
console.log(this.createInnerSprite(key, Sprite_Gauge))
sprite.setup(actor, type);
sprite.move(x, y-20);
sprite.show();
};
Window_BattleStatus.prototype.drawItemStatus = function(index) {
const actor = this.actor(index);
const rect = this.itemRectWithPadding(index);
const nameX = this.nameX(rect);
const nameY = this.nameY(rect);
const stateIconX = this.stateIconX(rect);
const stateIconY = this.stateIconY(rect);
const basicGaugesX = this.basicGaugesX(rect);
const basicGaugesY = this.basicGaugesY(rect);
this.placeTimeGauge(actor, nameX, nameY-10);
this.placeActorName(actor, nameX, nameY-30);
this.placeStateIcon(actor, stateIconX, stateIconY);
this.placeBasicGauges(actor, basicGaugesX, basicGaugesY);
};
}
After: