Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1360

Help: Rainmeter Skins • Re: Control one skin with another

$
0
0
Sorry, but to be honest I don't really get what you would like. But for first let's take your problems one by one. So for first let's try to clarify this:

By the beginning I don't get what you mean by "button spamming" and what by "buggy thing". Could you explain these notions? By button spamming do you mean click onto the button? And what red is? I see the red rectangle around the skin, but when is that visible? What does it mean?
Oh, I thought I was so clear this time :( Well - I'll try my best here.

So, button spamming - the meter in blocky.ini:

Code:

[MeterButton]Meter=ImageSolidColor=255,255,255,100Y=145X=158W=30H=30LeftMouseUpAction=[!ToggleMeter "MeterBlocky"][!SetVariable FadePlayer "(275-#FadePlayer#)"][!SetTransparency "[#FadePlayer]" "ForumTestRun_1"][!Redraw]DynamicVariables=1
that you sent few post above triggers meter [MeterBlocky] - those are the red lines. These are supposed to block the whole main.ini skin. So, the code here:

Code:

[Rainmeter]Update=1000[Variables]FadePlayer=255[MeterButton]Meter=ImageSolidColor=255,255,255,1Y=145X=158W=30H=30LeftMouseUpAction=[!ToggleMeter "MeterBlocky"][!SetVariable FadePlayer "(275-#FadePlayer#)"][!SetTransparency "[#FadePlayer]" "ForumTestRun_1"][!Redraw]DynamicVariables=1[MeterButtonIMG]Meter=ImageImageName=#@#Images\control.pngY=135X=148W=50[MeterBlocky]Meter=Shape;-0,0,500,180,#Rad_BG# <- originalShape=Rectangle 0,0,460,210 | Fill Color 255,255,255,1 | Strokewidth 2 | Stroke Color 255,0,0,255Hidden=1
doesn't behave exactly like it should while I click the button fast, like you could see in the video I sent (the red lines dont appear everytime etc)
But that code with [CalcX] measure work properly:

Code:

[Rainmeter]Update=1000[Variables]FadePlayer=20X=255[CalcX]Measure=CalcFormula=(275 - #X#)DynamicVariables=1[MeterButton]Meter=ImageSolidColor=255,255,255,1Y=145X=68W=30H=30MouseOverAction=[!SetOption MeterButtonIMG ImageTint 255,1,1,255][!Update]MouseLeaveAction=[!SetOption MeterButtonIMG ImageTint 255,1,1,100][!Update]LeftMouseUpAction=[!ToggleMeter "MeterBlocky"][!UpdateMeasure "CalcX"][!SetVariable X "[CalcX]"][!SetTransparency "[CalcX]" "ForumTestRun_1"][!Redraw][MeterButtonIMG]Meter=ImageImageName=#@#Images\control.pngGreyscale=1ImageTint=255,1,1,100Y=135X=58W=50[MeterBlocky]Meter=Shape;-0,0,500,180,#Rad_BG# <- originalShape=Rectangle 0,0,460,210 | Fill Color 255,255,255,100 | Strokewidth 2 | Stroke Color 255,0,0,255Hidden=1
Here you can get the main.ini if you would like to test it yourself:

Code:

[Rainmeter]Update=1000[MeterMain]Meter=ShapeShape=Rectangle 0,0,460,210 |Fillcolor 113,200,153,255Hidden=0[MeterMainText]Meter=StringText=Music_PlayerFontSize=30FontWeight=900[MeterMainText2]Meter=StringText=Buttons to press:Y=70FontSize=18FontWeight=900[MeterButtonSTART]Meter=StringText="||"FontSize=21SolidColor=255,255,255,255Y=145X=230W=30H=30MouseOverAction=[!SetOption MeterButtonSTART SolidColor 255,255,255,100][!Update]MouseLeaveAction=[!SetOption MeterButtonSTART SolidColor 255,255,255,255][!Update]LeftMouseUpAction=[!ToggleMeter "MeterBlocky"][MeterButtonPREVIOUS]Meter=StringText=">"FontSize=25SolidColor=255,255,255,255Y=145X=270W=30H=30MouseOverAction=[!SetOption MeterButtonPREVIOUS SolidColor 255,255,255,100][!Update]MouseLeaveAction=[!SetOption MeterButtonPREVIOUS SolidColor 255,255,255,255][!Update]LeftMouseUpAction=[!ToggleMeter "MeterBlocky"]
Just put them like:
\SkinTest\main.ini (main skin)
\SkinTest\Blocky\blocky.ini

Also, in @Resources I have an image.png for the button (so you can change the SolidColor of the [MeterButton] to get it to show without the image.png)

EDIT1: My guess would be that [CalX] measure has DynamicVariables=1 in it so it updates faster? And without that - with just a pure

Code:

LeftMouseUpAction=[!ToggleMeter "MeterBlocky"][!SetVariable FadePlayer "(275-#FadePlayer#)"][!SetTransparency "[#FadePlayer]" "ForumTestRun_1"][!Redraw]
the skin doesn't work like it should? I don't know, just a guess.^^

Statistics: Posted by katt — Yesterday, 7:34 pm



Viewing all articles
Browse latest Browse all 1360

Trending Articles