I'm kind of struggling to make a widged appear and dissapear as I wish !
I built a while ago a small widget that simply says "to draw next : [name of a character]" with a background and a reset button.
I had written it previously so it would measure a random number from 0 to 11, with each number tied to calc measures with If stuff that would then show a text meter for each value.
But thing is that now I want my widget to be hidden unless I'm hovering over the (always visible of course) reset button. While that was an okay task for all the non changing text and background, i still haven't figured it out for the changing text, since it needs to depend also of the random value rather than only the mouse hovering.
I tried setting said text meters in a group for hiding, but it'd override what I did with the value stuff, so all the text meters would display when hovering rather than just 1, resulting in a big blergh.
here are the parts of the code that are giving me an hard time :
Code: Select all
[measureRandom]
Measure=calc
Formula=Round(Random)
LowBound=0
HighBound=11
Update=-1
[Button]
Meter=IMAGE
ImageName=#@#reset button.png
LeftMouseUpAction=[!UpdateMeasure measureRandom][!Refresh]
DynamicVariables=1
X=110
Y=10
MouseOverAction=[!ShowMeterGroup Nonchangingstuff][!Redraw]
MouseLeaveAction=[!HideMeterGroup Nonchangingstuff][!Redraw]
[meterEdd]
Meter=String
MeterStyle=styleTwo
Text=edd
FontSize=8
X=54
Y=40
Hidden=1
[meterTom]
Meter=String
MeterStyle=styleTwo
Text=tom
FontSize=8
X=54
Y=40
Hidden=1
[measureEdd]
Measure=calc
Formula=measureRandom
IfEqualValue = 0
IfEqualAction=!RainmeterShowMeter meterEdd
[measureTom]
Measure=calc
Formula=measureRandom
IfEqualValue = 1
IfEqualAction=!RainmeterShowMeter meterTom
my goal is to find a way to add an additionnal if condition- or anything that would work, really, so that Edd meter would show only when the random value is 0 AND when my mouse is hovering over the reset button, and same for the Tom one exept it'd be for the value 1, and so on. think anyone could help me with that ??