Kodi Community Forum

Full Version: problem with fixedlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi,

i have a problem, witch i can't find what is causing it, i need some help the picture below will better describe what happening.

it does not happen on all list items that's what's causing my headache.

All is fine:
Image

then something goes wrong with the plot description:
Image

here's the code:
Code:
<include name="ListLabel_SubTV">
    <posx>105</posx>
    <posy>20</posy>
    <width>480</width>
    <height>41</height>
    <font>Font_ListSub</font>
    <align>left</align>
    <aligny>center</aligny>
    <animation effect="slide" start="0,10" end="0,10" time="0" condition="Container.Content(seasons)">Conditional</animation>            
    <animation effect="slide" start="0,-10" end="0,-10" time="0" condition="Container.Content(episodes) + [[IsEmpty(ListItem.Writer) + !IsEmpty(ListItem.Plot)] | [!IsEmpty(ListItem.Writer) + IsEmpty(ListItem.Plot)]]">Conditional</animation>        
</include>    


<control type="label">
    <include>ListLabel_SubTV</include>
    <include>subcolornofocus</include>    
    <label>$INFO[ListItem.Plot]</label>
    <visible>!IsEmpty(ListItem.Plot) + Container.Content(episodes)</visible>
    <animation effect="slide" start="0,19" end="0,19" time="0" condition="true">Conditional</animation>                        
</control>
That'll be the line break problem.
Easiest thing to do is edit the NFO.

Looking good by the way.
Hitcher Wrote:That'll be the line break problem.
Easiest thing to do is edit the NFO.

Looking good by the way.

thanks, hitcher, pesky NFO's again, i'll check them.
so, is this a known XBMC bug, or should i submit a bug report ?
There's been some talk of it before but I can't remember where or the outcome.
OK, this can now work, use TEXBOX instead of label, if you need to see sample code. ask me and i'll post some.
andyblac Wrote:OK, this can now work, use TEXBOX instead of label, if you need to see sample code. ask me and i'll post some.
Please do.
djh_ asked for this and it works from r21906. I think you now can use <textbox></textbox> in a list container.
How would I use it in this example from Aeon?
Code:
<control type="label">
    <include>ListLabel_SubTV</include>
    <include>subcolornofocus</include>
    <label>$INFO[ListItem.Plot]</label>
    <visible>!IsEmpty(ListItem.Plot) + Container.Content(episodes)</visible>
    <animation effect="slide" start="0,19" end="0,19" time="0" condition="true">Conditional</animation>
</control>
Do I simply replace <label>$INFO[ListItem.Plot]</label> with <textbox>$INFO[ListItem.Plot]</textbox>?
No, sorry I was wrong... your example would have to look like this with textbox:

Code:
<control type="textbox">
    <include>ListLabel_SubTV</include>
    <include>subcolornofocus</include>
    <info>ListItem.Plot</info>
    <visible>!IsEmpty(ListItem.Plot) + Container.Content(episodes)</visible>
    <animation effect="slide" start="0,19" end="0,19" time="0" condition="true">Conditional</animation>
</control>

I haven't tried this out but it should work now.
Ah, I'm with you now - the textbox control type can now be used in a list container.
Didn't work. Line breaks still mess it up.
Hitcher Wrote:Didn't work. Line breaks still mess it up.

sorry for the delay, here's my code, and it works:

notice <wrapmultiline>true</wrapmultiline> in the include it's important

PHP Code:
    <include name="ListLabel_SubTV">
        <
posx>45</posx>
        <
posy>27</posy>
        <
height>34</height>
        <
font>Font_ListSub</font>
        <
align>left</align>
        <
wrapmultiline>true</wrapmultiline>
        <
animation effect="slide" start="60,0" end="60,0" time="0" condition="!Skin.HasSetting(FullscreenTVEpisodesMultiplex) + Container.Content(episodes)">Conditional</animation>            
        <
animation effect="slide" start="60,-6" end="60,-4" time="0" condition="Skin.HasSetting(FullscreenTVEpisodesMultiplex) + Container.Content(episodes)">Conditional</animation>            
        <
animation effect="slide" start="60,-10" end="60,-10" time="0" condition="!Skin.HasSetting(FullscreenTVEpisodesMultiplex) + Container.Content(episodes) + [[IsEmpty(ListItem.Writer) + !IsEmpty(ListItem.Plot)] | [!IsEmpty(ListItem.Writer) + IsEmpty(ListItem.Plot)]]">Conditional</animation>        
        <
animation effect="slide" start="60,-16" end="60,-14" time="0" condition="Skin.HasSetting(FullscreenTVEpisodesMultiplex) + Container.Content(episodes) + [[IsEmpty(ListItem.Writer) + !IsEmpty(ListItem.Plot)] | [!IsEmpty(ListItem.Writer) + IsEmpty(ListItem.Plot)]]">Conditional</animation>        
    </include> 

PHP Code:
<control type="textbox" id="1">
                    <include>
ListLabel_SubTV</include>
                    <
width>490</width>
                    <include>
subcolornofocus</include>    
                    <
label>$INFO[ListItem.Plot]</label>
                    <
visible>!IsEmpty(ListItem.Plot) + Container.Content(episodes)</visible>
                    <
animation effect="slide" start="0,22" end="0,22" time="0" condition="true">Conditional</animation>                        
                </
control

Image
wrapmultiline is meaningless for a textbox - that's what it does!
jmarshall Wrote:wrapmultiline is meaningless for a textbox - that's what it does!

oh ok thanks, i'll remove mine then
Pages: 1 2