It is currently May 7th, 2024, 2:34 pm

How to create a 3 button skin with 3 different states?

Get help with creating, editing & fixing problems with skins
User avatar
alphaprior
Posts: 9
Joined: April 20th, 2011, 6:37 pm

How to create a 3 button skin with 3 different states?

Post by alphaprior »

Hello there
I had a look in help but I couldnt understand how to create this:
I want to make a 3 button skin Turn Off - Restart - Logoff
every button must have a different image for up/down/over
and they must be inside a single box
like a single button but only the icons will change

For aesthetic purposes it would be best if I could create 3 different images that sit tight together so they look like one.
User avatar
Waldensamkeit
Posts: 83
Joined: March 15th, 2011, 12:39 pm
Location: Hamilton, New Jersey

Re: How to create a 3 button skin with 3 different states?

Post by Waldensamkeit »

It's really not that hard at all, more-so just tedious as the image dimensions and whatnot have to be very specific in placement and size..

Have a go with this tutorial(?)
Button Meter
User avatar
alphaprior
Posts: 9
Joined: April 20th, 2011, 6:37 pm

Re: How to create a 3 button skin with 3 different states?

Post by alphaprior »

I have seen the example but how I will make 3 different ones that sit together like one?
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: How to create a 3 button skin with 3 different states?

Post by santa_ryan »

Im not sure as to what you mean.

A Button meter is just 3 images of the exact same dimensions rolled into one image.
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
User avatar
alphaprior
Posts: 9
Joined: April 20th, 2011, 6:37 pm

Re: How to create a 3 button skin with 3 different states?

Post by alphaprior »

I explained in the 1st post exactly what I want.
1 skin with 3 different buttons each one with 3 different states up/down/over
so for example I have
Turn Off | Restart | Log Off
each button will have its own different images/states
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: How to create a 3 button skin with 3 different states?

Post by Chewtoy »

alphaprior wrote:I explained in the 1st post exactly what I want.
1 skin with 3 different buttons each one with 3 different states up/down/over
so for example I have
Turn Off | Restart | Log Off
each button will have its own different images/states
Then just create 3 different button meters with different images.

This is some good reading: http://rainmeter.net/cms/Rainmeter101-SkinTutorials
I don't think, therefore I'm not.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to create a 3 button skin with 3 different states?

Post by jsmorley »

So what you need is 3 .png files. Each one will be made up of a picture of whatever you want, three times side by side, equal in size and equally spaced in the .png file:

Like this:
firefox_b.png
Rainmeter will display 1/3 of each image when a .png like this is used in a Button meter. It will display the appropriate 1/3 depending on the "state".

So you make three of those, and put each one in its own Button meter, and you are all set.
You do not have the required permissions to view the files attached to this post.
User avatar
alphaprior
Posts: 9
Joined: April 20th, 2011, 6:37 pm

Re: How to create a 3 button skin with 3 different states?

Post by alphaprior »

this is the easy part
but how I'm gonna write the code so they appear all 3 buttons one next to other?
and appear like a single box with 3 buttons like this:
Untitled-1.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to create a 3 button skin with 3 different states?

Post by jsmorley »

Just use X and Y on your Button meters to lay them out.

[MeterBackGround]
Meter=Image
ImageName=ThatBackgroundImage.png
X=0
Y=0

[MeterButton1]
Meter=Button
ButtonImage=#CURRENTPATH#Button1.png
ButtonCommand=!Execute [SomeCommand]
X=5
Y=10

[MeterButton2]
Meter=Button
ButtonImage=#CURRENTPATH#Button2.png
ButtonCommand=!Execute [SomeCommand]
X=5R
Y=10

[MeterButton3]
Meter=Button
ButtonImage=#CURRENTPATH#Button3.png
ButtonCommand=!Execute [SomeCommand]
X=5R
Y=10

The "R" means "relative to the end of the previous meter".
User avatar
alphaprior
Posts: 9
Joined: April 20th, 2011, 6:37 pm

Re: How to create a 3 button skin with 3 different states?

Post by alphaprior »

aha, thats it!
thanx a lot!