calculate values in $param
#1
Is it possible to calculate new values in params? I have two labels and i want to shift the second label for some pixels (in my exmaple 10 pixels) to the right.
I have tried like this:
Code:
<control type="label">
                    <posx>$PARAM[x1]</posx>
                    <posy>$PARAM[y1]</posy>
                    <width>1920</width>
                    <height>50</height>
                </control>
                <control type="label">
                    <posx>$PARAM[x1]+10</posx>
                    <posy>$PARAM[y1]-10</posy>
                    <width>1920</width>
                    <height>50</height>
                </control>
this is not working.
Do you have any solution for this?
Reply
#2
nope, skins can't do math.

perhaps you can solve it by adding a slide animation to the second label?
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
some clever grouping should do the trick.
Code:
<control type="group">
    <posx>$PARAM[x]</left>
    <posy>$PARAM[y]</posy>
    <control type="label">
        <posx>0</posx>
        <posy>0</posy>
        <width>1920</width>
        <height>50</height>
    </control>
    <control type="label">
        <posx>10</posx>
        <posy>-10</posy>
        <width>1920</width>
        <height>50</height>
    </control>
</control>
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Wow. Thanks a lot. I have tried both and both are working.
Reply

Logout Mark Read Team Forum Stats Members Help
calculate values in $param0