I made a @display_window in map scene. Everytime I need to, I'll use a script event to specify a text for it to display. Either an area name or just empty. I did this because I need a display that can be modified without player button input.
When the player press up button, the area on the top is enlarged a bit and the @display_window shows the name of the area. If he presses the C button, he will go to that area. If he presses left button, left picture enlarges and @display_window shows the name of that area, etc.
http://img522.imageshack.us/img522/1955 ... ectht0.jpg[/IMG]
Now, my problem is, if a player presses up and then goes to menu and exit again, the 'up' input is still stored and the up picture enlarged but the text is gone. if he presses C, he will go to the 'up' area.
http://img521.imageshack.us/img521/8761 ... xitma1.jpg[/IMG]
The text dissapears because I disposed the window when I shift to menu. I'm wondering if I don't dispose the window everytime i change scene into menu back and forth, will there be only one instance of the window or multiples of it (since @display_window = Window_Display.new is in def main)? How do I work around this?
When the player press up button, the area on the top is enlarged a bit and the @display_window shows the name of the area. If he presses the C button, he will go to that area. If he presses left button, left picture enlarges and @display_window shows the name of that area, etc.
http://img522.imageshack.us/img522/1955 ... ectht0.jpg[/IMG]
Now, my problem is, if a player presses up and then goes to menu and exit again, the 'up' input is still stored and the up picture enlarged but the text is gone. if he presses C, he will go to the 'up' area.
http://img521.imageshack.us/img521/8761 ... xitma1.jpg[/IMG]
The text dissapears because I disposed the window when I shift to menu. I'm wondering if I don't dispose the window everytime i change scene into menu back and forth, will there be only one instance of the window or multiples of it (since @display_window = Window_Display.new is in def main)? How do I work around this?