Hello,
I would like to get back into this topic.
At the beginning it was fine for me because it somehow worked, but over time you notice certain things and errors.
Maybe I can improve one or two things in my skin or it needs to be revised.
In the current gif you can see that the green line does not follow the skin when scaling.
Why does this happen > The new position is calculated (289*#ScaleX#)
What could be the cause here?
I would like to get back into this topic.
At the beginning it was fine for me because it somehow worked, but over time you notice certain things and errors.
Maybe I can improve one or two things in my skin or it needs to be revised.
In the current gif you can see that the green line does not follow the skin when scaling.
Why does this happen > The new position is calculated (289*#ScaleX#)
What could be the cause here?
Code:
[Variables]ScaleX=1ScaleY=1[Drag]Meter=ShapeX=(289*#ScaleX#)Y=(59*#ScaleY#)Shape=Line 0,0,0,0 | StrokeWidth 2 | Stroke Color 0,255,0,255Shape2=Line 10,0,10,10 | StrokeWidth 2 | Stroke Color 0,255,0,255Shape3=Arc 0,10,10,10,0,0,0 | StrokeWidth 2 | Stroke Color 0,255,0,255DynamicVariables=1ToolTipText=ExpandMouseActionCursorName=SIZE_NWSELeftMouseDownAction=[!SetVariable MouseX ($MouseX$-[#CURRENTSECTION#:W])][!SetVariable MouseY ($MouseY$-[#CURRENTSECTION#:H])][!CommandMeasure Mouse "Start"]Hidden=0;----------------------------------------;#MEASURES MOUSE#MEASURES MOUSE;----------------------------------------;[Mouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetVariable ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,0.1,3))][!SetVariable ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,0.1,3))][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure Mouse "Stop"][!WriteKeyValue Variables ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,0.1,3))][!WriteKeyValue Variables ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,0.1,3))][!UpdateMeter *][!Redraw]RequireDragging=1DynamicVariables=1
Yes, sometimes happensWhat's happening here is that we are setting BackgroundH and BackgroundW to the value of MouseY and MouseX. I added the + [&Dragger:W] and [&Dragger:H] to account for the size of the dragger, to make sure that it starts at the dragger and not before or after. That is important so the mouse dragging works fine, and I also noticed that without it the mouse plugin starts buggin, trying to open inexistent files for some reason lol.
Statistics: Posted by Rooky_89 — 9 minutes ago