Solved Edit skin xml problem
#1
I just tried this skin and I would like to continue use it but I want to do some modifications which I usually do on a skin.
So, I usually add a line with the clock in fullscreen video. I've done it on estuary screen, by adding a new control in VideoFullScreen.xml file and works fine, but in this skin the control doesn't show at all. Here is the modified xml contents:

xml:
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <controls>
        <control type="group" id="3">
            <left>1050</left>
            <top>0</top>
            <width>850</width>
            <height>85</height>
                <control type="label" id="1">
                    <font>font_clock</font>
                    <shadowcolor>text_shadow1</shadowcolor>
                    <top>0</top>
                    <right>20</right>
                    <height>200</height>
                    <width>600</width>
                    <align>right</align>
                    <label>$INFO[System.Time]</label>
                </control>
                <control type="grouplist" id="1">
                    <right>20</right>
                    <top>74</top>
                    <width>800</width>
                    <height>100</height>
                    <align>right</align>
                    <itemgap>5</itemgap>
                    <orientation>horizontal</orientation>
                    <usecontrolcoords>true</usecontrolcoords>
                    
                    <control type="label" id="1">
                        <font>font_elapsed</font>
                        <label>$INFO[Player.FinishTime,$LOCALIZE[31080]: ]</label>
                        <shadowcolor>text_shadow1</shadowcolor>
                        <height>100</height>
                        <width>auto</width>
                        <visible>!String.isempty(Player.Duration)</visible>
                        <visible>Player.HasVideo + ![Player.HasGame | VideoPlayer.HasEpg]</visible>
                    </control>
                    <control type="label" id="1">
                        <font>font_elapsed</font>
                        <label>$INFO[PVR.EpgEventFinishTime,$LOCALIZE[31080]: ]</label>
                        <shadowcolor>text_shadow1</shadowcolor>
                        <height>100</height>
                        <width>auto</width>
                        <visible>VideoPlayer.HasEpg</visible>
                    </control>
                </control>
        </control>
        <control type="group">
            <animation effect="slide" end="0,-200" time="0" condition="Window.IsVisible(fullscreeninfo)">conditional</animation>
            <!-- Background Image -->
            <control type="image">
                <posx>0</posx>
                <posy>-45</posy>
                <width>1280</width>
                <height>186</height>
                <texture>osd/osd_dialog_bg_top.png</texture>
                <colordiffuse>OSDBackgroundColor</colordiffuse>
            </control>

            <control type="label" id="10">
                <description>row 1 label</description>
                <posx>20</posx>
                <posy>10</posy>
                <label></label>
                <align>left</align>
                <width>1240</width>
                <height>36</height>
                <font>METF_DialogVerySmall</font>
                <textcolor>TextNF</textcolor>
            </control>
            <control type="label" id="11">
                <description>row 2 label</description>
                <posx>20</posx>
                <posy>45</posy>
                <label></label>
                <align>left</align>
                <width>1240</width>
                <height>36</height>
                <font>METF_DialogVerySmall</font>
                <textcolor>TextNF</textcolor>
            </control>
            <control type="label" id="12">
                <description>row 3 label</description>
                <posx>20</posx>
                <posy>80</posy>
                <label></label>
                <align>left</align>
                <width>1240</width>
                <height>108</height>
                <font>METF_DialogVerySmall</font>
                <textcolor>TextNF</textcolor>
            </control>
        </control>
        <control type="group" id="1">
            <visible>Player.Caching</visible>
            <animation delay="300" effect="fade" time="200">Visible</animation>
            <animation effect="fade" delay="200" time="150">Hidden</animation>
            <control type="image" id="1">
                <left>580</left>
                <top>300</top>
                <width>120</width>
                <height>120</height>
                <texture>flags/ProgressCircle/p100.png</texture>
                <animation effect="fade" end="50" time="0" condition="true">Conditional</animation>
            </control>
            <control type="image" id="1">
                <left>580</left>
                <top>300</top>
                <width>120</width>
                <height>120</height>
                <texture colordiffuse="DialogProgressBar">flags/ProgressCircle/p$INFO[Player.CacheLevel].png</texture>
            </control>
            <control type="label" id="1">
                <description>buffering value</description>
                <label>$INFO[Player.CacheLevel]%</label>
                <left>580</left>
                <top>300</top>
                <width>120</width>
                <height>120</height>
                <aligny>center</aligny>
                <align>center</align>
                <font>METF_DialogVerySmall</font>
                <textcolor>TextNF</textcolor>
                <shadowcolor>black</shadowcolor>
            </control>
            <control type="label" id="2">
                <description>buffering label</description>
                <label>$LOCALIZE[15107]</label>
                <left>580</left>
                <top>400</top>
                <width>120</width>
                <height>20</height>
                <aligny>center</aligny>
                <align>center</align>
                <font>METF_DialogVerySmall</font>
                <textcolor>TextNF</textcolor>
                <shadowcolor>black</shadowcolor>
            </control>
        </control>
    </controls>
</window>

Any idea what is wrong and it doesn't displayed?
Reply
#2
You've used the ID 1 when this is used for the Numpad seek label.

https://kodi.wiki/index.php?title=List_o...Screen.xml

Also, all control types need an ID number in VideoFullScreen.xml.
Reply
#3
Thanks, I needed to change a font also. Now it's ok.
Reply
#4
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Edit skin xml problem0