Switch to the dark side!
Litestep

Litestep

Latest Discussion
2 weeks ago
2 months ago
3 months ago
4 months ago
More...

Post a new topic



Move/animate/reposition lsslider

4087
yboris says:

I started this thread here but to no help:
http://www.ls-universe.info/plugins/forum/forum_viewtopic.ph
p?12657.0


I am using lsslider1.71 and xpaintclass3.4.5
I want to have lsslider auto-hide through an animation - move offscreen when the mouse isn't around.

Here is what I have, and it doesn't work:

*TrackModuleHook !SliderHook "Volume" 10 10 7 "SliderTrack.png" "SliderHandleT.png" 2HABI [VOLUME] 1

(which follows the syntax provided in the xLabel-3.4.5 documentation and lsslider-1.71). I made sure to have lsslider load before xlabel (as said in documentation) as well as this:

TrackX 10
TrackY 10
TrackWidth 200
TrackHeight 200
TrackImage back.png
TrackTransparencyMode Fake

Yet it doesn't display ANYTHING!!! I've been trying different things for at least 4 hours now

Could anyone help? Perhaps you know of a theme that has lsslider as a modulehook (and uses xlabel3.x.x ) that I can look at to figure out :(

12:55 pm, Tuesday, September 15, 2009 (2 months ago)
4087
yboris says:

Please glance at my code if you have the time:
everything works except that I can't get my lsslider to animate. The code for that is in there - just uncomment it!

http://www.yboris.com/private/temp/autohide.rar

Thank you!

11:55 am (2 months ago)
4087
yboris says:

WOOT - resolved :D (see thread on ls-universe for more info) otherwise here is what I did wrong: I kept the "B" in "2HABI" which means that the slider STARTS HIDDEN! Silly me.

this works great:


*Label Track

TrackX $resolutionx/2-50$
TrackY $resolutiony$
TrackWidth 85
TrackHeight 17
;TrackImage empty.png
TrackAlwaysOnTop True
TrackTransparencyMode fake

*TrackModuleHook !SliderHook "Volume" 0 0 7 slider.png sliderhandle.png 2HAI [VOLUME] 1

*ckHotspot "$resolutionx/2-70$" -30 140 150 "!execute [!LabelHide Foob][!LabelHide Fooba][!LabelMoveBy Track 0 -15 10 10]" "!execute [!LabelMoveBy Track 0 15 10 10][!LabelShow Foob][!LabelShow Fooba]"

09:54 pm (2 months ago)
 

Reply to this topic

You must register and become a member to post a reply.