Kodi Community Forum
Focus on more than one list? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Focus on more than one list? (/showthread.php?tid=127995)



Focus on more than one list? - Balinus - 2012-04-06

Hello! I have a strange problem occurring when using a skin. The thing is when I go over "Programs", some Add-ons are displayed, as specified in skin settings. So I go over PseudoTV and the focus goes on the list of programs addons. If I click on PseudoTV, it plays withtout problems. The problem is when I stop pseudoTV, it goes back to the Home screen, but the focus seems to be on the main list (id=9000) and also on the programs list (id=8011). From there, I can no longer move. I'm stuck there.

I don't know if someone have an idea??

Thanks a lot, I can't find where the problem is... :/

edit - If you need more info, let me know! I'm using the updated version of Shade (see sig).


RE: Focus on more than one list? - pecinko - 2012-04-06

Heh, a paste of home.xml code on pastebin.com? What says debug.log?


RE: Focus on more than one list? - Balinus - 2012-04-06

Just found the solution! (I think).

I've noticed that at the beginning there was a tag named "defaultcontrol" and it was set to 8999. Changed it to 9000 and it does the trick.

Do you think the 8999 was a mistake? In other word, changing it to 9000, will it break something? For now, everything else seems to work though Smile

edit - Here's the Home.xml : http://code.google.com/p/shade-xbmc-eden/source/browse/trunk/720p/Home.xml


RE: Focus on more than one list? - pecinko - 2012-04-06

By a quick look (lot of code there) it should be changed to 9000 as that is your main control on Home.


RE: Focus on more than one list? - butchabay - 2012-04-06

This was the old way to start recently added script, since it's in xbmc core you don't need it anymore. I don't think the id8999 will break something.


RE: Focus on more than one list? - pecinko - 2012-04-06

By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.


RE: Focus on more than one list? - Balinus - 2012-04-06

Yes, about that script... I have a question. The reason I'm still keeping it is that I also use RandomMovies and RandomEpisodes. It doesn't seem to be included in the core of Eden right?


RE: Focus on more than one list? - pecinko - 2012-04-06

No they are not, but button "8999" does not seem to be related to random items script.

As Butchabay said, that button shouldn't do any harm so you may as well leave it. But if you intend to use it for starting script, leave default focus on "8999".

Alternative way is to use <onload></onload> to run random items script, take a look at wiki.


RE: Focus on more than one list? - Balinus - 2012-04-06

ok, thanks! Smile

I'll look into <onload> or leave behind the Random items.


RE: Focus on more than one list? - Balinus - 2012-04-07

ah well, just found out the script.randomitems by Hitcher. So, I'll use the inner code of XBMC for Recent items and the random script for random items.

Is it a good way to put the script.random in Startup.xml?


RE: Focus on more than one list? - Hitcher - 2012-04-07

Not always as some users have their XBMC machines running 24/7. Home is better.


RE: Focus on more than one list? - Balinus - 2012-04-07

great, thanks for the answer!

I'll load it through <onload> tag then.


RE: Focus on more than one list? - Raina - 2012-04-13

(2012-04-06, 20:53)pecinko Wrote: By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.


its too complicated to me ~~~




RE: Focus on more than one list? - Hitcher - 2012-04-13

Remove all of it and set the default control to 9000.


RE: Focus on more than one list? - Balinus - 2012-04-13

(2012-04-13, 12:14)Raina Wrote:
(2012-04-06, 20:53)pecinko Wrote: By a second look Smile , you should get rid of
PHP Code:
<control type="button" id="8999">
                        <
description>Run Recently added</description>
                        <
posx>-20</posx>
                        <
posy>-20</posy>
                        <
width>1</width>
                        <
height>1</height>
                        <
label>-</label>
                        <
font>-</font>
                        <
onfocus>XBMC.RunScript(script.recentlyadded,limit=10&amp;totals=True&amp;albums=True&amp;unplayed=True)</onfocus>
                        <
onfocus>SetFocus(9000)</onfocus>
                        <
texturenofocus>-</texturenofocus>
                        <
texturefocus>-</texturefocus>
                        <
visible>Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </
control>
                <
control type="button" id="8999">
                        <
description>Don't run Recently added</description>
                        <posx>-20</posx>
                        <posy>-20</posy>
                        <width>1</width>
                        <height>1</height>
                        <label>-</label>
                        <font>-</font>
                        <onfocus>SetFocus(9000)</onfocus>
                        <texturenofocus>-</texturenofocus>
                        <texturefocus>-</texturefocus>
                        <visible>!Skin.HasSetting(homepageHideRecentlyAdded)</visible>
                </control> 

This was the original purpose of "8999" control, but it's obsolete in Eden as recently added gets served by XBMC code, not script.


its too complicated to me ~~~

You can just use the latest Shade-Eden (v2.4.3). It's already baked in. See my sig for links to it.