I'm running into a strange issue with a plug-in I am writing. The plug-in creates a secondary party of characters that are not part of your main party, and thus they have their own window in the
menu that switches when an option in the menu is selected. The issue is that the first time I open the menu in any play test, the faces of the secondary party are not visible, but for some reason the second and all subsequent times I do so, they draw just fine. I checked all the parameters going through the method and they match every time, even the first time when it doesn't draw. So I'm asking what's the problem? Why is this happening?
Here's my method in case you need to see it:
menu that switches when an option in the menu is selected. The issue is that the first time I open the menu in any play test, the faces of the secondary party are not visible, but for some reason the second and all subsequent times I do so, they draw just fine. I checked all the parameters going through the method and they match every time, even the first time when it doesn't draw. So I'm asking what's the problem? Why is this happening?
Here's my method in case you need to see it:
Code:
Window_MenuGF.prototype.drawItemImage = function(index) {
var actor = $gameParty.guardianForces()[index];
var rect = this.itemRect(index);
this.drawActorFace(actor, rect.x + 1, rect.y + 1, Window_Base._faceWidth, Window_Base._faceHeight);
};