Dissappearing label when opening video
#1
All my labels look like this:

xml:
                            <control type="label">
                                <aligny>center</aligny>
                                <left>250</left>
                                <width>580</width>
                                <font>Bold42</font>
                                <textcolor>FFFFFFFF</textcolor>
                                <label>$INFO[ListItem.OriginalTitle]</label>
                                <textwidth>580</textwidth>
                                <scroll>false</scroll>
                            </control>

Very simple. Now, when I open the movie, right before it loads, I can see this and all other labels for the focused item, disappear - and then come back when I close the movie. A solution I found was changing "label" to "fadelabel". The problem is that if I do that, they then disappear when I bring up the dialogue of another window.

I'd ask in the thread of the script, but since I don't think they should disappear with just "label", I'm wondering what's going on.
Reply
#2
What other code do you have in the focused part of the list?
Reply
#3
Full code of the view is:

xml:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="Viewtype_50_Movie_List">
        <control type="group">
            <visible>Control.IsVisible(50)</visible>
                <control type="multiimage">
                    <fadetime>320</fadetime>
                    <imagepath>general/background.png</imagepath>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="button" id="789">
                      <font>Reg30</font>
                      <textcolor>FFFFFFFF</textcolor>
                      <onclick>Info</onclick>
                      <onfocus>Info</onfocus>
                      <onunfocus>Info</onunfocus>
                      <onup>Info</onup>
                      <ondown>Info</ondown>
                      <onleft>Info</onleft>
                      <onright>Info</onright>
                </control>
                <control type="fixedlist" id="50">
                    <width>1920</width>
                    <height>1080</height>
                    <onup>50</onup>
                    <ondown>50</ondown>
                    <focusposition>3</focusposition>
                    <orientation>vertical</orientation>
                    <itemlayout height="150" width="1920">
                        <control type="image">
                            <aligny>center</aligny>
                            <left>100</left>
                            <width>80</width>
                            <aspectratio>keep</aspectratio>
                            <texture background="true">$INFO[ListItem.Icon]</texture>
                            <colordiffuse>80EEEEEE</colordiffuse>
                        </control>
                        <control type="label">
                            <aligny>center</aligny>
                            <left>225</left>
                            <width>600</width>
                            <height>150</height>
                            <font>Reg30</font>
                            <textcolor>80CFCFCF</textcolor>
                            <label>$INFO[ListItem.OriginalTitle]</label>
                        </control>
                        <control type="image">
                            <top>75</top>
                            <align>center</align>
                            <height>25</height>
                            <aspectratio>keep</aspectratio>
                            <texture background="true">rating/none.png</texture>
                        </control>
                        <control type="image">
                            <top>75</top>
                            <align>center</align>
                            <height>25</height>
                            <aspectratio>keep</aspectratio>
                            <texture background="true">$INFO[ListItem.UserRating,rating/,.png]</texture>
                        </control>
                        <control type="label">
                            <aligny>center</aligny>
                            <left>1100</left>
                            <width>600</width>
                            <height>150</height>
                            <font>Light30</font>
                            <textcolor>80CFCFCF</textcolor>
                            <label>$INFO[ListItem.Director]</label>
                        </control>
                        <control type="label">
                            <top>60</top>
                            <left>1650</left>
                            <width>250</width>
                            <height>150</height>
                            <font>Light30</font>
                            <textcolor>80CFCFCF</textcolor>
                            <label>$INFO[ListItem.Year]</label>
                        </control>
                        <control type="image">
                            <bottom>0</bottom>
                            <left>100</left>
                            <width>88%</width>
                            <height>2</height>
                            <aspectratio>stretch</aspectratio>
                            <texture background="true">general/separator.png</texture>
                        </control>
                    </itemlayout>

                    <focusedlayout height="180" width="1920">
                        <control type="group">
                            <animation effect="zoom" time="120" start="100" end="105" center="auto" tween="Back" easing="Out">Focus</animation>
                            <control type="image">
                                <top>-100</top>
                                <width>1950</width>
                                <height>380</height>
                                <aspectratio>scale</aspectratio>
                                <texture background="true">general/focus_item.png</texture>
                            </control>
                            <control type="image">
                                <aligny>center</aligny>
                                <left>100</left>
                                <width>100</width>
                                <aspectratio>keep</aspectratio>
                                <texture background="true">$INFO[ListItem.Icon]</texture>
                            </control>
                            <control type="fadelabel">
                                <aligny>center</aligny>
                                <left>250</left>
                                <width>580</width>
                                <font>Bold42</font>
                                <textcolor>FFFFFFFF</textcolor>
                                <label>$INFO[ListItem.OriginalTitle]</label>
                                <textwidth>580</textwidth>
                                <scroll>false</scroll>
                            </control>
                            <control type="image">
                                <top>75</top>
                                <align>center</align>
                                <height>30</height>
                                <aspectratio>keep</aspectratio>
                                <texture background="true">rating/none.png</texture>
                            </control>
                            <control type="image">
                                <top>75</top>
                                <align>center</align>
                                <height>30</height>
                                <aspectratio>keep</aspectratio>
                                <texture background="true">$INFO[ListItem.UserRating,rating/,.png]</texture>
                            </control>
                            <control type="fadelabel">
                                <aligny>center</aligny>
                                <left>1100</left>
                                <width>470</width>
                                <font>Light42</font>
                                <textcolor>FFFFFFFF</textcolor>
                                <label>$INFO[ListItem.Director]</label>
                                <textwidth>480</textwidth>
                            </control>
                            <control type="fadelabel">
                                <aligny>center</aligny>
                                <left>1600</left>
                                <font>Light42</font>
                                <textcolor>FFFFFFFF</textcolor>
                                <label>$INFO[ListItem.Year]</label>
                            </control>
                        </control>
                    </focusedlayout>
                </control>
        </control>
    </include>
</includes>
Reply
#4
And this is with normal library movies?
Reply
#5
i dont think you should apply the <visible>Control.IsVisible(50)</visible> condition to the container as well...

try it like this:
xml:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="Viewtype_50_Movie_List">
        <control type="group">
            <visible>Control.IsVisible(50)</visible>
            <control type="multiimage">
                <fadetime>320</fadetime>
                <imagepath>general/background.png</imagepath>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="button" id="789">
                  <font>Reg30</font>
                  <textcolor>FFFFFFFF</textcolor>
                  <onclick>Info</onclick>
                  <onfocus>Info</onfocus>
                  <onunfocus>Info</onunfocus>
                  <onup>Info</onup>
                  <ondown>Info</ondown>
                  <onleft>Info</onleft>
                  <onright>Info</onright>
            </control>
        </control>
        <control type="fixedlist" id="50">
            ...
        </control>
    </include>
</includes>
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
It affects any standard entry added on the Movies section, yeah. And sadly I get the same result with the new proposed structure (tried changing "fadelabel" to "label" too). I also tried removing the <visible> part.

Something I noticed, maybe it's related: if I bring up the rating dialogue script on the DialogVideoInfo.xml screen, the following label is always (the only one) affected: https://pastebin.com/svww1sgw
$VAR[ItemDuration] changes from whatever the runtime of the movie is, to "2 H" no matter what. If it's any help, I'm building this skin from Copacetic, which has a Variables.xml file that reformats the running time like this: https://pastebin.com/W8S7k2aX
And this is the rating dialogue skin, which is the one that does the above, and makes movie stuff disappear if set to "label" when brought up: https://pastebin.com/3FJi0cz0

Had to use pastebin because I kept getting a "The message you entered contained 59 images, while only 12 images per message are allowed. Please lower the image count in your message to meet the limit." warning. I thought it was the label="image" part so I tried changing that but it didn't work lol
Reply
#7
This variable is wrong
Code:
<variable name="Durat_hh">
        <value condition="Integer.IsGreaterOrEqual(ListItem.Duration,3600) + Integer.IsLess(ListItem.Duration,7200)">1</value>
        <value condition="Integer.IsLess(ListItem.Duration,10800)">2</value>
change in this
Code:
<variable name="Durat_hh">
        <value condition="Integer.IsLess(ListItem.Duration,3600)">0</value>
        <value condition="Integer.IsGreaterOrEqual(ListItem.Duration,3600) + Integer.IsLess(ListItem.Duration,7200)">1</value>
        <value condition="Integer.IsGreaterOrEqual(ListItem.Duration,7200)+ Integer.IsLess(ListItem.Duration,10800)">2</value>
        <value condition="Integer.IsGreaterOrEqual(ListItem.Duration,10800)+ Integer.IsLess(ListItem.Duration,14400)">3</value>

For missing label when play movie, .......need to add inlist for label "selectedcolor" with your own color.
Code:
<selectedcolor>red</selectedcolor>
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#8
Thank you very much. Although I now get "0 H" on the rating issue, <selectedcolor> indeed worked for "label"!
Reply

Logout Mark Read Team Forum Stats Members Help
Dissappearing label when opening video0