Trouble with differnt lists for tvshows, seasons, and episodes in MyVideoNav
#1
So I'm trying to have two different list views within MyVideoNav: one for when navigating tvshows and the other when navigating seasons & episodes. When I try to use one list for everything and comment out the other it works perfectly fine but when i try to include both and dictate visibility based on container.content(type) neither list is visible but you can navigate shows/seasons/episodes and click.

When I remove the id for one of the list controls the other shows up. For example if i remove id="52" from the Episode_nav TV_show_nav appears, and vice versa.

Any idea why this is happening? Huh Thanks in advance.

p.s. The Movie_Nav works perfectly fine in the movies section so that's not a problem. TV_Show_Nav & Episode_Nav are the problematic ones.

TV_Show_Nav code
Code:
<control type="group">
    <visible>container.content(tvshows)</visible>
    <posy>60</posy>
    <posx>19</posx>
    <control type="panel" id="50">
        <viewtype>panel</viewtype>
        <orientation>horizontal</orientation>
        <ondown>50</ondown>
        <onup>50</onup>
        <onleft>50</onleft>
        <onright>50</onright>
        <width>1236</width>
        <height>640</height>
        <itemlayout width="174" height="242">
            <control type="image">
                <posx>19</posx>
                <width>158</width>
                <height>274</height>
                <info>ListItem.Thumb</info>
                <texture diffuse="thumbnails/poster_mask_small.png"></texture>
            </control>
            <control type="image">
                <posx>19</posx>
                <posy>21</posy>
                <texture>thumbnails/poster_glass_small.png</texture>
            </control>
        </itemlayout>
        <focusedlayout width="174" height="242">
            <control type="image">
                <posx>3</posx>
                <width>191</width>
                <height>280</height>
                <info>ListItem.thumb</info>
                <texture diffuse="thumbnails/poster_mask_tv_focused.png"></texture>
            </control>
            <control type="image">
                <posx>3</posx>
                <width>191</width>
                <height>280</height>
                <texture>thumbnails/poster_glass_tv_focused.png</texture>
            </control>
        </focusedlayout>
    </control>
</control>

Move_nav code
Code:
<control type="wraplist" id="51">
    <visible>container.content(movies)</visible>
    <posy>424</posy>
    <posx>39</posx>
    <width>1205</width>
    <height>300</height>

    <onleft>450</onleft>
    <onright>450</onright>
    <onup>Dialog.close(134)</onup>
    <ondown>450</ondown>

    <orientation>horizontal</orientation>
    <focusposition>3</focusposition>

    <itemlayout width="168" height="274">
        <control type="image">
            <width>158</width>
            <height>274</height>
            <info>ListItem.thumb</info>
            <texture diffuse="thumbnails/poster_mask_small.png"></texture>
        </control>

        <control type="image">
            <posy>21</posy>
            <texture>thumbnails/poster_glass_small.png</texture>
        </control>
    </itemlayout>

    <focusedlayout width="207"height="290" >
        <control type="image">
            <width>197</width>
            <height>290</height>
            <info>ListItem.thumb</info>
            <texture diffuse="thumbnails/poster_mask_focused.png"></texture>
            <aspectratio>stretch</aspectratio>
        </control>
        <control type="image">
            <width>197</width>
            <height>290</height>
            <texture>thumbnails/poster_glass_focused.png</texture>
        </control>
    </focusedlayout>
</control>

Episode_Nav code
Code:
<control type="group">
    <visible allowhiddenfocus="true">(container.content(seasons) | container.content(episodes))</visible>
    <posx>38</posx>
    <posy>300</posy>
    <control type="image">
    <texture>navigation/season_list_bg.png</texture>
    </control>
    <control type="list" id="52">
          <posx>45</posx>
          <posy>22</posy>
          <width>420</width>
          <height>378</height>
          <visible>true</visible>
          <onup>50</onup>
          <ondown>50</ondown>
          <onleft>50</onleft>
          <onright>50</onright>
          <orientation>vertical</orientation>
          <pagecontrol>25</pagecontrol>
          <scrolltime>200</scrolltime>
          <itemlayout width="250" height="29">
            <control type="label">
                <posx>30</posx>
                <posy>3</posy>
                <width>430</width>
                <height>22</height>
                <font>Large</font>
                <aligny>center</aligny>
                <textcolor>ff6a6b6d</textcolor>
                <align>left</align>
                <info>ListItem.Title</info>
            </control>
          </itemlayout>
          <focusedlayout height="29" width="250">
            <control type="label">
                <posx>30</posx>
                <posy>3</posy>
                <width>430</width>
                <height>22</height>
                <font>Large</font>
                <aligny>center</aligny>
                <textcolor>White</textcolor>
                <align>left</align>
                <info>ListItem.Title</info>
            </control>
          </focusedlayout>
    </control>
</control>
Reply
#2
for starters this is wrong
<visible allowhiddenfocus="true">(container.content(seasons) | container.content(episodes))</visible>
if you really want to bracket it. but not nned use [] like
[container.content(seasons) | container.content(episodes)]

Also the conditions for visibility need to be in the lists themselves not the group they are in for it to work properly
Reply
#3
I think (and someone correct me if I'm wrong) it's because when you first enter TV Shows the episodes aren't visible so that group condition get's ignored and will only be checked again when the window is refreshed which, of course, doesn't happen while browsing the TV section.
Reply
#4
Jezz_X Wrote:Also the conditions for visibility need to be in the lists themselves not the group they are in for it to work properly

That turned out to be the solution. Thanks for the help Jezz_X and Hitcher.
Reply

Logout Mark Read Team Forum Stats Members Help
Trouble with differnt lists for tvshows, seasons, and episodes in MyVideoNav0