$PARAM and togglebuttons
#1
Are there any limitations to toggle buttons with regards to using parameters?

I have this control in my DialogPVRChannelManager.xml:

PHP Code:
<include content="dialog_ToggleButton">
    <
param name="ID" value="30" />
    <
param name="Label" value="$LOCALIZE[19024]/>
    <
param name="AltLabel" value="$LOCALIZE[19023]/>
    <
param name="UseAltLabel" value="!String.IsEmpty(Window.Property(IsRadio))" />
</include> 

The include definition:

PHP Code:
<include name="dialog_ToggleButton">
    <
param name="ID"/>
    <
param name="Label"/>
    <
param name="AltLabel"/>
    <
param name="UseAltLabel"/>
    <
param name="Width" default="120"/>
    <
param name="Height" default="40"/>
    <
param name="OnClick" default="noop"/>
    <
param name="Visible"/>
    <
definition>
        <
control type="togglebutton" id="$PARAM[ID]">
            <
width>$PARAM[Width]</width>
            <
height>$PARAM[Height]</height>
            <
label>$PARAM[Label]</label>
            <
altlabel>$PARAM[AltLabel]</altlabel>
            <
font>regular_Small-U-B</font>
            <
align>center</align>
            <
textoffsetx>10</textoffsetx>
            <
textoffsety>6</textoffsety>
            <
textcolor>Color4</textcolor>
            <
focusedcolor>Color1</focusedcolor>
            <
texturenofocus border="2">dialogs/button-nf.png</texturenofocus>
            <
texturefocus>dialogs/button-fo.png</texturefocus>
            <
onclick>$PARAM[OnClick]</onclick
            <
visible>$PARAM[Visible]</visible>
            <
usealttexture>$PARAM[UseAltLabel]</usealttexture>
        </
control>
    </
definition>
</include> 

When clicking the button though, Kodi crashes (today's OSX build)
Reply

Logout Mark Read Team Forum Stats Members Help
$PARAM and togglebuttons0