2020-04-29, 22:14
Ok, this is driving me crazy.
consider this piece of code:
but that doesn't work as expected, image flags/flags_large/extras.png is always there, when it should be just visible if a file, 25.png for example, exists in the addons user data.
i tried something more simpler then:
However, the coresponding debug label shows nothing at all. i tried to replace the texture again with flags/flags_large/extras.png, and here the debug label shows the path as expected.
why is that? Bug? or made i something stupid? Probably system dependend? (I am on windows 10, just in case that matters)
Update:
Ok, i guess i am lost here. I thought i might try this on a very basic skin, namely confluence, and here everything works. This is super annoying. (Just in case someone else has time and want to give that a try, the skin i am fighting with is Titan Vanilla, this code peace is from IncludeMediaFlags.xml)
consider this piece of code:
andxml:
<control type="image">
<include>mediaflags_large_layout</include>
<texture>flags/flags_large/extras.png</texture>
<visible>!String.Contains(Control.GetLabel(44444),blank)</visible>
<visible>System.HasAddon(script.videoextras) + Window.IsVisible(Videos) + Container.Content(TVShows)</visible>
</control>
xml:
<control type="image" id="44444">
<description>hidden image to verify if any extras exist</description>
<posx>-100</posx>
<posy>-100</posy>
<width>1</width>
<height>1</height>
<texture fallback="blank.png">$INFO[ListItem.DBID,special://profile/addon_data/script.videoextras/tvshows/,.png]</texture>
<visible>true</visible>
</control>
but that doesn't work as expected, image flags/flags_large/extras.png is always there, when it should be just visible if a file, 25.png for example, exists in the addons user data.
i tried something more simpler then:
And this is where the fun begins. The Image is shown as expected, if there is 25.png for show with id 25, it will be shown.xml:
<control type="image" id="112233">
<texture fallback="blank.png">$INFO[ListItem.DBID,special://profile/addon_data/script.videoextras/tvshows/,.png]</texture>
<visible>System.HasAddon(script.videoextras) + Window.IsVisible(Videos) + Container.Content(TVShows)</visible>
</control>
<control type="label">
<width>auto</width>
<posx>300</posx>
<height>80</height>
<aligny>center</aligny>
<label>$INFO[Control.GetLabel(112233)]</label>
</control>
However, the coresponding debug label shows nothing at all. i tried to replace the texture again with flags/flags_large/extras.png, and here the debug label shows the path as expected.
why is that? Bug? or made i something stupid? Probably system dependend? (I am on windows 10, just in case that matters)
Update:
Ok, i guess i am lost here. I thought i might try this on a very basic skin, namely confluence, and here everything works. This is super annoying. (Just in case someone else has time and want to give that a try, the skin i am fighting with is Titan Vanilla, this code peace is from IncludeMediaFlags.xml)