It is currently April 18th, 2024, 9:27 pm
Get help with creating, editing & fixing problems with skins
Swester
Posts: 2 Joined: June 20th, 2020, 6:48 am
Post
by Swester » June 20th, 2020, 6:56 am
Hi everyone;
I'm new using rainmeter and I only modified some skins for now and I'm finally trying to do my first skin.
My skin just needs to print a random integer (from 0 to 9) into a dice. When clicked, the value should change. Here is my problem : it doesn't change.
Here is my code :
Code: Select all
[Variables]
color = 80,80,80
[Random]
Measure = Calc
Formula = Random
LowBound = 0
HighBound = 9
[DiceValue]
Meter = String
MeasureName = Random
Text = %1
DynamicVariables=1
AntiAlias = 1
FontColor = #color#
FontSize = 22
FontWeight = 700
X = 38
Y = 25
LeftMouseUpAction = [!Update][!Redraw]
[Dice]
Meter = Image
ImageTint = #color#
ImageName = D10-1.png
H = 100
LeftMouseUpAction = [!Update][!Redraw]
I just can't find why the random value doesn't update...
Thank you !
Last edited by Swester on June 20th, 2020, 7:14 am, edited 1 time in total.
Swester
Posts: 2 Joined: June 20th, 2020, 6:48 am
Post
by Swester » June 20th, 2020, 7:14 am
I finally found out :
I had to add the ligne
to [Random]
balala
Rainmeter Sage
Posts: 16144 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » June 20th, 2020, 9:14 am
Swester wrote: ↑ June 20th, 2020, 7:14 am
I finally found out :
I had to add the ligne
to [Random]
Another solution is to not set the dynamic variables, but to add an
UpdateRandom=1 option to the same [Random] measure.