Problem when trying to include xml in windowxmldialog
#1
Guys, , kindly I am asking for some more guide ...

I would like to use includes.xml, but it doesnt work. I created a file named " includes.xml in the 720p dir of my plugin (also tried the main dir of my plugin), with the following text:


<?xml version="1.0" encoding="UTF-8"?>
<includes>
<include name="whitetext">
<textcolor>ff0f00ff</textcolor>
<posx>10</posx>
<top>250</top>
</include>
<include file="listdefaults.xml" />
<include condition="Skin.HasSetting(extras)" file="includes_extras.xml" />
<default type="button">
<include>whitetext</include>
</default>
<constant name="leftedge">50</constant>
</includes>

I am trying to use it in one of my xmls in that way:

<control type="label" id="75">
<include>whitetext</include>
<!--posx>10</posx>
<posy>67</posy-->
<width>150</width>
<height>40</height>
<!--textcolor>FFB2D4F5</textcolor-->
<focusedcolor>FFB2D4F5</focusedcolor>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.png</texturenofocus>
<label>Selected Piece: </label>
<align>left</align>
</control>



I get this error:

23:38:25 T:16108 WARNING: CSkinInfo: failed to load skin settings
23:38:25 T:7068 WARNING: Skin has invalid include: whitetext

and it doesn't affect the GUI ....

What am i doing wrong?
Reply
#2
I could be wrong but...
unlike skins, custom gui has no support for $VAR, $PARAM and <include>
additionally, the names you use for images and xml need to be unique or kodi will use the one that the skin uses.

$INFO and $ADDON works.
Reply
#3
..and this error can be ignored:
Quote:23:38:25 T:16108 WARNING: CSkinInfo: failed to load skin settings
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
#4
Guys, thanks for your reply, you are really great !!!

So, can I do something else then custom GUI? I guess that custom means that the layout information of my windows is defined within the addon and not in a skin, is that right? If true, how can I move it to the skin (while I am not the one that controls the installation of the skin and the selected skin)

Please point me to the fight way of doing this.

Thx,
Yohay
Reply
#5
(2017-02-24, 10:11)ykamchi Wrote: I guess that custom means that the layout information of my windows is defined within the addon and not in a skin, is that right?

correct. custom skin means the skin xml files are included in your addon.

(2017-02-24, 10:11)ykamchi Wrote: If true, how can I move it to the skin (while I am not the one that controls the installation of the skin and the selected skin)

you can't. the skinner would need to add those files to the skin.
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
#6
Mmmm ... ok, so I will have to continue with copy/paste for every fix/change ...
Included looked like exactly what I needed... :-(
Reply

Logout Mark Read Team Forum Stats Members Help
Problem when trying to include xml in windowxmldialog0