Page 1 of 1

Access to #SIMPLEBUTTON objects

Posted: Mon Jul 13, 2015 2:56 pm
by TheMartian
Hi

Would it be possible to include a #SIMPLEBUTTON object in the list of objects that the function GetObjects() can access? Or is the #SIMPLEBUTTOM not really an object...?

The idea is to make it possible to traverse the list of #SIMPLEBUTTON objects and do stuff like deleting them all or whatever.

Also would it be possible to have a statement like 'ForceButton(id)' to trigger the relevant button event. This might be handy for debugging and recreation of buttons, since the Button event returns ID, dimensions etc., so if it was combined with the first suggestion, you could create a list with informations about buttons in use at any time by triggering them as you traversed the result from the GetObjects() statement.

regards
Jesper

Re: Access to #SIMPLEBUTTON objects

Posted: Mon Jul 13, 2015 11:48 pm
by airsoftsoftwair
Currently, buttons are not normal Hollywood objects but reside inside BGPics. Maybe I'll change this in a future version along with a function like ForceButton(). There are higher priority things at the moment, though :)

Re: Access to #SIMPLEBUTTON objects

Posted: Tue Jul 14, 2015 10:32 am
by Bugala
I too think that ForceButton had became handy couple of times.