Posts for metalsonic88

Experienced Forum User
Joined: 3/19/2017
Posts: 4
Much obliged, but actually I just remembered this thread and was coming back to post that I got it working. I was actually the one who copied those functions from the gui over to the canvas earlier today when I figured out more or less how they worked. Everything is going swimmingly again.
Experienced Forum User
Joined: 3/19/2017
Posts: 4
So, I've been using a canvas to print all my text and everything has been working wonderfully. Unfortunately after trying to pretty up my display I've run into a showstopping problem: it seems to be impossible to draw an image from a file to a canvas. I briefly looked into using forms as suggested by CtrlAltDestroy, but these too seem unfit for drawing images. Is there any function I'm overlooking that would allow me to do this? If not, is there some other way to create a window separate from Bizhawk's emulator display that can display both text and .png images?
Experienced Forum User
Joined: 3/19/2017
Posts: 4
I'll check out forms later, but for now what Masterjun explained about the canvas is exactly what I was looking for. Thanks a million.
Post subject: Can I create a new window with Lua?
Experienced Forum User
Joined: 3/19/2017
Posts: 4
I'm working on a Lua script and have a whole lot of frequently updating info I'd like to be able to display at once, but doing so on the emulator's game display makes the game nigh unplayable. I was hoping there was some sort of function that would let me create a new window of some sort separate from the game's display and print the information there. I found the emulator has a gui function called createcanvas which will make a window with the dimensions I specify appear, but I can't figure our any way to draw on that, or really interact with it in any meaningful way besides just creating it. I also thought maybe gui.DrawNew would let me set my information to display to the canvas or perhaps some other window that it would create, but after searching around a bit it looks like it might just be for drawing to the native emulator size? Honestly, I'm not sure what it's all about but the only values I could input into it without getting an error were "emu" and "native" and neither helped me. So yeah. Is this impossible or am I just overlooking something?