is there any way for me to create a GUI and it's buttons purely from a script, without having to create it in the AGS editor first?
None I know of, sorry. IIRC, you can't create stuff like objects, characters or GUIs at run-time. You'll have to do a workaround.
No, you'd have to create a generic GUI with all the lables, buttons etc. you might need, then customise/turn them on or off using script commands before displaying it.
Now that I'm thinkin about this more... is there something like a "Overlay.GetAtXY();"?
Because, then, it WOULD be possible using DynamicSprites and Overlays...
Yeah, in theory you could always script everything. It's just a huge load of work.
Do you want to create a module that needs a GUI?
Quote from: Khris on Tue 08/09/2009 22:40:30
Do you want to create a module that needs a GUI?
In the middle of creating it. Currently, the workaround is just having the GUI created, along with the buttons. I'd rather not want someone using it to have to create the GUI, and would rather keep it down to one function call to build the GUI
You could include the GUI, then the module's user would just have to import it.