2014-10-30, 14:45
I think it's a little annoying that all types of art in the selection window (FileBrowser.xml iirc) share the same outer dimensions. So I can't create specific dialogs for setting banners and thumbs respectively. This leads to unnecessary and unwanted white space in most designs.
The first solution I've come up with is to check the image url, which at least allows you to distinguish between fanart and all other types. However this still does not allow to account for the difference between, say, movie posters (tall and narrow) and banners (wide and small).
Another idea was to deduce the art style from the image's size or aspect ratio, but I believe these fields aren't even available in this case.
My best bet right now is to add an onclick event to all list items in DialogSelect.xml, which would then copy the item's label to a skin string. I haven't tried this yet and it might not even work. But if it does, this should allow to set up FileBrowser.xml based on that string. The catch is that all list items and all buttons in that window would have to reset the string as to prevent weird behavior in other areas.
Does anyone have a (better) solution to this?
The first solution I've come up with is to check the image url, which at least allows you to distinguish between fanart and all other types. However this still does not allow to account for the difference between, say, movie posters (tall and narrow) and banners (wide and small).
Another idea was to deduce the art style from the image's size or aspect ratio, but I believe these fields aren't even available in this case.
My best bet right now is to add an onclick event to all list items in DialogSelect.xml, which would then copy the item's label to a skin string. I haven't tried this yet and it might not even work. But if it does, this should allow to set up FileBrowser.xml based on that string. The catch is that all list items and all buttons in that window would have to reset the string as to prevent weird behavior in other areas.
Does anyone have a (better) solution to this?