By default, the VE - Conditional Turn Battle has icons as 32 x 32. My icons are 54 x 48. They aren't pulling from the default faceset. Even when I state this in the plugin parameters, the icons come out looking like this:
How can I get them to display properly?
EDIT:
Changing
to
gave me this:
I feel like I'm working in the right direction, but I'm still not entirely sure what I'm doing. I'm just playing with numbers while wait for assistance, to be honest. But who knows, maybe I'll figure it out.
EDIT 2:
So, I figured it out.
I just made
into
How can I get them to display properly?
EDIT:
Changing
JavaScript:
Sprite_CtbIcon.prototype.drawIcon = function() {
var icon = this._battler.ctbIcon() || 0;
var pw = Window_Base._iconWidth;
var ph = Window_Base._iconHeight;
var bitmap = ImageManager.loadSystem(this.display().iconset);
var sx = icon % 16 * pw;
var sy = Math.floor(icon / 16) * ph;
this.bitmap.blt(bitmap, sx, sy, pw, ph, 0, 0);
};
JavaScript:
Sprite_CtbIcon.prototype.drawIcon = function() {
var icon = this._battler.ctbIcon() || 0;
var pw = Window_Base._iconWidth;
var ph = Window_Base._iconHeight;
var bitmap = ImageManager.loadSystem(this.display().iconset);
var sx = icon % 27 * pw;
var sy = Math.floor(icon / 24) * ph;
this.bitmap.blt(bitmap, sx, sy, pw, ph, 0, 0);
};
I feel like I'm working in the right direction, but I'm still not entirely sure what I'm doing. I'm just playing with numbers while wait for assistance, to be honest. But who knows, maybe I'll figure it out.
EDIT 2:
So, I figured it out.
I just made
JavaScript:
Sprite_CtbIcon.prototype.drawIcon = function() {
var icon = this._battler.ctbIcon() || 0;
var pw = Window_Base._iconWidth;
var ph = Window_Base._iconHeight;
var bitmap = ImageManager.loadSystem(this.display().iconset);
var sx = icon % 16 * pw;
var sy = Math.floor(icon / 16) * ph;
this.bitmap.blt(bitmap, sx, sy, pw, ph, 0, 0);
};
JavaScript:
Sprite_CtbIcon.prototype.drawIcon = function() {
var icon = this._battler.ctbIcon() || 0;
var pw = 54
var ph = 48
var bitmap = ImageManager.loadSystem(this.display().iconset);
var sx = icon % 27 * pw;
var sy = Math.floor(icon / 24) * ph;
this.bitmap.blt(bitmap, sx, sy, 54, 48, 0, 0);
};