- Joined
- Dec 4, 2017
- Messages
- 15
- Reaction score
- 9
- First Language
- English
- Primarily Uses
- RMMV
Hello all. I'm writing a plugin wherein I am trying to change the _helpWindow property of the Window_Message class during certain events.
However, it seems that this global class only sets the _helpWindow during its createSubWindows method, which it only calls in its initialize method. So even if I override the prototype for createSubWindows, by the time any of my events occur, the _helpWindow is instantiated, and I can't find a way to change it. What I'm hoping to do is change the _helpWindow (number of lines, specifically) repeatedly based on event variables.
So is there a way to do this? I thought I would call my overridden createSubWindows method again, but I can't find a hook into the Window_Message class instance to call it with the right context (attempts to call it from the prototype result in complaints about missing parent references).
Thanks for any help!
Occupant
However, it seems that this global class only sets the _helpWindow during its createSubWindows method, which it only calls in its initialize method. So even if I override the prototype for createSubWindows, by the time any of my events occur, the _helpWindow is instantiated, and I can't find a way to change it. What I'm hoping to do is change the _helpWindow (number of lines, specifically) repeatedly based on event variables.
So is there a way to do this? I thought I would call my overridden createSubWindows method again, but I can't find a hook into the Window_Message class instance to call it with the right context (attempts to call it from the prototype result in complaints about missing parent references).
Thanks for any help!
Occupant



