Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Akumayo on Wed 09/08/2006 06:49:26

Title: SUGGESTION: Changing slider images at run-time
Post by: Akumayo on Wed 09/08/2006 06:49:26
I think it would be very useful at times to be able to change the background graphic and/or handle image of a slider.  Perhaps an open access to the graphic, like that which is given to us with buttons?
It can, quite simply, be worked around by adding another slider with the desired background image/handle image on top of the current, and making this secondary slider invisible by default, and switching between the two as needed.  For more complex changes though, this would become a lengthy and irritating process.
So, does anyone else think access to these two graphics from the script would be useful?
Title: Re: SUGGESTION: Sliders Image Access
Post by: R4L on Wed 09/08/2006 07:35:04
That "lengthy" process isn't too long IMO b/c you will still be drawing the handle image as well as the background image. So the only thing that really takes time is creating a slider, which doesn't take long at all. I don't think it is necessary but I don't see why it would hurt to have it.
Title: Re: SUGGESTION: Sliders Image Access
Post by: Akumayo on Wed 09/08/2006 07:40:08
Well, aside from making the new slider, you'd have to add code to make both slider values equal, which also isn't a big deal, I suppose.  But say you had 3 slider backgrounds, or 5, or 7.  Then it would get a bit hectic.  I'm not saying it's necessary, nor do I think it deserves a high place on the list of priorities for AGS updates, I just think it would be a nice addition.
Title: Re: SUGGESTION: Sliders Image Access
Post by: Gilbert on Wed 09/08/2006 08:52:15
I second this idea, I don't see why they can't be changed in-game while the other GUI objects could be done so.
Even though it could be work around, I think the work around is still quite complicated.
Maybe we'll wait for CJ's opinion on it, and possible comments on whether it's technically easy to implement.
Title: Re: SUGGESTION: Changing slider images at run-time
Post by: monkey0506 on Sat 09/09/2006 18:05:01
I like this idea...though I'm not sure how much use I would personally make of it, I'm all for customizability. :)
Title: Re: SUGGESTION: Changing slider images at run-time
Post by: Pumaman on Sun 10/09/2006 16:30:15
I'm sure a Slider.Graphic property could be added.
Title: Re: SUGGESTION: Changing slider images at run-time
Post by: Akumayo on Sun 10/09/2006 17:33:13
Neat ^_^
Title: Re: SUGGESTION: Changing slider images at run-time
Post by: strazer on Sun 10/09/2006 19:21:28
Tracker'd: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=588