I have created a skin (A) that switches between showing/hiding two skins (B and C) on the same spot.
Now I want the skin (A) to switch between two images (i.e. 'Skin B'/'Skin C') so I know witch to switch to.
I have searched the web for tips, but haven't found anything yet. How to do this?
It is currently April 25th, 2024, 11:53 am
Switch between images on click
-
- Posts: 19
- Joined: April 30th, 2012, 12:33 pm
-
- Posts: 608
- Joined: February 7th, 2011, 7:27 pm
- Location: Thessaloniki, GR
Re: Switch between images on click
Please elaborate a little on what you are trying to do. You want a "button" that upon pressing, will hide an image and display another one on the same spot as the other image?
-
- Posts: 19
- Joined: April 30th, 2012, 12:33 pm
Re: Switch between images on click
OK, might have been a somewhat fuzy description
I now have two skins showing text, lets call them 'Skin A' and 'Skin B'. I have placed them on the same spot on the screen so they are overlapping.
I then have created a third skin, lets call it 'Skin C'. The function of Skin C is to act as a button and when it is clicked, it will switch which of Skin A and Skin B is to shown (by using ToggleFade).
So... when Rainmeter starts, Skin A is shown and Skin B is hidden. When I click Skin C, Skin A is hidden and Skin B is shown. I now want an image to show in Skin C that will switch when pressed.
I now have two skins showing text, lets call them 'Skin A' and 'Skin B'. I have placed them on the same spot on the screen so they are overlapping.
I then have created a third skin, lets call it 'Skin C'. The function of Skin C is to act as a button and when it is clicked, it will switch which of Skin A and Skin B is to shown (by using ToggleFade).
So... when Rainmeter starts, Skin A is shown and Skin B is hidden. When I click Skin C, Skin A is hidden and Skin B is shown. I now want an image to show in Skin C that will switch when pressed.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Switch between images on click
Code: Select all
[Variables]
Num=0
[Image]
Meter=Image
ImageName=Image#Num#.png
LeftMouseUpAction=!SetVariable Num (1-#Num#)
DynamicVariables=1
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 19
- Joined: April 30th, 2012, 12:33 pm
Re: Switch between images on click
Thanks.
Looks like a smart solution
Looks like a smart solution