Originally Posted by Olenn
So I went to bed last night and slept on it. I woke up this morning and looked at all of your sdvice and stared at my code for a little bit...then I realized I was trying to calling SatchelWindow instead of satchelWindow ... stupid capital letters ... that capital S owes me three hours of life, lol.
Anyway, thanks for all of the help everyone!
New issue, the opacity slider is working great, but the value I am using for the opacity doesn't capture the full range.
self.opacityScrollbar.ValueChanged = function( sender, args )
satchelWindow:SetOpacity( ( 55 + ( 200 - self.opacityScrollbar:GetValue() ) ) / 255 );
the value was pulled form Turb's examples, but I am trying to go from fully opaque to full invisible.
I'm unfamiliar with the variety of slider you're using - so I have no idea what the value range is.
Please don't take this as any kind of self promotion, but I would suggest using the slider class in Palantir's DUInterface folder (feel free just to copy and paste the class somewhere - as well as the images) You can set the minimum and maximum values, as well as the step, making it as easy as just tying the slider value directly to the opacity of the window (and vice versa).
Otherwise, like I sad - in order to give you any help on that formula, I'd have to know what the range you're working with is.