It is currently September 29th, 2024, 7:29 pm

Button Meter

General topics related to Rainmeter.
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Button Meter

Post by Fuzzybat23 »

So.. the page for Button meter states that All general meter options are valid except for w and h.

I tried making a skin with a button and the button only shows up if the PNG is in the same directory as the skins ini file. I tried putting it in another directory (Resources) and then did this:

Code: Select all

[Variables]
Icon_Path="#SKINSPATH#/Skinname/Resources"

[ButtonMeter]
Meter=Button
ButtonImage="Button.png"
Path=#Icon_Path#
And the button refuses to show up. If I move the png to the same directory and delete the Path line in the ButtonMeter and reload the skin, it suddenly works again. Anyone else run across this problem?
User avatar
DigitalSpectrum
Posts: 32
Joined: January 17th, 2013, 1:45 pm
Location: Canada

Re: Button Meter

Post by DigitalSpectrum »

I would guess it's just something wrong with the path.

Is the Resources folder really called "Resources" or is it "@Resources"

You can call the @Resources folder directly by using

Code: Select all

ButtonImage=#@#\Button.png
Also maybe try backslashes (\) instead of forward slashes (/).
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Button Meter

Post by smurfier »

Path is not a general meter option, it is an option only for the Image meter.
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 . . .
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Re: Button Meter

Post by Fuzzybat23 »

Okay that makes sense, maybe they should make path an opion for button meters as well, then. would make sense being as how both meter types rely on a path to their respective images.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Button Meter

Post by Seahorse »

Dump them in folders of their own in @Resources?

ButtonImage=#@#Buttons\MyButton.png

ImageName=#@#Images\HappyFace.png
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Button Meter

Post by smurfier »

Fuzzybat23 wrote:Okay that makes sense, maybe they should make path an opion for button meters as well, then. would make sense being as how both meter types rely on a path to their respective images.
Path is an artifact of a bygone era, before [i]%N[/i] was allowed in the ImageName option.
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 . . .
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Re: Button Meter

Post by Fuzzybat23 »

i like using path in image meters because it makes for cleaner code when I use styles if a lot if my image meters use a lot of the same info: x, y, w, h, imagealpha, grayscale, hidden, dynamicvariables and so on and so forth. what was the %N modifier, though?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Button Meter

Post by smurfier »

It allows for the usage of Measure values in the ImageName option.

Code: Select all

[SomeMeter]
Meter=Image
MeasureName=SomeMeasure
MeasureName2=SomeOtherMeasure
ImageName=%1-%2.png
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 . . .
User avatar
Fuzzybat23
Posts: 44
Joined: May 10th, 2013, 1:21 am

Re: Button Meter

Post by Fuzzybat23 »

where now all you have to do is use:


imagename=[measure1]-[measure2].png, right?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Button Meter

Post by smurfier »

Using the method that I posted (which has been available for quite a while now) does not require the use of Dynamic Variables.
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 . . .