image state/variable

Help each other out

image state/variable

Postby foolio on Tue Aug 29, 2006 10:20 pm

I'm trying to absorb xlobby too much too fast - sorry for the manny questions! I'm sure they've been asked before:

is there a way to change the icon of an image based on the state of a variable?
-classic example would be light bulb lighting up when the variable describing the state of a light is on.
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby P3rv3rt B3ar on Tue Aug 29, 2006 10:23 pm

With my xPerT plugin its possible. (check out if-variables and loadpic)
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland

Postby P3rv3rt B3ar on Tue Aug 29, 2006 10:43 pm

It is too long time since i was tweaking xPerT so, i cant remember notation presice... but i would try something like:

plugin>xPerT>loadpic>normal>[ifXXX>your_variable>desired_value>pic1.jpg]

where ifXXX would be ifless, ifequal or ifnotequal whicever matches best for your need. Since there is no else u need other text field (or button) for pic2.jpg with condition reversed.
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland