Sortletter-jump-list without SkinHelper (?)
#1
Hello everyone

I try to do a Sortletter jump list without the need of Skinhelper. (not shure if Possible)

I tdid try to use a static list with "oncklick" Action(shift,A). shouldnt this Action work?

xml:

 <item>
       <label>A</label>
       <onclick>Action(shift,A)</onclick>
       <visible></visible>
 </item>
Quote:Note that SHIFT-B on the keyboard will take you to the B's.

the whole include fore testing prupose looks like this:
xml:

<include name="SortletterJumpList">
    
        <control type="list" id="1020">
            <right>30</right>
            <top>25</top>
            <width>50</width>
            <height>1030</height>
            <onup>1020</onup>
            <ondown>1020</ondown>
            <onright>60</onright>
            <onleft condition="!Skin.HasSetting(KioskMode)">3001</onleft>
            <orientation>vertical</orientation>
            <viewtype label="$LOCALIZE[535]">list</viewtype>
            <scrolltime tween="sine" easing="out">240</scrolltime>
            <visible></visible>

            <itemlayout height="50" width="50">
                    
                <control type="label">
                    <left>0</left>
                    <width>50</width>
                    <height>50</height>
                    <font>Font33</font>
                    <label>$INFO[ListItem.Label]</label>
                    <textcolor>TextColor2</textcolor>
                </control>
                    
            </itemlayout>

            <focusedlayout height="50" width="50">
                    
                <control type="label">
                    <left>0</left>
                    <width>50</width>
                    <height>50</height>
                    <font>Font33</font>
                    <label>$INFO[ListItem.Label]</label>
                    <textcolor>TextColor1</textcolor>
                    <shadowcolor>ShadowColor</shadowcolor>
                    <animation effect="fade" start="100" end="50" time="200" tween="cubic" easing="out" reversible="true" condition="!Control.HasFocus(1020)">Conditional</animation>
                </control>
    
            </focusedlayout>
            
            <content>
            
                <item>
                    <label>A</label>
                    <onclick>Action(shift,A)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>B</label>
                    <onclick>Action(shift,B)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>C</label>
                    <onclick>Action(shift,C)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>D</label>
                    <onclick>Action(shift,D)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>E</label>
                    <onclick>Action(shift,E)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>F</label>
                    <onclick>Action(shift,F)</onclick>
                    <visible></visible>
                </item>
                <item>
                    <label>G</label>
                    <onclick>Action(shift,G)</onclick>
                    <visible></visible>
                </item>
                
            
            </content>

        </control>
    </include>

EDIT:
The Reason why i try to do it without Skinhelper is, that i try to avoid to much script stuff in the Skin. + theres a hope it could be faster that way.
Reply
#2
(2018-08-13, 17:20)Rantanplan-1 Wrote: I tdid try to use a static list with "oncklick" Action(shift,A). shouldnt this Action work? 
 nope, you need to pass a valid action id to the Action() command.

afaik you should be able to use JumpSMS* for your purpose.

xml:
<item>
    <label>A</label>
    <onclick>JumpSMS2</onclick>
</item>
<item>
    <label>B</label>
    <onclick>JumpSMS2</onclick>
    <onclick>JumpSMS2</onclick>
</item>
<item>
    <label>C</label>
    <onclick>JumpSMS2</onclick>
    <onclick>JumpSMS2</onclick>
    <onclick>JumpSMS2</onclick>
</item>
<item>
    <label>D</label>
    <onclick>JumpSMS3</onclick>
</item>
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
#3
Thanks!

Did need to ad a additional "onclick" <onclick>SetFocus($PARAM[CurrentListID])</onclick> to get the Focus to the List which hold the Library Items, but Works!

thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Sortletter-jump-list without SkinHelper (?)0