2010-05-15, 21:20
Hey all,
I recently converted from xlobby to xbmc and am loving it thus far. I am trying to add an enqueue button to an existing skin, but am having a hard time finding the 'on click' command to queue a movie or audio file.
I know this is available through the context menu, but i would like users not to have to pull up the context menu. Also, I cannot find the source for the context menu, am I correct in assuming it is 'hard wired' into the xbmc build?
Additionally, some help with syntax would be great.
this is the button i want to change within the skin:
i think it needs to be changed to something like this, but not sure
where XXXXXX enqueues the selected file(s)
any help is appreciated.
I recently converted from xlobby to xbmc and am loving it thus far. I am trying to add an enqueue button to an existing skin, but am having a hard time finding the 'on click' command to queue a movie or audio file.
I know this is available through the context menu, but i would like users not to have to pull up the context menu. Also, I cannot find the source for the context menu, am I correct in assuming it is 'hard wired' into the xbmc build?
Additionally, some help with syntax would be great.
this is the button i want to change within the skin:
Code:
<control type="button" id="11">
<description>Trailer</description>
<height>46</height>
<width>160</width>
<label>20410</label>
<align>center</align>
<enable>!IsEmpty(ListItem.Trailer)</enable>
</control>
i think it needs to be changed to something like this, but not sure
Code:
<control type="button" id="11">
<description>Enqueue</description>
<label>Enqueue</label>
<height>46</height>
<width>160</width>
<label>20410</label>
<align>center</align>
<onclick>[b]XXXXXX[/b]</onclick>
</control>
where XXXXXX enqueues the selected file(s)
any help is appreciated.