Moving the Help Window

Paulionassus

Warper
Member
Joined
Oct 30, 2015
Messages
3
Reaction score
0
First Language
English
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.

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
 
Last edited by a moderator:

Gatene

Intermediate Scripter
Member
Joined
Jan 29, 2014
Messages
11
Reaction score
2
First Language
English
Primarily Uses
Hey Paulionassus,


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


Gatene
 

Paulionassus

Warper
Member
Joined
Oct 30, 2015
Messages
3
Reaction score
0
First Language
English
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. 
 

Gatene

Intermediate Scripter
Member
Joined
Jan 29, 2014
Messages
11
Reaction score
2
First Language
English
Primarily Uses
cool, let us know if you need any more help.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top