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
103
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
103
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

thought I'd upgrade to mz from mv cause of the nice quality of life features but ****ing hell why couldn't they allow old plugins to work in it and secondly how come in over a year since it's release has there been no mz version of something so crucial as a non grid based movement plugin. I guess I'll stick with mv. (why wasnt mz just an update to mv anyway literally nothing substantial changed..)
Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.

Forum statistics

Threads
116,020
Messages
1,094,982
Members
151,337
Latest member
Laura1999
Top