06-08-2011, 12:59 AM
I'm doing a floorplan based UI, and for each light, I was planning to have a plan representation of the light.
If the light is off, I want an outline of the light with a black center.
If the light is on, I want an outline of the light with white dashes coming out and the center representing the dim level of the light (white for full on, gray for partially on).
The dashes indicate the light is on even if the dim state is very low. I have two fields for each light: Boolean for on/off, and 0-127 for level.
I'm trying to come up with an elegant/efficient implementation (or perhaps an alternate UI). So far I'm using a boolean image for the white dashes based on the boolean field, and a static image for the dim level whose opacity is controlled by an event which watches the dim_level field.
This works, but I'm worried that creating triggers and events for all of my lights (I have about 60 dimmer circuits) will be very hard on the system. Also each circuit has several lights, so there could be quite a number of these widgets...
I looked at progress bars, but they don't quite do what I want. Also instead of the opacity controlled static image I could use a color controlled area color fill, but the color fill would need an overlay image so it produced the right shape.
Thanks for any ideas you might have -- Bob
If the light is off, I want an outline of the light with a black center.
If the light is on, I want an outline of the light with white dashes coming out and the center representing the dim level of the light (white for full on, gray for partially on).
The dashes indicate the light is on even if the dim state is very low. I have two fields for each light: Boolean for on/off, and 0-127 for level.
I'm trying to come up with an elegant/efficient implementation (or perhaps an alternate UI). So far I'm using a boolean image for the white dashes based on the boolean field, and a static image for the dim level whose opacity is controlled by an event which watches the dim_level field.
This works, but I'm worried that creating triggers and events for all of my lights (I have about 60 dimmer circuits) will be very hard on the system. Also each circuit has several lights, so there could be quite a number of these widgets...
I looked at progress bars, but they don't quite do what I want. Also instead of the opacity controlled static image I could use a color controlled area color fill, but the color fill would need an overlay image so it produced the right shape.
Thanks for any ideas you might have -- Bob