Hello, I'm trying to understand how to use javascript to personalize my game (I have some basic knowledge so I don't think that's too ambitious). So I created a customWindow property with a refresh function. I successfully added my window into the Scene Map by adding this code into Scene_Map.prototype.start:
this.customWindow = new CustomWindow ;
this.addchild(this.customWindow) ;
Now I want to refresh the custom window during an event in the game using a script, so I want to call my refresh function on my custom window. But I don't know how to call it. I'm pretty sure I have to call refresh on this.customWindow but I don't know what I should use to replace this. What is the instance of Scene_Map ?
this.customWindow = new CustomWindow ;
this.addchild(this.customWindow) ;
Now I want to refresh the custom window during an event in the game using a script, so I want to call my refresh function on my custom window. But I don't know how to call it. I'm pretty sure I have to call refresh on this.customWindow but I don't know what I should use to replace this. What is the instance of Scene_Map ?