Dear Skinning Pros - Is this possible?
#1
I'm learning how to skin and I realise this is a long shot, but I'll ask anyway.

When in the movies section, I have a vertical fixed list and instead of playing when I click the movie, I want it to bring up the movie info dialog (from here the user can read the info and then choose between 'trailer' and 'play'). I can change the keymap to achieve this, but then it also affects the tv section i.e. I get 'info' every time I click.

I realise this is the way xbmc works and movie and tv navigation cannot be made to act differently, unlike music for example. However, can anyone think of a way around this, some kind of trick using lists/buttons/etc? I tried having the focused list item hidden and a button in it's place so I could control the 'onclick' but I got in over my head!

(The reason for this by the way is I use an apple remote and there's very few buttons, and long presses confuses other people)
Reply
#2
I believe its hard coded the way it is and cant be altered.
Image
To learn more, click here.
Reply
#3
Add to <control type="......" id="...">
<onclick>XBMC.ActivateWindow(2003)</onclick>

This will overule Built In Control
http://wiki.xbmc.org/?title=Skinning_Man...n_Controls

Edit: Sorry doesn't work with <control type="......" id="...">
Reply
#4
Waffa Wrote:Add to <control type="......" id="...">
<onclick>XBMC.ActivateWindow(2003)</onclick>

This will overule Built In Control
http://wiki.xbmc.org/?title=Skinning_Man...n_Controls

Edit: Sorry doesn't work with <control type="......" id="...">

Yeah the 'onclick' thing only works with buttons, and it seems you can't use buttons in a list. I read about a multiselect control thats does use 'onclick' and can be used in a list but I can't get it to work.
Reply
#5
.
Reply
#6
Multiselect control might work if you set it up correctly, yes.
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
#7
jmarshall Wrote:Multiselect control might work if you set it up correctly, yes.

Can't get anywhere with this, any particular way the multiselect is supposed to be set up within the list? Does anyone even know of an example of a multiselect within a list in a skin somewhere? Any help would be appreciated.
Reply
#8
http://wiki.xbmc.org/index.php?title=Mul...ct_control
Reply
#9
Yeah that's where I originally found multiselect, but I can't get the <on click> to work in a list of videos.

What I basically need is <on click> or 'buttons' within lists to change the default behaviour, which I suppose would require a code change. I've found a similar notion here by Jezz_X for music lists.

A similar problem is mentioned here and apparently a patch was created but it looks like it hasn't been implemented. Do you remember this jmarshall? Also, you mentioned above and in this post about mutliselect as a workaround, however you dismiss it here, is there a specific implemantation you had in mind?

Finally xbmc allows you to queue music instead of playing if the correct option is on, how does it do this? It seems related to the above (changing the default <onclick> behaviour.)
Reply
#10
The multiselect control should work just fine.

Just add a clickable bit of text to the label using the "Queue" action should do the trick?
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
#11
Do you mean something like this?

Quote:<control type="fixedlist" id="55">
.............................
<itemlayout width="700" height="42">
<control type="label">
<width>550</width>
<height>42</height>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
<focusedlayout width="1280" height="110">
<control type="Multiselect">
<width>1180</width>
<height>100</height>
<label>[ONCLICK ActivateWindow(movieinformation)]$INFO[ListItem.Label][/ONCLICK]</label>
</control>
</focusedlayout>
</control>

The file just plays instead of bringing up the info.
Reply
#12
Hmm, by the looks of the code it's not passing the action down to the item, so I suspect the multiselect control only works inside grouplists.

Your only option at this point, therefore, is to modify XBMC code to alter the SELECT action.

Cheers,
Jonathan
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
#13
Ok thanks. Thats the end of that quest then, I wouldn't even know where to begin with modifying xbmc! I'll just have to use an <onright> press to bring up the info instead, was hoping to use that for pagedown but can't have it both ways. Maybe in the future somone will change the code.
Reply
#14
Probably the closest you can come is something like this:

Youtube Example

Disregard that the options were settings, file manager, etc...I just took button code from another section, mostly just showing a proof of concept. Mostly it's just having your ondown, or onright activate a grouplist and then populate that grouplist with buttons like so:

PHP Code:
<ondown>1421</ondown
PHP Code:
        <control type="grouplist" id="1421">
            <
posx>10</posx>
            <
posy>200</posy>
            <
onleft>1</onleft>
            <
onright>1</onright>
            <
onup>50</onup>
            <
ondown>50</ondown>
            <
orientation>horizontal</orientation>
            <
align>center</align>
            <
visible allowhiddenfocus="true">ControlGroup(1421).HasFocus + !Skin.HasSetting(LockViews)</visible>
            <
control type="button" id="3110">
                <
description>Settings</description>
                <
height>30</height>
                <
width min="40" max="170">auto</width>
                <
font>Font_Bartowski_Press_S</font>
                <
textcolor>MainBlack</textcolor>
                <
focusedcolor>white</focusedcolor>
                <
texturefocus border="5">confluence/button-focus.png</texturefocus>
                <
align>center</align>
                <
aligny>middle</aligny>
                <
label>5</label>
                <
onclick>ActivateWindow(4)</onclick>
            </
control>
            <
control type="button" id="3111">
                <
description>Filemanager</description>
                <
height>30</height>
                <
width min="40" max="170">auto</width>
                <
font>Font_Bartowski_Press_S</font>
                <
textcolor>MainBlack</textcolor>
                <
focusedcolor>white</focusedcolor>
                <
texturefocus border="5">confluence/button-focus.png</texturefocus>
                <
align>center</align>
                <
aligny>middle</aligny>
                <
label>$LOCALIZE[31067]</label>
                <
onclick>ActivateWindow(3)</onclick>
            </
control
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#15
Nice, a litlle submenu. Have to keep this in mind.Big Grin
Exept ondown or left (depends which view in MM Waffa!) is used for show/hide music now playing. So I have no free arrow button, hmm could add show/hide Music now playing in submenu. Like in home screen with left submenu. Cool

Thank u.

Hey mcborzu,
Looked in Night for Show/hide...needs some work report it in bugs.
Reply

Logout Mark Read Team Forum Stats Members Help
Dear Skinning Pros - Is this possible?0