20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

Focus item bug in new builds....new coding needed?
#1
I posted a trac ticket about this, but I was hoping to see if there is any quick fix on the user end for this....

In the latest builds all my views that use a wraplist with a focused item will not lose focus even when you move to a different control. Has something changed coding wise that I can fix quickly? I tested it against t3ch's last build and my PM3.HD mod works as it always did. Hopefully Jezz can take a look and let me know if new coding is needed or if it is something that will be fixed in future builds.

To test just download my The Operation skin below and use it with a recent build within the last 2 days. Any of the DVD Slide views will not lose focus when you press up or down. The centered icon should drop back into the list at a size equal the rest.
Reply
#2
See your trac ticket. Use Control.HasFocus(id) if you wish to make some parts of the <focusedlayout> render differently while not focused.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks, I just noticed that. I guess I am a little lost at where I should be adding the Control.HasFocus() to within my code and what control to place within it. Below is an example piece of my wraplist.

Code


I tried adding <visible>Control.HasFocus(59)</visible> to the focuseditem area and it did nothing. I am guessing I am setting it up wrong. If anyone could get me in the right direction it would much appreciated so I can get these views sorted out and working with the new builds.
Reply
#4
you'll have copy the image control from the itemlayout to the focused layout and add Control.HasFocus(id) to the <visible> field.

in your example, your focusedlayout section should look like this:

Code:
<focusedlayout height="127" width="445">
[b]    <control type="image">
        <posx>-18</posx>
        <posy>70</posy>
        <width>473</width>
        <height>100</height>
        <aspectratio>stretch</aspectratio>
        <bordertexture border="5">button-nofocus.png</bordertexture>
        <bordersize>5</bordersize>
        <texture>$INFO[ListItem.Icon]</texture>
        <visible>!Control.HasFocus(59)</visible>
    </control>[/b]
    <control type="image">
        <posx>-37</posx>
        <posy>61</posy>
        <width>493</width>
        <height>120</height>
        <aspectratio>stretch</aspectratio>
        <bordertexture border="5">folder-focus.png</bordertexture>
        <bordersize>5</bordersize>
        <texture>$INFO[ListItem.Icon]</texture>
[b]        <visible>Control.HasFocus(59)</visible>[/b]
    </control>
</focusedlayout>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
[quote=ronie]you'll have copy the image control from the itemlayout to the focused layout and add Control.HasFocus(id) to the <visible> field.

Got it going great now. Thanks a lot everyone for the help on it.
Reply
#6
looks like you removed the itemlayout section ?
if you did, well you shouldn't. you should only modify the focusedlayout section.

your code should look like this, (modifications in bold):

Code:
<control type="wraplist" id="59">
        <visible>!Skin.HasSetting(wideicon_off)</visible>
        <visible>Container.Content(TVShows)</visible>
        <posx>-30</posx>
        <posy>500</posy>
        <width>1310</width>
        <height>460</height>
        <onleft>59</onleft>
        <onright>59</onright>
        <onup>9000</onup>
        <ondown>64</ondown>
        <viewtype label="Wide Icon Slide">list</viewtype>
        <pagecontrol>64</pagecontrol>
        <scrolltime>200</scrolltime>
        <focusposition>1</focusposition>
        <include>Window_OpenClose_Animation</include>
        <orientation>horizontal</orientation>
        <itemlayout height="127" width="469">
            <control type="image">
                <posx>-18</posx>
                <posy>70</posy>
                <width>473</width>
                <height>100</height>
                <aspectratio>stretch</aspectratio>
                <bordertexture border="5">button-nofocus.png</bordertexture>
                <bordersize>5</bordersize>
                <texture>$INFO[ListItem.Icon]</texture>
            </control>
        </itemlayout>
        <focusedlayout height="127" width="445">
[b]        <control type="image">
                <posx>-18</posx>
                <posy>70</posy>
                <width>473</width>
                <height>100</height>
                <aspectratio>stretch</aspectratio>
                <bordertexture border="5">button-nofocus.png</bordertexture>
                <bordersize>5</bordersize>
                <texture>$INFO[ListItem.Icon]</texture>
            <visible>!Control.HasFocus(59)</visible>
        </control>[/b]
            <control type="image">
                <posx>-37</posx>
                <posy>61</posy>
                <width>493</width>
                <height>120</height>
                <aspectratio>stretch</aspectratio>
                <bordertexture border="5">folder-focus.png</bordertexture>
                <bordersize>5</bordersize>
                <texture>$INFO[ListItem.Icon]</texture>
[b]            <visible>Control.HasFocus(59)</visible>[/b]
            </control>
        </focusedlayout>
    </control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Focus item bug in new builds....new coding needed?00