Ruth Studio

Veteran
Veteran
Joined
Oct 19, 2017
Messages
54
Reaction score
21
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
83
Reaction score
107
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
54
Reaction score
21
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
83
Reaction score
107
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

So got my hearing tested to see if it was the cause of my mishearing what people say. Test showed no problems but talked with the doctor about anxiety and ADHD causing hearing issues and she agreed and also added that some people hear things differently. With my anxiety cause I am in fight or flight I pay attention to all the sounds in the area so body knows when react. Can't pay attention to one source.
Welp, people are trying to quit my team because I can't code. Where's the dancing blob emoji when I need it?

Forum statistics

Threads
116,053
Messages
1,095,328
Members
151,409
Latest member
naj
Top