Additional changes of StringCompare/String.IsEqual in Krypton?
#1
I've noticed that "StringCompare" is deprecated (http://forum.kodi.tv/showthread.php?tid=...pid2281321), but I can't get "String.IsEqual" to work with my Krypton context add-on.

This <visible> tag works with 16.1:
Code:
<visible>StringCompare(Container.Content(LiveTV),true)</visible>
This enables the context add-on just on EPG items. But this doesn't work anymore. I've tried a number of combinations (including "String.IsEqual"), but without success:

Code:
<visible>StringCompare(Window.IsVisible(tvguide),true)</visible>
<visible>StringCompare(ListItem.HasEpg,true)</visible>
<visible>StringCompare(Window.IsActive(tvguide),true)</visible>
<visible>StringCompare(Control.IsEnabled(10702),true)</visible>

The only tag that works is "<visible>true</visible>", but this enables the menu everywhere. OK for testing, bad for release.

I can't find any obvious changes, do you have an idea?
Reply
#2
Why are you trying to use String.IsEqual they don't return a label?

Code:
<visible>Container.Content(LiveTV)</visible>
<visible>Window.IsVisible(tvguide)</visible>
<visible>ListItem.HasEpg</visible>
<visible>Window.IsActive(tvguide)</visible>
<visible>Control.IsEnabled(10702)</visible>
Reply
#3
(2016-07-03, 15:57)Hitcher Wrote: Why are you trying to use String.IsEqual they don't return a label?
Because out of despiration - it worked in Jarvis. I've tried my original method like this "<visible>Container.Content(LiveTV)</visible>", but it wouldn't work. I'm not familiar with skin related stuff.

Code:
<visible>Window.IsVisible(tvguide)</visible>
<visible>ListItem.HasEpg</visible>
<visible>Window.IsActive(tvguide)</visible>

This works just fine - thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Additional changes of StringCompare/String.IsEqual in Krypton?0