I am curious as to how this can be done. The documentation seems to be lacking examples and the scripts I have been looking at don't make much sense due to there lack of documentation. So my question is simple, how do I create a 100x100 centered window with an icon and the words hello world.
Can some one paste an example of how this would be done? I have been working on a script and looking through the core scripts on how to do this, Its not that clear ..... to me at least >.>
var window = new Window_Base(x, y, width, height);window.drawText("Hello World", x, y, maxWidth, lineHeight, alignment);window.drawIcon(iconindex, {x: xpos, y: ypos});The draw icon bit kinda sucks, in my opinion, because it was designed to work with window message, which has a textState object with x and y poses. The drawIcon function uses those positions to draw at a certain spot, so you need to pass in an object like that. Kinda sloppy in my opinion, but whatever.
I'm not entirely sure how this will hold up in a script call. I don't think there's automatic garbage collection like in Ruby, so it should continue to live after your script call, however once the script call ends, there will no long be any reference to that window and it'll just hang out there until the scene changes or the game reloads. You'll have to set it somewhere with a wider scope to keep a reference to it.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.