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

Help: Rainmeter Skins • Re: Color-Slider -> Consultation

$
0
0
I am back with an interesting Case

Let me describe the error.
When you normally select the sliders for the colors, it works without any problems! With the scaling, the sliders follow the skin or the scaling. [GIF 1]

GIF1
works.gif
If the actual scaling is added after moving the color sliders, do the color sliders lose their position and follow the main skin in the scaling?. That will happend if you use the Color Sliders and Scaling for the Skin [GIF 2]
worksnot.gif
Thats the Main-Scale Code for the whole Skin to Scale:

Code:

[DragCorner]Meter=ImageX=-11RY=-11RW=10H=10SolidColor=255,255,255,255UpdateDivider=-1ToolTipText=ExpandMouseActionCursorName=SIZE_NWSELeftMouseDownAction=[!SetVariable MouseX ($MouseX$-[#CURRENTSECTION#:W])][!SetVariable MouseY ($MouseY$-[#CURRENTSECTION#:H])][!CommandMeasure Mouse "Start"];;--------------Measure Mouse--------------------------[Mouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetVariable ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,0.1,5))][!SetVariable ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,0.1,5))][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure Mouse "Stop"][!WriteKeyValue Variables ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,0.1,5))][!WriteKeyValue Variables ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,0.1,5))][!UpdateMeter *][!Redraw]RequireDragging=1DynamicVariables=1]

Code of the Color Slider Red (the same for Green and Blue)

Code:

[MeasureMouseR]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetOption SliderRed X "(Clamp($MouseX$,(135*#ScaleX#),(175*#ScaleX#)))"][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure MeasureMouseR "Stop"][!UpdateMeter *][!Delay 1000][!SetVariable Red [MeasureColorRed]][!WriteKeyValue Variables Red [MeasureColorRed]][!UpdateMeter *]RelativeToSkin=1RequireDragging=1DynamicVariables=1;;-----#MEASURES CALC-----;[MeasureColorRed]Measure=CalcFormula=(Round((([SliderRed:X]-(135*#ScaleX#))*255)/(40*#ScaleX#)))MinValue=0MaxValue=255DynamicVariables=1;----------------------;RED;-----------------------[LineRed]Group=COLORMeter=ImageX=(135*#ScaleX#)Y=(25*#ScaleY#)W=(40*#ScaleX#)H=(7*#ScaleY#)SolidColor=[MeasureColorRed],0,0,255DynamicVariables=1Hidden=1[SliderRed]Group=COLORMeter=ImageX=(Round(135+#Red#/255*40)*#ScaleX#)Y=(24*#ScaleY#)W=(5*#ScaleX#)H=(8*#ScaleY#)SolidColor=255,255,255DynamicVariables=1Hidden=1LeftMouseDownAction=[!CommandMeasure MeasureMouseR "Start"]
-I tried to update the new Position of X for the RED Color Slider with [!UpdateMeasure [MeasureColorRed]]in the Main-Scale-Code but unfortunately this does not lead to the result either.
- DynamicVariables=1 is set.

??? My guess is that there is a lack of updating of a value ???

Thanks you for reading this and helping me :rosegift: :givelove:

Statistics: Posted by Rooky_89 — Yesterday, 11:40 pm



Viewing all articles
Browse latest Browse all 1538

Trending Articles