true/false device state images in Control Pages

This is an archive of older posts. You can't add topics - rather, create a new topic in one of the forums above. You can still reply to topics in this forum though we encourage you to start a new topic in the forums above instead.
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

true/false device state images in Control Pages

Post by berkinet »

I am having a problem displaying images for custom plugin device states that are true/false. Only the image with the +on extension displays. Other extensions like: foo.png, foo+off.png & foo+false.png are never shown. In fact, if I delete all but the foo+on.png image, there is no error message shown in the log about a missing image.

Bug?
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: true/false device state images in Control Pages

Post by matt (support) »

Your base file name image needs a + to tell Indigo to use the more advanced matching heuristic. So try using:

foo+.png
foo+false.png
foo+true.png

where foo+.png is just a copy of the foo+false.png image.

Future versions of Indigo (and Indigo Touch) will allow using just foo.png and foo+true.png.
Image
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: true/false device state images in Control Pages

Post by berkinet »

Thanks
Post Reply

Return to “Archived Posts”