2021-12-27, 23:21
I am modding Silvio skin to make it work the way I want on a tablet - a very long running project that is nearly done (at least for 16x9 resolutions next job is to convert for the 16x10 of my tablet).
I have run into a problem, at the moment in List Widgets but I suspect only because I have not looked closely at this point for other widget types. The issue revolves around square art where the list widget has the case set to either Clear Case or Case. I have modded the info panel for the list widget so that it shows the cases of the poster or square art. The problem is that what I want to do is use cd.png as the case where the list item is a music item (album, artist or song) because that looks like an old cd case and I will use cd_case.png for everything else.
No matter how I amend up template.xml or includes_widgets.xml I cannot get Kodi to even recognise whether the widget has the case set to Case or Clear Case. Template.xml has a couple of list widget variables (HomeWidget$SKINSHORTCUTS[idprefix]$SKINSHORTCUTS[id]InfoCaseVar being one of them) and that uses as a value condition:
String.IsEqual(Skin.String(Widget.CaseInfo),Case)
Which logically should return true is the Widget Case type is Case but when I try setting up a new list variable and use that condition it will always return false even when the case is set to Case.
Clearly I am doing something wrong. What, probably very obvious thing, am I missing?
I have run into a problem, at the moment in List Widgets but I suspect only because I have not looked closely at this point for other widget types. The issue revolves around square art where the list widget has the case set to either Clear Case or Case. I have modded the info panel for the list widget so that it shows the cases of the poster or square art. The problem is that what I want to do is use cd.png as the case where the list item is a music item (album, artist or song) because that looks like an old cd case and I will use cd_case.png for everything else.
No matter how I amend up template.xml or includes_widgets.xml I cannot get Kodi to even recognise whether the widget has the case set to Case or Clear Case. Template.xml has a couple of list widget variables (HomeWidget$SKINSHORTCUTS[idprefix]$SKINSHORTCUTS[id]InfoCaseVar being one of them) and that uses as a value condition:
String.IsEqual(Skin.String(Widget.CaseInfo),Case)
Which logically should return true is the Widget Case type is Case but when I try setting up a new list variable and use that condition it will always return false even when the case is set to Case.
Clearly I am doing something wrong. What, probably very obvious thing, am I missing?