On this thread, SilverDash has exactly the same problem I have at this moment. I tried to get rid of Window_MenuStatus and when I open Scene_Skill, actor's face isn't there until I reload it on the second time.
This silly overwrite did dirty trick in my case.
(function($) { $.prototype.drawFace = function(faceName, faceIndex, x, y, width, height) { width = width || Window_Base._faceWidth; height = height || Window_Base._faceHeight; var bitmap = ImageManager.loadFace(faceName); var that = this; // I hate using "that", to be honest, but I tried not to use bind in this case. bitmap.addLoadListener(function() { var pw = Window_Base._faceWidth; var ph = Window_Base._faceHeight; var sw = Math.min(width, pw); var sh = Math.min(height, ph); var dx = Math.floor(x + Math.max(width - pw, 0) / 2); var dy = Math.floor(y + Math.max(height - ph, 0) / 2); var sx = faceIndex % 4 * pw + (pw - sw) / 2; var sy = Math.floor(faceIndex / 4) * ph + (ph - sh) / 2; that.contents.blt(bitmap, sx, sy, sw, sh, dx, dy); }); };})(Window_Base);My questions is:
1. By any chance, will this overwritten method cause any problem?
2. I know that Scene_Base won't be started until ImageManager is ready and graphics are loaded. But why Scene_Skill doesn't have same behaviour like Scene_Base?
Thanks!
This silly overwrite did dirty trick in my case.
(function($) { $.prototype.drawFace = function(faceName, faceIndex, x, y, width, height) { width = width || Window_Base._faceWidth; height = height || Window_Base._faceHeight; var bitmap = ImageManager.loadFace(faceName); var that = this; // I hate using "that", to be honest, but I tried not to use bind in this case. bitmap.addLoadListener(function() { var pw = Window_Base._faceWidth; var ph = Window_Base._faceHeight; var sw = Math.min(width, pw); var sh = Math.min(height, ph); var dx = Math.floor(x + Math.max(width - pw, 0) / 2); var dy = Math.floor(y + Math.max(height - ph, 0) / 2); var sx = faceIndex % 4 * pw + (pw - sw) / 2; var sy = Math.floor(faceIndex / 4) * ph + (ph - sh) / 2; that.contents.blt(bitmap, sx, sy, sw, sh, dx, dy); }); };})(Window_Base);My questions is:
1. By any chance, will this overwritten method cause any problem?
2. I know that Scene_Base won't be started until ImageManager is ready and graphics are loaded. But why Scene_Skill doesn't have same behaviour like Scene_Base?
Thanks!