Solved Perfect code doesn't work on KRYTPON
#16
(2019-07-11, 15:21)manfeed Wrote: Did you put the code inside the focusedlayout or itemlayout section in the video view xml? I think it should go outside...
only effect makes them visible was adding it each item in control type list, but with ignoring the scrolltime.
adding inside focusedlayout or itemlayout does take no effect.
Reply
#17
idk why, but i remember having issues, showing Labels for my Cast Content in VideoInfo in krypton.

Leia Using $INFO[Container(*VALUE_OF_CONTAINER_CAST*).ListItem.Label] , but that doesnt seemed to wor for Krypton.
So, i resolved it by waived the 'Container(**).' and just use the $INFO[ListItem.Label]

But i used the Labels inside of the item/focusedlayout of that container.


BUT, did you consider to get a smaler code
and try something like that instead 


xml:

<control type="panel" id="524">
<itemlayout width="**" height="**">
.
.
                        <control type="image" id="7997">
                        <visible>!String.IsEmpty(Control.GetLabel(7997)) + !String.IsEmpty(ListItem.Label)</visible>
                        <!-- define your image size ,layout image -->
                        <texture background="true">$INFO[ListItem.Label,resource://resource.images.actorart/,.png]</texture>
                    </control>
                    <control type="image" id="7996">
                        <visible>String.IsEmpty(Control.GetLabel(7997)) + !String.IsEmpty(ListItem.Label)</visible>
                        <!-- define your fallback size ,layout image -->
                    </control>
                    .
                    .
                    </itemlayout>
                    <focusedlayout width="**" height="**">
                    .
                    .
                    <control type="image" id="7999">
                        <visible>!String.IsEmpty(Control.GetLabel(7999)) + !String.IsEmpty(ListItem.Label)</visible>
                        <!-- define your image size ,layout image -->
                        <texture background="true">$INFO[ListItem.Label,resource://resource.images.actorart/,.png]</texture>
                    </control>
                    <control type="image" id="7998">
                        <visible>String.IsEmpty(Control.GetLabel(7999)) + !String.IsEmpty(ListItem.Label)</visible>
                        <!-- define your fallback size ,layout image -->
                    </control>
                    .
                    .
                   </focusedlayout>


I think, you just need to work with your List(524), and get rid of the include "DisplayPngCast".
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#18
i tried it in simpler way and got this code to work.
But the problem is here it's empty if no resource there... i need that all skipped and only filled resources visibly.
The previous code was thought to be able to

  
Code:
         <!-- Actress PNG -->            
            <!-- Hidden control -->            
            <control type="group">
            <control type="list" id="334">
                <left>-3000</left>
                <top>-3000</top>
                <height>1</height>
                <width>1</width>
                <autoscroll>true</autoscroll>
                <scrolltime>5000</scrolltime>
                <itemlayout/>
                <focusedlayout/>
                <content>plugin://script.embuary.helper/?info=bydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=$INFO[ListItem.DBType]</content>
            </control>
            <control type="list" id="335">
                <left>-3000</left>
                <top>-3000</top>
                <height>1</height>
                <width>1</width>
                <autoscroll>true</autoscroll>
                <scrolltime>5000</scrolltime>
                <itemlayout/>
                <focusedlayout/>
                <content>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.0)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.0))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.1)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.1))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.2)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.2))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.3)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.3))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.4)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.4))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.5)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.5))</visible>
                    </item>    
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.6)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.6))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.7)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.7))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.8)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.8))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.9)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.9))</visible>
                    </item>
                    <item>
                        <label>$INFO[Container(334).ListItem.Property(cast.10)]</label>
                        <onclick>noop</onclick>
                        <visible>!String.IsEmpty(Container(334).ListItem.Property(cast.10))</visible>
                    </item>                    
                </content>
            </control>        
            <!-- Fake multiimage control -->        
            <control type="image">
                <left>1100</left>
                <top>323</top>
                <height>512</height>
                <width>512</width>
                <aspectratio align="center" aligny="bottom">keep</aspectratio>
                <texture background="true">$INFO[Container(335).ListItem.Label,resource://resource.images.actorart/,.png]</texture>
                <fadetime>1000</fadetime>    
            </control>            
            <control type="textbox">
                <font>Font_plot4</font>
                <align>center</align>
                <left>1080</left>
                <top>657</top>
                <width>397</width>
                <height>40</height>
                <label>$INFO[Container(335).ListItem.Label]</label>
            </control>            
            </control>
Reply
#19
now i want to achieve that the empty ones would be skipped, bot nothing happens here:

    
Code:
        <!-- Actress PNG -->            
            <!-- Hidden control -->            
            <control type="list" id="524">
                <left>-3000</left>
                <top>-3000</top>
                <height>1</height>
                <width>1</width>
                <autoscroll>true</autoscroll>
                <scrolltime>5000</scrolltime>
                <itemlayout/>
                <focusedlayout/>
                <content>plugin://script.embuary.helper/?info=bydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=$INFO[ListItem.DBType]</content>
            </control>
                <control type="group">
                <visible>System.IdleTime(1) + !ListItem.IsCollection + !Container.Content(seasons)</visible>
                <control type="image" id="2440">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(0).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2441">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(1).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2442">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(2).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2443">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(3).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2444">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(4).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2445">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(5).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2446">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(6).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2447">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(7).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2448">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(8).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2449">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(9).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2450">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(10).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2451">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(11).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2452">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(12).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2453">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(13).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2454">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(14).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2455">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(15).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2456">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(16).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2457">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(17).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2458">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(18).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2459">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(19).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2460">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(20).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2461">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(21).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2462">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(22).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2463">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(23).Label,resource://resource.images.actorart/,.png]</texture>
                </control>
                <control type="image" id="2464">
                    <include>HiddenObject</include>
                    <texture fallback="">$INFO[Container(524).ListItemAbsolute(24).Label,resource://resource.images.actorart/,.png]</texture>
                </control>            
            <control type="list" id="534">
                <left>-3000</left>
                <top>-3000</top>
                <height>1</height>
                <width>1</width>
                <autoscroll>true</autoscroll>
                <scrolltime>5000</scrolltime>
                <itemlayout/>
                <focusedlayout/>
                <content>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(0).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(0).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2440))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(1).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(1).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2441))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(2).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(2).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2442))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(3).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(3).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2443))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(4).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(4).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2444))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(5).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(5).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2445))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(6).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(6).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2446))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(7).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(7).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2447))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(8).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(8).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2448))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(9).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(9).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2449))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(10).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(10).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2450))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(11).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(11).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2451))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(12).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(12).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2452))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(13).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(13).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2453))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(14).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(14).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2454))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(15).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(15).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2455))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(16).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(16).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2456))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(17).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(17).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2457))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(18).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(18).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2458))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(19).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(19).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2459))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(20).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(20).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2460))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(21).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(21).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2461))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(22).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(22).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2462))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(23).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(23).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2463))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>$INFO[Container(524).ListItemAbsolute(24).Label]</label>
                        <label2>$INFO[Container(524).ListItemAbsolute(24).Label,resource://resource.images.actorart/,.png]</label2>
                        <visible>!String.IsEmpty(Control.GetLabel(2464))</visible>
                        <onclick>noop</onclick>
                        </item>
                        <item>
                        <label>[COLOR=$INFO[Skin.String(colorheader)]]$LOCALIZE[206]:[/COLOR][CR][COLOR white]$INFO[Container(524).ListItemAbsolute(0).Label][CR]$INFO[Container(524).ListItemAbsolute(1).Label][CR]$INFO[Container(524).ListItemAbsolute(2).Label][CR]$INFO[Container(524).ListItemAbsolute(3).Label][CR]$INFO[Container(524).ListItemAbsolute(4).Label][CR]$INFO[Container(524).ListItemAbsolute(5).Label][CR]$INFO[Container(524).ListItemAbsolute(6).Label][CR]$INFO[Container(524).ListItemAbsolute(7).Label][CR]$INFO[Container(524).ListItemAbsolute(8).Label][CR]$INFO[Container(524).ListItemAbsolute(9).Label][/COLOR]</label>
                        <label2>Cast</label2>
                        <onclick>noop</onclick>
                        </item>                        
                </content>
            </control>
            </control>    

<control type="image">
    <visible>Integer.IsGreater(Container(534).NumItems,1) + !ListItem.IsCollection</visible>
        <include>HiddenObject</include>
        <texture background="true">$INFO[Container(534).ListItem.Label2]</texture>                    
</control>
            
            <!-- Fake multiimage control -->        
            <control type="image">
                <left>1100</left>
                <top>323</top>
                <height>512</height>
                <width>512</width>
                <aspectratio align="center" aligny="bottom">keep</aspectratio>
                <texture background="true">$INFO[Container(534).ListItem.Label2]</texture>
                <fadetime>1000</fadetime>    
            </control>    
Reply
#20
a port of this in Leia good working code (post #1) to Krypton still failed.
But with Embuary Helper there was created a much easier solution with the same excellent result -> https://forum.kodi.tv/showthread.php?tid...pid2869890

Marked as solved
Reply

Logout Mark Read Team Forum Stats Members Help
Perfect code doesn't work on KRYTPON0