It is currently April 18th, 2024, 2:05 am

Hidden/Groups

Get help with creating, editing & fixing problems with skins
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Hidden/Groups

Post by Alloutofmercy »

So, I finnally finished creating this skin. I want this music player to appear when I click on the launcher[Green]. I tried using

Code: Select all

[!Showmetergroup Imagemetergroup]
thing. But since most of the components were using

Code: Select all

Hidden=1
and

Code: Select all

Groups
it dod not work.
Is there any other way I can make like a button or something ?
You do not have the required permissions to view the files attached to this post.
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 16143
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Hidden/Groups

Post by balala »

Alloutofmercy wrote: December 6th, 2021, 7:52 pm Is there any other way I can make like a button or something ?
In order to get shown (or hidden) a group of meters with a !ShowMeterGroup (or the corresponding !HideMeterGroup) bang, you have to define the group, by adding the Group=Imagemetergroup option to all meters which you want to belong to that group. If you do this, the [!ShowMeterGroup "Imagemetergroup"] bang will definitely show up the meters belonging to the Imagemetergroup group, no matter how those meters have been hidden (with a Hidden=1 option added to the meter, with !HideMeter or !HideMeterGroup bangs, or anything).

However I'm not sure at all what you meant by the following code:
Alloutofmercy wrote: December 6th, 2021, 7:52 pm

Code: Select all

Groups
Have you added the name of the group?
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Hidden/Groups

Post by Alloutofmercy »

Yes. I added the group=music in all meters but it only worked for the background and everything else is just hidden. Here is the source code. I think it is because there are multiple instances of hidden and groups in some meterts

Code: Select all

[Rainmeter]
Update=1000
SkinWidth=500
AccurateText=1


[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0



[Variables]
OffSet=-190
State=1
U=[!UpdateMeasure MeasureSlider][!UpdateMeter *][!Redraw]
Bgcolor=50,100,330,0
Flash=255, 204, 214,250
@include=#@#\Variables.inc

[MeterMainbar]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,50,1080,5 | Extend MyModifiers1, MyModifiers2
MyModifiers1=StrokeWidth 0 | Stroke Color 0,120,255
MyModifiers2=Fill Color 47, 99, 44,120
UpdateDivider=-1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #State#"]

[TrayShape]
Meter=Shape
X=10
Y=12
Shape=Rectangle -9,-10,50,40,5 | StrokeWidth 0 | Extend FillColor
FillColor=Fill Color 0,158,255,170
Hidden=1
Antialias=1


[SysTray]
Meter=Image
ImageName=#@#\Images\angle-down.png
X=12
Y=10
W=25
MouseOverAction=[!ShowMeter "TrayShape"][!Redraw]
MouseLeaveAction=[!HideMeter "TrayShape"][!Redraw]
LeftMouseUpAction=[#@#\EXEs\ActivateTray.exe]
Antialias=1

[Background]
Meter=Shape
W=128
H=22
DynamicVariables=1
SolidColor=255,255,255,1

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute="":"N\A"
; Return value is 1 on error
IfEqualValue=1

[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"play.png","1":"pause.png","2":"play.png"

[Musicbuttonicon]
Meter=Image
ImageName=#@#\Images\music.png
X=12
Y=50
W=25
Antialias=1
MouseOverAction=[!ShowMeter Musicbuttonbg][!Redraw]
MouseLeaveAction=[!HideMeter Musicbuttonbg] [!Redraw]


[Musicbuttonbg]
Meter=Shape
X=10
Y=52
Shape=Rectangle -9,-10,50,40,5 | StrokeWidth 0 | Extend FillColor
FillColor=Fill Color 255,69,72,170
Hidden=1
Antialias=1
LeftMouseUpAction=[!ShowMeterGroup Music] [!Redraw]
RightMouseupAction=[!HideMeterGroup Music] [!Redraw]


[MusicBG]
Meter=Image
ImageName=#@#\Images\1549569.png
X=50
Y=50
W=300S
H=500
Group=Music
Hidden=1

#;----------MusicPlayers#

[CheckWelcome]
Measure=Calc
Formula=1
IfCondition=#showWelcome#=1
IfTrueAction=[!HideMeterGroup master][!ShowMeterGroup oobe][!Update]
Group=Music
Hidden=1

[PlayerManagement]
Measure=Calc
Formula=1
IfCondition=MeasureState = 1
IfTrueAction=[!SetOption PlayPause ImageName "#@#pause.png"][!Update]
IfFalseAction=[!SetOption PlayPause ImageName "#@#play.png"][!Update]
#IfCondition3=(#playerIndex# = 15) && (MeasureState = 1)
IfCondition2=(#playerIndex# = 15) && (MeasureState = 1)
IfTrueAction2=[!SetOption HeaderText Text "PLAYING FROM WEBNOWPLAYING"][!SetOption SourcePlayer MeasureName "MeasurePlayer"][!SetOption SourcePlayer Text "%1"][!Update]
IfCondition3=MeasureRating=5
IfTrueAction3=[!SetOption heart ImageName "#@#heartFull.png"][!SetOption heart ImageTint "#accent#"][!SetVariable heartRatingMode 0][!Update]
IfFalseAction3=[!SetOption heart ImageName "#@#heart.png"][!SetOption heart ImageTint "ffffff"][!SetVariable heartRatingMode 5][!Update]
IfCondition4=MeasureShuffle=1
IfTrueAction4=[!SetOption Shuffle ImageTint "#accent#"][!ShowMeter ShuffleIndicator][!Update]
IfFalseAction4=[!SetOption Shuffle ImageTint "ffffff"][!HideMeter ShuffleIndicator][!Update]
IfCondition5=(#checkIndicators#=1) && (MeasureShuffle=1)
IfTrueAction5=[!ShowMeter ShuffleIndicator][!SetVariable checkIndicators 0][!Update]
IfCondition6=MeasureRepeat=1
IfTrueAction6=[!SetOption Repeat ImageTint "#accent#"][!ShowMeter RepeatIndicator][!Update]
IfFalseAction6=[!SetOption Repeat ImageTint "ffffff"][!HideMeter RepeatIndicator][!Update]
IfCondition7=(#checkIndicators#=1) && (MeasureRepeat=1)
IfTrueAction7=[!ShowMeter RepeatIndicator][!SetVariable checkIndicators 0][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[PlayerManageExtra]
Measure=String
String=[MeasureState].[MeasureStatus]
IfMatch="0.0"
IfMatchAction=[!SetVariable cacheTitle "#defaultTitle#"][!SetVariable cacheArtist "#defaultArtist#"][!SetVariable cacheArtwork "#defaultArtwork#"][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[PlayerManageExtra2]
Measure=String
String=[MeasureTitle][MeasureArtist]
Substitute="#cacheTitle##cacheArtist#":"1","#defaultTitle##defaultArtist#":"1"
IfMatchMode=0
IfMatch="1"
IfNotMatchAction=[!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update][!Delay 2000][!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[SetPosition]
Measure=Calc
Formula=1
IfCondition=#setPosition#=1
IfTrueAction=[!CommandMeasure MeasureTitle "SetPosition #newPosition#"][!SetVariable setPosition 0][!Update][!Delay 50][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[GetScalePercent]
Measure=Calc
Formula=#scale#*100
DynamicVariables=1
Group=Music
Hidden=1

[MeasureProgressBarPosition]
Measure=Calc
# Calculates the current position of the tip of the filled portion of the progress bar
# Used for placing the handle and time popup
Formula=((MeasurePercentProgress/100)*(250*#scale#)+(25*#scale#))
Group=Music
Hidden=1

[ChameleonAA]
Measure=Plugin
Plugin=Chameleon
Type=File
#Path=[MeasureArtwork]
Path=#cacheArtwork#
DynamicVariables=1
Group=Music
Hidden=1

[MeasureAlbumArtColour]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Average
Group=Music
Hidden=1

[MeasureAlbumArtLum]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Luminance
IfCondition=MeasureAlbumArtLum >= 0.7
IfTrueAction=[!ShowMeter BackgroundDarknessOverlay][!Update]
IfFalseAction=[!HideMeter BackgroundDarknessOverlay][!Update]
Group=Music
Hidden=1


[SkinContainer]
Meter=Shape
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Group=Music
Hidden=1

[BackgroundDarknessOverlay]
Meter=Shape
Group=master | main
Container=SkinContainer
Shape=Rectangle 0,0,[SkinContainer:W],[SkinContainer:H] | FillColor 255,255,255,0 | StrokeWidth 0
OverlayGrad=270 | 00000033 ; 0.0 | 00000000 ; 1.0
Hidden=1
DynamicVariables=1
Group=Music
Hidden=1

[HoverIndicator]
Meter=Shape
Group=master
Shape=Ellipse ([#hoverMeter#:X]+([#hoverMeter#:W]/2)),([#hoverMeter#:Y]+([#hoverMeter#:H]/2)),(#hoverRad#*#scale#) | Fill Color ffffff33 | StrokeWidth 0
DynamicVariables=1
Hidden=1
Group=Music
Hidden=1

[Menu]
Meter=Image
Group=master | main
ImageName=#@#menu.png
W=(17*#scale#)
H=(17*#scale#)
X=320
Y=500
Padding=(3*#scale#),(3*#scale#),(3*#scale#),(3*#scale#)
SolidColor=00000001
MouseActionCursor=0
MouseOverAction=[!SetVariable hoverMeter "#CURRENTSECTION#"][!SetVariable hoverRad 16][!ShowMeter HoverIndicator][!Update]
MouseLeaveAction=[!HideMeter HoverIndicator][!Update]
#LeftMouseUpAction=[!CommandMeasure MainMenuAni "Execute 1"][!Update]
LeftMouseUpAction=[!HideMeterGroup coveredByMenu][!ShowMeterGroup MainMenu][!Update]
DynamicVariables=1
Tooltiptext=Menu
Group=Music
Hidden=1

[Artwork]
Meter=Image
Group=master | main
#MeasureName=MeasureArtwork
ImageName=#cacheArtwork#
W=(250*#scale#)
H=(250*#scale#)
X=75
Y=(67*#scale#)
DynamicVariables=1
Group=Music
Hidden=1

[Title]
Meter=String
Group=master | main | coveredByMenu
Container=TextGradientContainer
#MeasureName=MeasureTitle
Text=#cacheTitle#
X=80
Y=(344*#scale#)
FontFace=#fontBold#
FontSize=(16*#scale#)
FontColor=ffffff
StringAlign=LeftTop
AntiAlias=1
ClipString=1
DynamicVariables=1
Group=Music
Hidden=1

[Artist]
Meter=String
Group=master | main | coveredByMenu
Container=TextGradientContainer
#MeasureName=MeasureArtist
Text=#cacheArtist#
X=80
Y=(1*#scale#)R
FontFace=#fontSemibold#
FontSize=(13*#scale#)
FontColor=cccccccc
StringAlign=LeftTop
AntiAlias=1
ClipString=1
DynamicVariables=1
Group=Music
Hidden=1

[TextGradientContainer]
Meter=Shape
Group=master | main | coveredByMenu
Shape=Rectangle [Title:X],[Title:Y],(215*#scale#),(70*#scale#) | Fill LinearGradient TextContainerGrad | StrokeWidth 0
TextContainerGrad=180 | ffffff ; 0.0 | ffffff ; 0.92 | ffffff00 ; 1.0
DynamicVariables=1
Group=Music
Hidden=1


[ProgressBar]
Meter=Bar
Group=master | main | coveredByMenu
MeasureName=MeasurePercentProgress
BarColor=ffffff
SolidColor=ffffff22
X=80
Y=(412*#scale#)
W=(250*#scale#)
H=(2*#scale#)
BarOrientation=Horizontal
DynamicVariables=1
Group=Music
Hidden=1

[ProgressBarHandle]
# Just for appearance, has no functionality
Meter=Shape
Group=master | main | coveredByMenu
Shape=Ellipse [MeasureProgressBarPosition],(412.5*#scale#),(#progressHandleRad#*#scale#) | StrokeWidth 0
DynamicVariables=1
Group=Music
Hidden=1

[ProgressInteract]
Meter=Shape
Group=master | main | coveredByMenu
Shape=Rectangle [ProgressBar:X],([ProgressBar:Y]-(12*#scale#)),[ProgressBar:W],([ProgressBar:X]+(4*#scale#)) | Fill Color 255,255,255,0 | StrokeWidth 0
MouseActionCursor=0
# Hover actions modify the progressbar colour, increases the size of the handle, and shows the time popup group
MouseOverAction=[!SetOption ProgressBar BarColor "214, 19, 201,250"][!SetVariable progressHandleRad "6"][!ShowMeterGroup timePopup][!Update]
MouseLeaveAction=[!SetOption ProgressBar BarColor "ffffff"][!SetVariable progressHandleRad "4"][!HideMeterGroup timePopup][!Update]
LeftMouseDownAction=[!SetVariable newPosition "($MouseX:%$-(10-(10*($MouseX:%$/100))))"][!SetVariable setPosition "1"][!Update]
MouseScrollDownAction=[!CommandMeasure MeasureTitle "SetPosition -3"][!Update][!Delay 50][!Update]
MouseScrollUpAction=[!CommandMeasure MeasureTitle "SetPosition +3"][!Update][!Delay 50][!Update]
DynamicVariables=1
Group=Music
Hidden=1


[TimePopupContainer]
Meter=Shape
Group=master | timePopup
Shape=Rectangle 0,[TimePopupText:Y],(300*#scale#),[TimePopupText:H],3,3 | Fill Color ffffff | StrokeWidth 0
Hidden=1
DynamicVariables=1
Group=Music
Hidden=1


[TimePopupText]
Meter=String
Group=master | timePopup
MeasureName=MeasureProgress
Text=%1
X=[MeasureProgressBarPosition]
Y=([ProgressBar:Y]-(10*#scale#))
Padding=(7*#scale#),(4*#scale#),(7*#scale#),(1*#scale#)
FontFace=#fontSemibold#
FontSize=(11*#scale#)
FontColor=000000
StringAlign=CenterBottom
AntiAlias=1
Hidden=1
DynamicVariables=1
Group=Music
Hidden=1


[TimePopupBox]
Meter=Shape
Group=master | timePopup
Container=TimePopupContainer
Shape=Rectangle [TimePopupText:X],[TimePopupText:Y],[TimePopupText:W],[TimePopupText:H],3,3 | Fill Color ffffff | StrokeWidth 0
Hidden=1
DynamicVariables=1
Group=Music
Hidden=1

[ProgressTime]
Meter=String
Group=master | main | coveredByMenu
MeasureName=MeasureProgress
Text=%1
X=80
Y=(417*#scale#)
FontFace=#font#
FontSize=(8*#scale#)
FontColor=cccccccc
StringAlign=LeftTop
AntiAlias=1
DynamicVariables=1
Group=Music
Hidden=1

[Duration]
Meter=String
Group=master | main | coveredByMenu
MeasureName=MeasureDuration
Text=%1
X=320
Y=0r
FontFace=#font#
FontSize=(8*#scale#)
FontColor=cccccccc
StringAlign=RightTop
AntiAlias=1
DynamicVariables=1
Group=Music
Hidden=1

[Prev]
Meter=Image
Group=master | main | coveredByMenu
ImageName=#@#prev.png
W=(18*#scale#)
X=100
Y=(448*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "Previous"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[PlayPause]
Meter=Image
Group=master | main | coveredByMenu
ImageName=#@#play.png
W=(56*#scale#)
X=170
Y=(430*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "PlayPause"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Group=Music
Hidden=1

[Next]
Meter=Image
Group=master | main | coveredByMenu
ImageName=#@#next.png
W=(18*#scale#)
X=100r
Y=(448*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "Next"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Group=Music
Hidden=1




@include3=#@#assets\mainMenu.ini

[SettingsContainer]
Meter=Shape
Group=master | settingsBase
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Group=Music
Hidden=1

[SettingsContainer2]
Meter=Shape
Group=master | settingsBase
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Group=Music
Hidden=1

[SettingsBackground]
Meter=Shape
Group=master | settingsBase
Container=SettingsContainer
Shape=Rectangle 0,0,[SettingsContainer:W],[SettingsContainer:H] | Fill Color 162, 64, 163, 50 | StrokeWidth 0
Shape2=Rectangle 0,0,[SettingsContainer:W],(44*#scale#) | Fill Color 222326 | StrokeWidth 0
DynamicVariables=1
Hidden=1
Group=Music
Hidden=1

[SettingsBackButton]
Meter=Ima     ter | settingsBase
ImageName=#@#back.png
X=(8*#scale#)
Y=(16*#scale#)
W=(14*#scale#)
H=(14*#scale#)
LeftMouseUpAction=[!HideMeterGroup master][!ShowMeterGroup main][!SetVariable checkIndicators 1][!Update]
#LeftMouseUpAction=[!Refresh]
DynamicVariables=1
Hidden=1
Group=Music
Hidden=1

@include4=#@#assets\about.ini

@include5=#@#assets\playerPicker.ini

@include6=#@#assets\appearSettings.ini

@include7=#@#assets\oobe.ini

@include8=#@#assets\pickerDialog1.ini
@include9=#@#assets\pickerDialog2.ini

@include10=#@#assets\contextMenu.ini
You do not have the required permissions to view the files attached to this post.
BOOTY
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Hidden/Groups

Post by David8192 »

Alloutofmercy wrote: December 7th, 2021, 6:23 am Yes. I added the group=music in all meters but it only worked for the background and everything else is just hidden. Here is the source code. I think it is because there are multiple instances of hidden and groups in some meterts
I edited your code.
  • You are right. When you repeat a Key such as Group=, Rainmeter ignores the second one. To overcome this, you have to put Values in the same Key. Like: Group=master | Music. So, when you want to make a new group, just extend the old one. I removed the duplicates
  • Measures can have groups too, but in this case, it is not necessary. So I removed them
  • I don't think measures use Hidden=1. I removed that as well
  • You will need to correct this part of your code

    Code: Select all

    [SettingsBackButton]
    Meter=Ima     ter | settingsBase | Music
    ImageName=#@#back.png
    X=(8*#scale#)
    Y=(16*#scale#)
    W=(14*#scale#)
    H=(14*#scale#)
    LeftMouseUpAction=[!HideMeterGroup master][!ShowMeterGroup main][!SetVariable checkIndicators 1][!Update]
    #LeftMouseUpAction=[!Refresh]
    DynamicVariables=1
    Hidden=1
    

Code: Select all

[Rainmeter]
Update=1000
SkinWidth=500
AccurateText=1


[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0



[Variables]
OffSet=-190
State=1
U=[!UpdateMeasure MeasureSlider][!UpdateMeter *][!Redraw]
Bgcolor=50,100,330,0
Flash=255, 204, 214,250
@include=#@#\Variables.inc

[MeterMainbar]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,50,1080,5 | Extend MyModifiers1, MyModifiers2
MyModifiers1=StrokeWidth 0 | Stroke Color 0,120,255
MyModifiers2=Fill Color 47, 99, 44,120
UpdateDivider=-1
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute #State#"]

[TrayShape]
Meter=Shape
X=10
Y=12
Shape=Rectangle -9,-10,50,40,5 | StrokeWidth 0 | Extend FillColor
FillColor=Fill Color 0,158,255,170
Hidden=1
Antialias=1


[SysTray]
Meter=Image
ImageName=#@#\Images\angle-down.png
X=12
Y=10
W=25
MouseOverAction=[!ShowMeter "TrayShape"][!Redraw]
MouseLeaveAction=[!HideMeter "TrayShape"][!Redraw]
LeftMouseUpAction=[#@#\EXEs\ActivateTray.exe]
Antialias=1

[Background]
Meter=Shape
W=128
H=22
DynamicVariables=1
SolidColor=255,255,255,1

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Substitute="":"N\A"
; Return value is 1 on error
IfEqualValue=1

[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"play.png","1":"pause.png","2":"play.png"

[Musicbuttonicon]
Meter=Image
ImageName=#@#\Images\music.png
X=12
Y=50
W=25
Antialias=1
MouseOverAction=[!ShowMeter Musicbuttonbg][!Redraw]
MouseLeaveAction=[!HideMeter Musicbuttonbg] [!Redraw]


[Musicbuttonbg]
Meter=Shape
X=10
Y=52
Shape=Rectangle -9,-10,50,40,5 | StrokeWidth 0 | Extend FillColor
FillColor=Fill Color 255,69,72,170
Hidden=1
Antialias=1
LeftMouseUpAction=[!ShowMeterGroup Music] [!Redraw]
RightMouseupAction=[!HideMeterGroup Music] [!Redraw]


[MusicBG]
Meter=Image
ImageName=#@#\Images\1549569.png
X=50
Y=50
W=300S
H=500
Group=Music
Hidden=1

#;----------MusicPlayers#

[CheckWelcome]
Measure=Calc
Formula=1
IfCondition=#showWelcome#=1
IfTrueAction=[!HideMeterGroup master][!ShowMeterGroup oobe][!Update]

[PlayerManagement]
Measure=Calc
Formula=1
IfCondition=MeasureState = 1
IfTrueAction=[!SetOption PlayPause ImageName "#@#pause.png"][!Update]
IfFalseAction=[!SetOption PlayPause ImageName "#@#play.png"][!Update]
#IfCondition3=(#playerIndex# = 15) && (MeasureState = 1)
IfCondition2=(#playerIndex# = 15) && (MeasureState = 1)
IfTrueAction2=[!SetOption HeaderText Text "PLAYING FROM WEBNOWPLAYING"][!SetOption SourcePlayer MeasureName "MeasurePlayer"][!SetOption SourcePlayer Text "%1"][!Update]
IfCondition3=MeasureRating=5
IfTrueAction3=[!SetOption heart ImageName "#@#heartFull.png"][!SetOption heart ImageTint "#accent#"][!SetVariable heartRatingMode 0][!Update]
IfFalseAction3=[!SetOption heart ImageName "#@#heart.png"][!SetOption heart ImageTint "ffffff"][!SetVariable heartRatingMode 5][!Update]
IfCondition4=MeasureShuffle=1
IfTrueAction4=[!SetOption Shuffle ImageTint "#accent#"][!ShowMeter ShuffleIndicator][!Update]
IfFalseAction4=[!SetOption Shuffle ImageTint "ffffff"][!HideMeter ShuffleIndicator][!Update]
IfCondition5=(#checkIndicators#=1) && (MeasureShuffle=1)
IfTrueAction5=[!ShowMeter ShuffleIndicator][!SetVariable checkIndicators 0][!Update]
IfCondition6=MeasureRepeat=1
IfTrueAction6=[!SetOption Repeat ImageTint "#accent#"][!ShowMeter RepeatIndicator][!Update]
IfFalseAction6=[!SetOption Repeat ImageTint "ffffff"][!HideMeter RepeatIndicator][!Update]
IfCondition7=(#checkIndicators#=1) && (MeasureRepeat=1)
IfTrueAction7=[!ShowMeter RepeatIndicator][!SetVariable checkIndicators 0][!Update]
DynamicVariables=1

[PlayerManageExtra]
Measure=String
String=[MeasureState].[MeasureStatus]
IfMatch="0.0"
IfMatchAction=[!SetVariable cacheTitle "#defaultTitle#"][!SetVariable cacheArtist "#defaultArtist#"][!SetVariable cacheArtwork "#defaultArtwork#"][!Update]
DynamicVariables=1

[PlayerManageExtra2]
Measure=String
String=[MeasureTitle][MeasureArtist]
Substitute="#cacheTitle##cacheArtist#":"1","#defaultTitle##defaultArtist#":"1"
IfMatchMode=0
IfMatch="1"
IfNotMatchAction=[!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update][!Delay 2000][!SetVariable cacheTitle "[MeasureTitle]"][!SetVariable cacheArtist "[MeasureArtist]"][!SetVariable cacheArtwork "[MeasureArtwork]"][!Update]
DynamicVariables=1

[SetPosition]
Measure=Calc
Formula=1
IfCondition=#setPosition#=1
IfTrueAction=[!CommandMeasure MeasureTitle "SetPosition #newPosition#"][!SetVariable setPosition 0][!Update][!Delay 50][!Update]
DynamicVariables=1

[GetScalePercent]
Measure=Calc
Formula=#scale#*100
DynamicVariables=1

[MeasureProgressBarPosition]
Measure=Calc
# Calculates the current position of the tip of the filled portion of the progress bar
# Used for placing the handle and time popup
Formula=((MeasurePercentProgress/100)*(250*#scale#)+(25*#scale#))

[ChameleonAA]
Measure=Plugin
Plugin=Chameleon
Type=File
#Path=[MeasureArtwork]
Path=#cacheArtwork#
DynamicVariables=1

[MeasureAlbumArtColour]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Average

[MeasureAlbumArtLum]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonAA
Color=Luminance
IfCondition=MeasureAlbumArtLum >= 0.7
IfTrueAction=[!ShowMeter BackgroundDarknessOverlay][!Update]
IfFalseAction=[!HideMeter BackgroundDarknessOverlay][!Update]


[SkinContainer]
Meter=Shape
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Group=Music
Hidden=1

[BackgroundDarknessOverlay]
Meter=Shape
Group=master | main | Music
Container=SkinContainer
Shape=Rectangle 0,0,[SkinContainer:W],[SkinContainer:H] | FillColor 255,255,255,0 | StrokeWidth 0
OverlayGrad=270 | 00000033 ; 0.0 | 00000000 ; 1.0
Hidden=1
DynamicVariables=1

[HoverIndicator]
Meter=Shape
Group=master | Music
Shape=Ellipse ([#hoverMeter#:X]+([#hoverMeter#:W]/2)),([#hoverMeter#:Y]+([#hoverMeter#:H]/2)),(#hoverRad#*#scale#) | Fill Color ffffff33 | StrokeWidth 0
DynamicVariables=1
Hidden=1

[Menu]
Meter=Image
Group=master | main | Music
ImageName=#@#menu.png
W=(17*#scale#)
H=(17*#scale#)
X=320
Y=500
Padding=(3*#scale#),(3*#scale#),(3*#scale#),(3*#scale#)
SolidColor=00000001
MouseActionCursor=0
MouseOverAction=[!SetVariable hoverMeter "#CURRENTSECTION#"][!SetVariable hoverRad 16][!ShowMeter HoverIndicator][!Update]
MouseLeaveAction=[!HideMeter HoverIndicator][!Update]
#LeftMouseUpAction=[!CommandMeasure MainMenuAni "Execute 1"][!Update]
LeftMouseUpAction=[!HideMeterGroup coveredByMenu][!ShowMeterGroup MainMenu][!Update]
DynamicVariables=1
Tooltiptext=Menu
Hidden=1

[Artwork]
Meter=Image
Group=master | main | Music
#MeasureName=MeasureArtwork
ImageName=#cacheArtwork#
W=(250*#scale#)
H=(250*#scale#)
X=75
Y=(67*#scale#)
DynamicVariables=1
Hidden=1

[Title]
Meter=String
Group=master | main | coveredByMenu | Music
Container=TextGradientContainer
#MeasureName=MeasureTitle
Text=#cacheTitle#
X=80
Y=(344*#scale#)
FontFace=#fontBold#
FontSize=(16*#scale#)
FontColor=ffffff
StringAlign=LeftTop
AntiAlias=1
ClipString=1
DynamicVariables=1
Hidden=1

[Artist]
Meter=String
Group=master | main | coveredByMenu | Music
Container=TextGradientContainer
#MeasureName=MeasureArtist
Text=#cacheArtist#
X=80
Y=(1*#scale#)R
FontFace=#fontSemibold#
FontSize=(13*#scale#)
FontColor=cccccccc
StringAlign=LeftTop
AntiAlias=1
ClipString=1
DynamicVariables=1
Hidden=1

[TextGradientContainer]
Meter=Shape
Group=master | main | coveredByMenu | Music
Shape=Rectangle [Title:X],[Title:Y],(215*#scale#),(70*#scale#) | Fill LinearGradient TextContainerGrad | StrokeWidth 0
TextContainerGrad=180 | ffffff ; 0.0 | ffffff ; 0.92 | ffffff00 ; 1.0
DynamicVariables=1
Hidden=1


[ProgressBar]
Meter=Bar
Group=master | main | coveredByMenu | Music
MeasureName=MeasurePercentProgress
BarColor=ffffff
SolidColor=ffffff22
X=80
Y=(412*#scale#)
W=(250*#scale#)
H=(2*#scale#)
BarOrientation=Horizontal
DynamicVariables=1
Hidden=1

[ProgressBarHandle]
# Just for appearance, has no functionality
Meter=Shape
Group=master | main | coveredByMenu | Music
Shape=Ellipse [MeasureProgressBarPosition],(412.5*#scale#),(#progressHandleRad#*#scale#) | StrokeWidth 0
DynamicVariables=1
Hidden=1

[ProgressInteract]
Meter=Shape
Group=master | main | coveredByMenu | Music
Shape=Rectangle [ProgressBar:X],([ProgressBar:Y]-(12*#scale#)),[ProgressBar:W],([ProgressBar:X]+(4*#scale#)) | Fill Color 255,255,255,0 | StrokeWidth 0
MouseActionCursor=0
# Hover actions modify the progressbar colour, increases the size of the handle, and shows the time popup group
MouseOverAction=[!SetOption ProgressBar BarColor "214, 19, 201,250"][!SetVariable progressHandleRad "6"][!ShowMeterGroup timePopup][!Update]
MouseLeaveAction=[!SetOption ProgressBar BarColor "ffffff"][!SetVariable progressHandleRad "4"][!HideMeterGroup timePopup][!Update]
LeftMouseDownAction=[!SetVariable newPosition "($MouseX:%$-(10-(10*($MouseX:%$/100))))"][!SetVariable setPosition "1"][!Update]
MouseScrollDownAction=[!CommandMeasure MeasureTitle "SetPosition -3"][!Update][!Delay 50][!Update]
MouseScrollUpAction=[!CommandMeasure MeasureTitle "SetPosition +3"][!Update][!Delay 50][!Update]
DynamicVariables=1
Hidden=1


[TimePopupContainer]
Meter=Shape
Group=master | timePopup | Music
Shape=Rectangle 0,[TimePopupText:Y],(300*#scale#),[TimePopupText:H],3,3 | Fill Color ffffff | StrokeWidth 0
Hidden=1
DynamicVariables=1
Hidden=1


[TimePopupText]
Meter=String
Group=master | timePopup | Music
MeasureName=MeasureProgress
Text=%1
X=[MeasureProgressBarPosition]
Y=([ProgressBar:Y]-(10*#scale#))
Padding=(7*#scale#),(4*#scale#),(7*#scale#),(1*#scale#)
FontFace=#fontSemibold#
FontSize=(11*#scale#)
FontColor=000000
StringAlign=CenterBottom
AntiAlias=1
Hidden=1
DynamicVariables=1
Hidden=1


[TimePopupBox]
Meter=Shape
Group=master | timePopup | Music
Container=TimePopupContainer
Shape=Rectangle [TimePopupText:X],[TimePopupText:Y],[TimePopupText:W],[TimePopupText:H],3,3 | Fill Color ffffff | StrokeWidth 0
Hidden=1
DynamicVariables=1
Hidden=1

[ProgressTime]
Meter=String
Group=master | main | coveredByMenu | Music
MeasureName=MeasureProgress
Text=%1
X=80
Y=(417*#scale#)
FontFace=#font#
FontSize=(8*#scale#)
FontColor=cccccccc
StringAlign=LeftTop
AntiAlias=1
DynamicVariables=1
Hidden=1

[Duration]
Meter=String
Group=master | main | coveredByMenu | Music
MeasureName=MeasureDuration
Text=%1
X=320
Y=0r
FontFace=#font#
FontSize=(8*#scale#)
FontColor=cccccccc
StringAlign=RightTop
AntiAlias=1
DynamicVariables=1
Hidden=1

[Prev]
Meter=Image
Group=master | main | coveredByMenu | Music
ImageName=#@#prev.png
W=(18*#scale#)
X=100
Y=(448*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "Previous"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Hidden=1

[PlayPause]
Meter=Image
Group=master | main | coveredByMenu | Music
ImageName=#@#play.png
W=(56*#scale#)
X=170
Y=(430*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "PlayPause"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Hidden=1

[Next]
Meter=Image
Group=master | main | coveredByMenu | Music
ImageName=#@#next.png
W=(18*#scale#)
X=100r
Y=(448*#scale#)
SolidColor=ffffff01
ImageTint=ffffff
MouseActionCursor=0
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint "ffffff"][!Update]
LeftMouseDownAction=[!SetOption #CURRENTSECTION# ImageTint "999999"][!CommandMeasure MeasureTitle "Next"][!Update][!Delay 50][!Update]
LeftMouseUpAction=[!SetOption #CURRENTSECTION# ImageTint "bbbbbb"][!Update]
DynamicVariables=1
Hidden=1




@include3=#@#assets\mainMenu.ini

[SettingsContainer]
Meter=Shape
Group=master | settingsBase | Music
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Hidden=1

[SettingsContainer2]
Meter=Shape
Group=master | settingsBase | Music
Shape=Rectangle 0,0,(300*#scale#),(567*#scale#),#cornerRadius#,#cornerRadius# | Fill Color ffffff | StrokeWidth 0
DynamicVariables=1
Hidden=1

[SettingsBackground]
Meter=Shape
Group=master | settingsBase | Music
Container=SettingsContainer
Shape=Rectangle 0,0,[SettingsContainer:W],[SettingsContainer:H] | Fill Color 162, 64, 163, 50 | StrokeWidth 0
Shape2=Rectangle 0,0,[SettingsContainer:W],(44*#scale#) | Fill Color 222326 | StrokeWidth 0
DynamicVariables=1
Hidden=1

[SettingsBackButton]
Meter=Ima     ter | settingsBase | Music
ImageName=#@#back.png
X=(8*#scale#)
Y=(16*#scale#)
W=(14*#scale#)
H=(14*#scale#)
LeftMouseUpAction=[!HideMeterGroup master][!ShowMeterGroup main][!SetVariable checkIndicators 1][!Update]
#LeftMouseUpAction=[!Refresh]
DynamicVariables=1
Hidden=1

@include4=#@#assets\about.ini

@include5=#@#assets\playerPicker.ini

@include6=#@#assets\appearSettings.ini

@include7=#@#assets\oobe.ini

@include8=#@#assets\pickerDialog1.ini
@include9=#@#assets\pickerDialog2.ini

@include10=#@#assets\contextMenu.ini
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Hidden/Groups

Post by Alloutofmercy »

Wow Thankyou soo much! You are my hero
BOOTY
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Re: Hidden/Groups

Post by Alloutofmercy »

Also is there any way I can apply any animations or make it smoother and more resposive?
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 16143
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Hidden/Groups

Post by balala »

Alloutofmercy wrote: December 7th, 2021, 6:23 am Yes. I added the group=music in all meters but it only worked for the background and everything else is just hidden. Here is the source code. I think it is because there are multiple instances of hidden and groups in some meterts
In addition to what David8192 said, note one more detail: even if not forbidden, it's not a good idea either to use the same name for a group of meters and a group of measures. You have a group of meters named Group=Music AND a group of measures with the same name. Recommend to replace any of these group names with something individual. Group=Music for the meters and Group=MusicMeasures for measures for instance. Don't use the same name. Once again, using the same name is not a mistake and can be applied, however can create a lot of confusion over time.
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Hidden/Groups

Post by David8192 »

Alloutofmercy wrote: December 7th, 2021, 11:26 am Wow Thankyou soo much! You are my hero
I wouldn't call myself a hero, per se. But happy to help.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
David8192
Posts: 246
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Hidden/Groups

Post by David8192 »

Alloutofmercy wrote: December 7th, 2021, 11:29 am Also is there any way I can apply any animations or make it smoother and more resposive?
animations. I am not sure how you would like to implement this.
smoother and more resposive. I do not have all your files, but at this point, you will need to do some debugging.
For example: While it is fine to have

Code: Select all

Measure=Plugin
Plugin=NowPlaying.dll
For new skins, it is recommended and a bit more efficient to use
Measure=NowPlaying
This is because NowPlaying has been converted from a plugin to a measure.
Also, Measures are a bit more efficient than Plugins.

On Calc Measures, DynamicVariables=1 is not necessary because they are resolved dynamically by default.
You can remove the DynamicVariables=1 from the Calc measures.
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X