what I mean with ImageName or ButtonImage Improvement as feature (there might be work arounds.
This is a sample setup (so this DOES NOT WORK) so dont copy paste blindly!
Code: Select all
[MeasureMS1L]
Measure=Calc
Formula=#MS1L#
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeterGroup "L1"][!SetVariable MS2L "0"]{.......][!Redraw]
IfFalseAction=[!HideMeterGroup "L1"][!Redraw]
DynamicVariables=1
let check the Meter section:
Code: Select all
[MS1L]
Meter=BUTTON
ButtonImage=#L1Sub#
X=670
Y=0
Hidden=1
DynamicVariables=1
LeftMouseUpAction=[!SetVariable MS1L "(1-#MS1L#)"][!SetVariable MS2L "0"][.....][!Redraw]
SolidColor=0,0,0,1
Code: Select all
[MeasureMS1Lp]
Measure=Calc
Formula=(([MeasureMS1L] < 1 ) ? 1 : 0)
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!SetOption MS1L ButtonImage "#L1SubA#"][!UpdateMeter "MS1L"][!Redraw]
IfFalseAction=[!SetOption MS1L ButtonImage "#L1Sub#"][!UpdateMeter "MS1L"][!Redraw]
DynamicVariables=1
while the variable Exist, the part now is, when the condition is FALSE, it shows the active buttonimage (which is wrong)
insert it directly works, but it DOES NOT reversed when FALSE.
so what improvement feature is usefull?
Instead of a second measure or meter to read this nicely, I hope for the following code for ImageName or ButtonImage
when a measure TRUE or FALSE is presented like this:
Code: Select all
[MS1L]
Meter=BUTTON
ButtonImage=#L1Sub# : #L1SubA#
X=670
Y=0
Hidden=1
DynamicVariables=1
LeftMouseUpAction=[!SetVariable MS1L "(1-#MS1L#)"][!SetVariable MS2L "0"][.....][!Redraw]
SolidColor=0,0,0,1
so basicly it would read around this:
Code: Select all
ButtonImage=#L1Sub#
Code: Select all
ButtonImage=#L1SUB# : #L1SubA#
while this is in a variable, I don't get it to work, unless this MUST be hardcoded which I want to avoid.
while this might be doable in .lua, I got no knowledge of it, but this might be a easy way to control images easy and smoothly.
specially if you have a bunch to control, and also save some extra coding.
Do you think this is a nice feature to control ButtonImage easier if measure exist?