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

Help: Rainmeter Skins • Re: How can I do scale Skin Size with pulling

$
0
0
Unfortunately, I can't make the corresponding elements bigger or smaller when dragging. I also have the problem that the skin scales back to the base size when it is updated. I'm not really getting to grips with it yet. :confused: :uhuh: What am I doing wrong or what have I forgotten :?
When you drag it you should alter the value of the variable elements (position and size of meters), same way as you did in your original code. Even if this is far from being perfect, here is a fist example. What I couldn't deal with is what do to when changing too much the aspect ration of the skin. There are solutions to this as well, but so far I did just simple things. So try the following code please and let me know what you trhink:

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1;-------------------------------------------------[Variables]MouseX=0MouseY=0background_W=300background_H=70transparenz=150ScaleFactor=1[Background]Meter=ShapeShape=Rectangle 2,2,#background_W#,#background_H#,10 | Fill Color 0,0,0,#transparenz# | StrokeWidth 2 | Stroke Color 0,0,0,140AntiAlias=1DynamicVariables=1[MeterRotatedRectangle]Meter=ShapeX=-17RY=-17RShape=Rectangle 0,0,15,15,10 | Extend MyModifiers1, MyModifiers2MyModifiers1=Fill Color 0,0,0,100 | StrokeWidth 0 | Stroke Color 0,0,0,0MyModifiers2=Rotate 0LeftMouseDownAction=[!SetVariable MouseX ($MouseX$-[#CURRENTSECTION#:W])][!SetVariable MouseY ($MouseY$-[#CURRENTSECTION#:H])][!CommandMeasure Mouse "Start"];---Measures---[Mouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetVariable background_W ($MouseX$-[#MouseX])][!SetVariable background_H ($MouseY$-[#MouseY])][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure Mouse "Stop"]RequireDragging=1DynamicVariables=1[Icon_Rainmeter]Group=HEADLINEMeter=ImageImageName=#@#Rainmeter.pngX=(#background_W#/15)Y=(#background_H#/5.83)W=(#background_W#/6.522)H=(#background_H#/1.458)AntiAlias=1DynamicVariables=1[Test String]Meter=StringFontFace=ArialFontStyle=BOLDFontColor=255,255,255,255InlineSetting=Shadow | 1 | 1 | 2 | 0,0,0,255FontSize=(#background_H#/2.8)X=(#background_W#/3)RY=(#background_H#/3.5)Text=RainmeterAntiAlias=1StringAlign=CenterDynamicVariables=1

Statistics: Posted by balala — Yesterday, 6:30 pm



Viewing all articles
Browse latest Browse all 1486

Trending Articles