Llareian, unfortunately that did not work. I think that's on the right track, though. From playing around with the code, it seems that the message window activates automatically, but doesn't wait for player input before calling this._numberWindow.activate() which then activates the sell window and ignores the message window. If I comment out the numberWindow activation, the message window works--but then of course the shop doesn't work any more.
For now, I've sort of solved the problem just by adding \\|\\^ to the end of the message so it pauses briefly before closing automatically. I can work on a more elegant JavaScript-based solution later.
Thanks for the help, Llareian!
For now, I've sort of solved the problem just by adding \\|\\^ to the end of the message so it pauses briefly before closing automatically. I can work on a more elegant JavaScript-based solution later.
Thanks for the help, Llareian!