SUGGESTION: Changing slider images at run-time

Started by Akumayo, Wed 09/08/2006 06:49:26

Previous topic - Next topic

Akumayo

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?
"Power is not a means - it is an end."

R4L

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.

Akumayo

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.
"Power is not a means - it is an end."

Gilbert

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.

monkey0506

I like this idea...though I'm not sure how much use I would personally make of it, I'm all for customizability. :)

Pumaman

I'm sure a Slider.Graphic property could be added.

Akumayo

"Power is not a means - it is an end."


SMF spam blocked by CleanTalk