Moving the Help Window

EDIT - Sorted it. I foolishly had the X and Y co-ords backwards in the window call. Oops lol


Hi,


I need a little help. I working on rearranging my menus and I am stuck on my Item Menu. I have attached an image of what I have so far. I want the help window to appear at the bottom of the screen under the item list window but I am having a hard time doing this. I have tried a few things and found that this._helpWindow.x does not work as the x and y seem to be hard coded in the Window_Help section. So I have copied the Window_Help and renamed to Window_Help_Item and called this from createHelpWindow function I have written for Scene_Item but still no help window shows when I go in to the Item menu. I have checked the code flows by using the console.log and they appear in the console window.


Any help you guys could share would be grateful thanks.

Spoiler
Scene_Item.prototype.createHelpWindow = function() {
console.log("createHelpWindow has been called");
this._helpWindow = new Window_Help_Item();
this.addWindow(this._helpWindow);
};




function Window_Help_Item() {
this.initialize.apply(this, arguments);
}

Window_Help_Item.prototype = Object.create(Window_Base.prototype);
Window_Help_Item.prototype.constructor = Window_Help_Item;

Window_Help_Item.prototype.initialize = function() {
console.log("Window_Help_Item has been called");
var width = Graphics.boxWidth;
var height = this.fittingHeight(2);
Window_Base.prototype.initialize.call(this, Graphics.boxHeight - height, 0, width, height);
this._text = '';
};

Window_Help_Item.prototype.setText = function(text) {
if (this._text !== text) {
this._text = text;
this.refresh();
}
};

Window_Help_Item.prototype.clear = function() {
this.setText('');
};

Window_Help_Item.prototype.setItem = function(item) {
this.setText(item ? item.description : '');
};

Window_Help_Item.prototype.refresh = function() {
this.contents.clear();
this.drawTextEx(this._text, this.textPadding(), 0);
};



ItemWindow.PNG
Hey Paulionassus,


  So you have it all figured out? just transposing the x and y coordinates solved the issue?


Gatene
Hey Paulionassus,


  So you have it all figured out? just transposing the x and y coordinates solved the issue?


Gatene



Yeah I have. Its so easy to make a small mistake that ruins everything lol. I am now working on the other menus slowly but surely. 
cool, let us know if you need any more help.

Original thread: https://forums.rpgmakerweb.com/threads/moving-the-help-window.61426/