It is currently May 6th, 2024, 11:42 am

Smooth !move of a config (help with calcs!)

Get help with creating, editing & fixing problems with skins
Hodoku
Posts: 19
Joined: February 21st, 2010, 2:21 am

Smooth !move of a config (help with calcs!)

Post by Hodoku »

So, I currently have a config that is basically a horizontal bar with icons on it. When I click on the leftmost icon, it drags the entire bar from -1850 to 0, revealing the hidden icons in the bar. Clicking on the icon again moves it back into hidden position. HOWEVER, this all happens in one move. Is there any way that I can make the move! function scroll the bar across the screen back and forth smoothly? I'm terrible with calcs, but I figure that there has to be a way... please help!

For reference, here is what I have for the bar and the button that moves it:


Code: Select all

[Background]
Meter=IMAGE
X=0
y=30
h=75
w=1920
Solidcolor=0,0,0,150

[SGB]
Meter=IMAGE
X=1850r
Y=4r
h=64
w=64
AntiAlias=1
ImageName=#CurrentPath#/img/games.png
LeftMouseUpAction=!Execute [!Move -0 0 Test][!ToggleMeter SGB][!ToggleMeter HGB]

[HGB]
Meter=IMAGE
X=0r
Y=0r
h=64
w=64
AntiAlias=1
ImageName=#CurrentPath#/img/games.png
LeftMouseUpAction=!Execute [!Move -1850 0 Test][!ToggleMeter SGB][!ToggleMeter HGB]
Hidden=1
Hodoku
Posts: 19
Joined: February 21st, 2010, 2:21 am

Re: Smooth !move of a config (help with calcs!)

Post by Hodoku »

er... anyone? I have no idea where to start, even...

Basically, if it can be done so that the config moves out a set number of times when i click the out button , and in a set number of times when i click the in button, I'd be set...
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Smooth !move of a config (help with calcs!)

Post by poiru »