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

Help: Rainmeter Skins • Re: Hide & Seek

$
0
0
Hi :welcome:

[Yincognito] You gave me the example code for expanding the buttons. I've implemented it in my code.

Since I might want to add a text field later to manually specify the skin W, I aligned everything using [Background:W] so that everything adjusts when the button is resized.

In your example code, the variable values ​​of Addon1and Addon2 change between 0, 3, and 4. So far, so good. I've tried reducing the text field's size in the opposite direction so that it doesn't expand. Which works to some extent. (take a look at the GIF)

But I have a small error in the formula. (Perhaps the formula doesn't make sense). :confused:



Current Code section

Code:

[TextField]Meter=ShapeX=(60*#ScaleX#)Y=5W=(((#Addon1#=3) ? ([Background:W]-200-40) : ([Background:W]-200)) - ((#Addon2#=4) ? 40 : (0)))Shape=Rectangle (0*#ScaleX#),0,([TextField:W]),40,10 | Fill Color 0,0,0,1 | StrokeWidth 2 | Stroke Color 150,150,150,150LeftMouseUpAction=[!CommandMeasure InputText "ExecuteBatch 1"]DynamicVariables=1
ezgif-55dc03c038fe8a.gif

Statistics: Posted by Rooky_89 — Today, 12:40 pm



Viewing all articles
Browse latest Browse all 1489

Trending Articles