Thread Rating:
  • 0 Vote(s) - 0 Average
Focus on more than one list?
#1
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).
Reply
#2
Heh, a paste of home.xml code on pastebin.com? What says debug.log?
My skins:

Amber
Quartz

Reply
#3
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...p/Home.xml
Reply
#4
By a quick look (lot of code there) it should be changed to 9000 as that is your main control on Home.
My skins:

Amber
Quartz

Reply
#5
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.
Reply
#6
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.
My skins:

Amber
Quartz

Reply
#7
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?
Reply
#8
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.
My skins:

Amber
Quartz

Reply
#9
ok, thanks! Smile

I'll look into <onload> or leave behind the Random items.
Reply
#10
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?
Reply
#11
Not always as some users have their XBMC machines running 24/7. Home is better.
Reply
#12
great, thanks for the answer!

I'll load it through <onload> tag then.
Reply
#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 ~~~

Reply
#14
Remove all of it and set the default control to 9000.
Reply
#15
(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.
Reply



Focus on more than one list?00