Same Container ID and InfoLabels
#1
I seem to be having some issues with using the same container ID and showing InfoLabels out side of the container.

So if I use this the Label stays the same when moving to a different container.

Code:
<control type="group">
    <visible>StringCompare(Container(9000).ListItem.Property(widgetStyle),Panel)</visible>
    <control type="panel" id="8001">
        <visible>StringCompare(Container(9000).ListItem.Property(widgetArt),Poster)</visible>
        <include name="PanelWidget1">
            <param name="Top">5</param>
        </include>
        <include name="PortraitArt">
            <param name="Texture">$VAR[HomeWidgetPosterVar]</param>
            <param name="Target">$INFO[Container(9000).ListItem.Property(widgetTarget)]</param>
            <param name="Path">$INFO[Container(9000).ListItem.Property(widgetPath)]</param>
        </include>
    </control>
</control>            
<control type="group">
    <visible>StringCompare(Container(9000).ListItem.Property(widgetStyle),Panel2)</visible>
    <control type="panel" id="8001">
        <visible>StringCompare(Container(9000).ListItem.Property(widgetArt),Poster)</visible>
        <include name="PanelWidget1">
            <param name="Top">5</param>
        </include>
        <include name="PortraitArt">
            <param name="Texture">$VAR[HomeWidgetPosterVar]</param>
            <param name="Target">$INFO[Container(9000).ListItem.Property(widgetTarget)]</param>
            <param name="Path">$INFO[Container(9000).ListItem.Property(widgetPath)]</param>
        </include>
    </control>
</control>
<control type="label">                
    <top>530</top>
    <width>1440</width>
    <height>auto</height>
    <align>center</align>
    <font>font13_title</font>                
    <label>$INFO[Container(8001).ListItem.Label]</label>
</control>


And this works fine.
Code:
<control type="panel" id="8001">
    <visible>StringCompare(Container(9000).ListItem.Property(widgetStyle),Panel) + StringCompare(Container(9000).ListItem.Property(widgetArt),Poster)</visible>
    <include name="PanelWidget1">
        <param name="Top">5</param>
    </include>
    <include name="PortraitArt">
        <param name="Texture">$VAR[HomeWidgetPosterVar]</param>
        <param name="Target">$INFO[Container(9000).ListItem.Property(widgetTarget)]</param>
        <param name="Path">$INFO[Container(9000).ListItem.Property(widgetPath)]</param>
    </include>
</control>                
<control type="panel" id="8001">
    <visible>StringCompare(Container(9000).ListItem.Property(widgetStyle),Panel2) + StringCompare(Container(9000).ListItem.Property(widgetArt),Poster)</visible>
    <include name="PanelWidget1">
        <param name="Top">5</param>
    </include>
    <include name="PortraitArt">
        <param name="Texture">$VAR[HomeWidgetPosterVar]</param>
        <param name="Target">$INFO[Container(9000).ListItem.Property(widgetTarget)]</param>
        <param name="Path">$INFO[Container(9000).ListItem.Property(widgetPath)]</param>
    </include>
</control>
<control type="label">                
    <top>530</top>
    <width>1440</width>
    <height>auto</height>
    <align>center</align>
    <font>font13_title</font>                
    <label>$INFO[Container(8001).ListItem.Label]</label>
</control>

The full skin code is here if anyone wanted to take a look.
https://github.com/mikesilvo164/Aeon-Nox-SiLVO/tree/dev

and the xml I am working on
https://github.com/mikesilvo164/Aeon-Nox...idget1.xml


The above is just an example of the issue.

Does anyone have any ideas on why the first code does not work? Smile
Madnox 2.0
Forum / Source
Reply
#2
If you're trying to do what I'm thinking you are, maybe check this http://forum.kodi.tv/showthread.php?tid=...pid2117753
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#3
Thanks Jayz,

As you said " (As I said, because it's the same include, first widget infos are kept in memory because of the same Id)."

It does seem like it is a similar issue.

The strange thing is that with the first code only one container can be visible on the screen at once. But the widget info does not update unless I put both visibility conditions in the same container.

I'll likely just use the second method that works for me but I was really trying to avoid using so many string compares.

Thanks for your response.
Madnox 2.0
Forum / Source
Reply
#4
(2015-11-02, 00:01)Mr. V Wrote: Thanks Jayz,

As you said " (As I said, because it's the same include, first widget infos are kept in memory because of the same Id)."

It does seem like it is a similar issue.

The strange thing is that with the first code only one container can be visible on the screen at once. But the widget info does not update unless I put both visibility conditions in the same container.

I'll likely just use the second method that works for me but I was really trying to avoid using so many string compares.

Thanks for your response.
To avoid making a huge amount of stringcompares, I recommend you to check the template stuff of SkinShortcuts. The script can handle this by its own and give an ID on the fly to your Container. Passing this ID with a $PARAM into an include can get then a Container($PARAM[Id]).ListItem.MY_INFOLABEL. That's what I'm using.

Need some understanding from the docs and you can get help from devs in the respective thread but it's worth it. Really code saver.

Can start here :
https://github.com/BigNoid/script.skinsh...mplates.md
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#5
Cheers. Will definitely look into that. It seems like it will speed things up and save on code.

Now some reading to do.

Thanks Smile
Madnox 2.0
Forum / Source
Reply

Logout Mark Read Team Forum Stats Members Help
Same Container ID and InfoLabels0
This forum uses Lukasz Tkacz MyBB addons.