Gui from a script

Started by suicidal pencil, Tue 08/09/2009 21:38:00

Previous topic - Next topic

suicidal pencil

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?

Akatosh

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.

OneDollar

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.

NsMn

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...

Khris

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?

suicidal pencil

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

Khris

You could include the GUI, then the module's user would just have to import it.

SMF spam blocked by CleanTalk