Kodi Community Forum

Full Version: Gap in grouplist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to have several items in a grouplist so i can scroll between them very easily. The problem is for example if I have "play trailer" it looks fine until the movie don't have a trailer, the button doesn't show up which is what I want but there is a gap where the button should have been.

I want to make it like the button just was never there, I have seen this in Aeon Nox video info for example, I looked at the code and there seem to be a wraplist instead but I can't make it work for me, how does this work?
Using <itemgap>0</itemgap> should take care of that I would think?
post your code :-)
Well no that is not the problem, the thing is that it leaves a total blank where the button should have been, I want it to just skip when there is no trailer for example. This works in the video info for Aeon Nox and most likely many other skins as well.

When there is no Cinema Experience for example the button isn't showing but there is no "false button" where it should have been, it's just gone. And then when the skin detect the plugin it shows up between two other buttons.

Code:
    <control type="grouplist" id="1">
        <posx>322</posx>
        <posy>165</posy>
        <width>474</width>
        <height>222</height>
        <itemgap>0</itemgap>
        <onup>1</onup>
        <ondown>1</ondown>
        <onright>50</onright>
        <onleft>50</onleft>
        <orientation>horizontal</orientation>
        
      <control type="button" id ="8">
        <description>Play</description>
        <label>play</label>
        <width>120</width>
        <height>34</height>
        <align>center</align>
        <aligny>top</aligny>
        <texturefocus>info/ButtonFoHorizontal.png</texturefocus>
        <texturenofocus>-</texturenofocus>
        <textcolor>itemdetail3</textcolor>
        <focusedcolor>fce7e7e7</focusedcolor>
        <disabledcolor>04ffffff</disabledcolor>
        <colordiffuse>2DFFFFFF</colordiffuse>
        <font>plot</font>
      </control>
           
      <control type="button" id ="97">
        <description>Play Trailer</description>
        <label>play trailer</label>
        <width>150</width>
        <height>34</height>
        <align>center</align>
        <aligny>top</aligny>
        <texturefocus>info/ButtonFoHorizontal.png</texturefocus>
        <texturenofocus>-</texturenofocus>
        <textcolor>itemdetail3</textcolor>
        <focusedcolor>fce7e7e7</focusedcolor>
        <disabledcolor>04ffffff</disabledcolor>
        <colordiffuse>2DFFFFFF</colordiffuse>
        <onclick>PlayMedia($INFO[ListItem.Trailer],1)</onclick>
        <enable>!IsEmpty(ListItem.Trailer)</enable>
        <font>plot</font>
      </control>

Image
use <visible> instead of <enable> for the trailer button.
Thank you very much it worked!

The only problem I have now is that on info for tvshows there is no play button, and because that is the default button you can't select the other ones either Tongue
Change the default control from the button (8) to the grouplist (1).

EDIT: Button 8 can be used as a Browse button for TV Shows to take you to the Season/Episode level, and by making it a togglebutton you can have different textures (alttexture...) for Play and Browse.
Thank you so much! Big Grin