Kodi 17
#1
Hi,

I have a script addon that functi9ons perfectoly under Kodi 15 and 16. It uses WindowXMLDialog to create and populate the dialog. However on Kodi 17 I see this

https://www.dropbox.com/s/yyqsmz0koytyhc....23.05.png

What you see there, is basically the content of my dialog, not displayed in a dialog.

Now, I'm not a great expert in Kodi programming (and I have to say I've found much of the doc. confusing, contradictory and outdated. But I have been using the following fragment at the top of my XML ( in resounces/Default/720p/dialog.xml ) as follows

PHP Code:
<window id="1100" type="dialog">
    <
zorder>0</zorder>
    <
coordinates>
        <
system>1</system>
        <
posx>120</posx>
        <
posy>100</posy>
    </
coordinates>
    <include>
dialogeffect</include>
    <
depth>DepthDialog+</depth>
    <
defaultcontrol always="true">300</defaultcontrol>
    <
controls>
        <include 
name="DialogBackgroundCommons">
            <
param name="DialogBackgroundWidth" value="650"/>
            <
param name="DialogBackgroundHeight" value="600"/>
            <
param name="DialogHeaderWidth" value="570"/>
            <
param name="DialogHeaderLabel" value="$ADDON[script.service.unblockr 32020]"/>
            <!--<
param name="DialogHeaderId" value="1" />-->
            <
param name="CloseButtonLeft" value="560"/>
            <
param name="CloseButtonNav" value="9000"/>
        </include>
        <!--
Title-->
        <
control type="textbox" id="200">
            <
posx>20</posx>
            <
posy>70</posy>
            <
width>610</width>
            <
height>150</height>
            <
font>font13</font>
            <
textcolor>FFFFFFFF</textcolor>
            <
label>$ADDON[script.service.unblockr 32013]</label>
        </
control

etc.

I suspect (but havent proven) that the includes are failing. I confess the include set was cribbed without genuinely understanding why. Can someone point me in a direction to work out what I need to do to resolvce it please (docs, code samples etc).
#2
Relying to my own post ... I can envisage that the "DialogBackroundCommons" include is skin (Confluence ?) specific. Is there any way I can leverage the 'current' skin styling so as to

  1. Work with multiple skins and fit in with the skin style/settings
  2. Avoid having to carry / implement all the visual attributes
#3
you posted in the addon section, but from the text I gather that it is more a skinning issue. I am absolutely sure that you will get fast and competent help in the skinning section of this forum.
#4
I'm not sure includes work in WindowXML so you might have to write things out multiple times instead.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
#5
provided an answer here: http://forum.kodi.tv/showthread.php?tid=314922
feel free to continue in that thread... closing this one ;-)
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.

Logout Mark Read Team Forum Stats Members Help
Kodi 170