Good morning guys, hope you are all doing well today.
Searching for a way to resize my icons from 32x32 to 63x32. If that doesn't work then 96x32 would be fine.
I changed the default icon width + height in Yanfly Core Engine, but since I'm using Moghunter's Battle HUD, I would have to adjust the icon size in here too. Otherwise it shows me a completely different icon than the one I selected.
But I'm at a complete loss as to how to change it.
Hope somebody knows the answer...
Have a nice Sunday everybody.
Searching for a way to resize my icons from 32x32 to 63x32. If that doesn't work then 96x32 would be fine.
I changed the default icon width + height in Yanfly Core Engine, but since I'm using Moghunter's Battle HUD, I would have to adjust the icon size in here too. Otherwise it shows me a completely different icon than the one I selected.
But I'm at a complete loss as to how to change it.
Code:
//==============================
// * Create States
//==============================
Battle_Hud.prototype.refresh_states2 = function() {
this._state_icon.visible = false;
this._battler.need_refresh_bhud_states = false;
for (i = 0; i < this._stateIcons.length; i++){
this._state_icon.removeChild(this._stateIcons[i]);
};
if (this._battler.allIcons().length == 0) {return};
this._state_icon.visible = true;
this._stateIcons = [];
var w = Window_Base._iconWidth;
var icons = this._battler.allIcons().slice(0,w);
var m = Math.min(Math.max(this._battler.allIcons().length,0),Moghunter.bhud_statesMax);
var align = Moghunter.bhud_statesAlign;
for (i = 0; i < m; i++){
this._stateIcons[i] = new Sprite(this._state_img);
var sx = icons[i] % 16 * w;
var sy = Math.floor(icons[i] / 16) * w;
this._stateIcons[i].setFrame(sx, sy, w, w);
this._stateIcons[i].x = (w + 4) * i;
};
this._state_icon.addChild(this._stateIcons[i]);
};
};
Hope somebody knows the answer...
Have a nice Sunday everybody.