Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1802

Get self.control.id with skin engine

$
0
0
So I'm trying to pull out some xml coding stunts here. Having a fixedlist container with id="$param[widgetid]".
While 
Code:
Control.HasFocus($param[widgetid])
works fine,
something like 
Code:
Integer/String.IsEqual($param[widgetid],1510)
does not.

What I'm trying to achieve is to give different ids different includes. But I can't figure out to get the current control (after assigned with id) to identify itself (with no focus).
Is there a proper way of doing this?

EXAMPLE:
Code:
<control type="$PARAM[containerType]" id="$PARAM[widgetid]">
<include condition="CONTROLID == 1510 (pseudu-code)">foo</include>
<include condition="CONTROLID == 1520">bar</include>
etc...
</control>

Thanks.

Viewing all articles
Browse latest Browse all 1802

Trending Articles