It is currently April 27th, 2024, 7:20 pm

Display Logo

Get help with creating, editing & fixing problems with skins
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Display Logo

Post by eclectic-tech »

xenium wrote:Any idea ?
Haven't tested, but changing the section name, and references to it, should get it working:

Code: Select all

[MeasureCounterLogo]
Measure=Calc
Formula=Counter
IfCondition=MeasureCounterLogo < 5
IfTrueAction=[!HideMeterGroup "Skin"][!ShowMeterGroup "Logo"]
IfFalseAction=[!HideMeterGroup "Logo"][!ShowMeterGroup "Skin"][!DisableMeasure MeasureCounterLogo][!SetOptionGroup "Logo" UpdateDivider "-1"]
:welcome:
User avatar
balala
Rainmeter Sage
Posts: 16179
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Display Logo

Post by balala »

eclectic-tech wrote:Haven't tested, but changing the section name, and references to it, should get it working:

Code: Select all

[MeasureCounterLogo]
Measure=Calc
Formula=Counter
IfCondition=MeasureCounterLogo < 5
IfTrueAction=[!HideMeterGroup "Skin"][!ShowMeterGroup "Logo"]
IfFalseAction=[!HideMeterGroup "Logo"][!ShowMeterGroup "Skin"][!DisableMeasure MeasureCounterLogo][!SetOptionGroup "Logo" UpdateDivider "-1"]
:welcome:
Just came back after a two week holiday and now I'm glad to work again with Rainmeter.
In addition to eclectic-tech's post, I'd add just that instead of using explicitly the MeasureCounterLogo measure name into the Ifcondition (and eventually into the IfFalseAction) option(s), I probably would use the #CURRENTSECTION# built in variable. This way if later you're changing the name of the section (for any reason), you don't have to rewrite the appropriate options as well:

Code: Select all

[MeasureCounterLogo]
Measure=Calc
Formula=Counter
IfCondition=#CURRENTSECTION# < 5
IfTrueAction=[!HideMeterGroup "Skin"][!ShowMeterGroup "Logo"]
IfFalseAction=[!HideMeterGroup "Logo"][!ShowMeterGroup "Skin"][!DisableMeasure "#CURRENTSECTION#"][!SetOptionGroup "Logo" UpdateDivider "-1"]
Probably this is a small thing, but sometimes it can avoid a lot of headache.
User avatar
xenium
Posts: 868
Joined: January 4th, 2018, 9:52 pm

Re: Display Logo

Post by xenium »

eclectic-tech wrote:Haven't tested, but changing the section name, and references to it, should get it working:

Code: Select all

[MeasureCounterLogo]
Measure=Calc
Formula=Counter
IfCondition=MeasureCounterLogo < 5
IfTrueAction=[!HideMeterGroup "Skin"][!ShowMeterGroup "Logo"]
IfFalseAction=[!HideMeterGroup "Logo"][!ShowMeterGroup "Skin"][!DisableMeasure MeasureCounterLogo][!SetOptionGroup "Logo" UpdateDivider "-1"]
:welcome:
Thanks for the reply.
I found, however, what is the problem .
Normally, the skin contains some Meters that are initially hidden.
Adding to every meters Group = Skin, the [! ShowMeterGroup "Skin"]option in [
MeasureCounterLogo]
makes it appear on meters that should be hidden
I'm trying to see if I find any solution to solve this.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Display Logo

Post by eclectic-tech »

xenium wrote:Thanks for the reply.
I found, however, what is the problem .
Normally, the skin contains some Meters that are initially hidden.
Adding to every meters Group = Skin, the [! ShowMeterGroup "Skin"]option in [
MeasureCounterLogo]
makes it appear on meters that should be hidden
I'm trying to see if I find any solution to solve this.
I see... :(

Be aware you can have meters be part of multiple groups, allowing for more flexibility in hide/show actions.

Adding multiple groups might help:
Group=Skins | Logo | NotLogo

Manual: https://docs.rainmeter.net/manual/groups/