Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
61
Reaction score
24
First Language
English
Primarily Uses
RMMV
Not sure what I am missing. I am able to get the window to add to the screen, however, I am unable to add the text to the window that is being populated. That sure what I am missing.


1632072372351.png
 

Arctica

Veteran
Veteran
Joined
Jul 19, 2021
Messages
208
Reaction score
317
First Language
English
Primarily Uses
RMMZ
Change the above to this:

JavaScript:
Window_PM.prototype.refresh = function() {
    this.contents.clear();
    this.drawText(text);
};

And for your initializer:
JavaScript:
this.refresh()

Without the "()" it will just return the function definition.
 

Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
61
Reaction score
24
First Language
English
Primarily Uses
RMMV
Change the above to this:

JavaScript:
Window_PM.prototype.refresh = function() {
    this.contents.clear();
    this.drawText(text);
};

And for your initializer:
JavaScript:
this.refresh()

Without the "()" it will just return the function definition.

Looks like it put the code in the right direction, however it seems to be looping.
1632077385504.png
 

Arctica

Veteran
Veteran
Joined
Jul 19, 2021
Messages
208
Reaction score
317
First Language
English
Primarily Uses
RMMZ
You'll need to change the name(the function identifier) of your drawText method, so it's not the same as the drawText call in the function body of that method, then change the name of the call in your refresh method to that of your method with the new name.
 

Latest Threads

Latest Posts

Latest Profile Posts

ScreenShot_9_29_2022_3_10_17.png
Welcome to century waterway... I'm thinking of changing the parallax tho to a straight up bridge to make the traveling here make more sense.
I actually did work on my game today. This is momentous enough to warrant a status post.
Working on a character poses plugin!
Aerosys wrote on OcRam's profile.
Just saw your video about Map Generation. What a pity it's gone! It looked really well-made and like an excellent competitor to mine.

Forum statistics

Threads
125,663
Messages
1,172,628
Members
164,789
Latest member
musicmage
Top