Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 473

Help: Rainmeter Skins • How to detect no image?

$
0
0
I'm using this code to show an image:

Code:

[sPreview]ImageName="#@#GameBar\Graphics\#CURRENTSECTION#\[#[#CURRENTSECTION]].png"PreserveAspectRatio=1Padding=(10*#Scale#),(10*#Scale#),(10*#Scale#),(10*#Scale#)DynamicVariables=1Container=PreviewContainerGroup=PreviewX=rW=(355*#Scale#)[Banner]Meter=ImageMeterStyle=sPreviewH=(130*#Scale#)[Cover]Meter=ImageMeterStyle=sPreviewY=(170*#Scale#)H=(430*#Scale#)
So clicking on items in various places in the skin sets the images.

How would I go about detecting that an image doesn't exist?
Currently I'm using the lack of a Name when FileView is empty, but really this doesn't work as it gives an error if a name, therefore an item, exists, but has no image.
So, How would I go about detecting if an image actually exists or not?
Thanks. :thumbup:

Statistics: Posted by sl23 — September 22nd, 2024, 6:57 pm — Replies 48 — Views 682



Viewing all articles
Browse latest Browse all 473

Trending Articles