Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Caption in Slide Show
#1
Hi,

I am using the Arctic Zephyr skin.  Recently, I have added a label control in SlideShow.xml to display the Caption of a picture when viewing this picture. Unfortunately, the text is displayed is blurred, you can only guess what the displayed string means.  After some searching and experimenting, I found out that adding the XML include "GlobalOverlay" to the control will allow the Caption to be displayed in a readable way.  However, when doing so the picture will be displayed in a dimmed manner instead of at normal brightness.

What does GlobalOverlay do?  Where is it located, what directory?  Which statements would I need to include in SlideShow.xml to make the Caption text readable?

All help is greatly appreciated.
Reply
#2
In the mean time, I have found the answers myself:
1)  GlobalOverlay shows a semi-transparant full screen image on top of the currently displayed information.  The result is that the screen is being "dimmed".
2)  GlobalOverlay is not a file by itself, it is part of the Includes.xml file.
3)  I have copied and modified the required statements from GlobalOverlay into the file SlideShow.xml. I have created an image control which displays a fully transparant image on the screen.  On top of that image, a label control displays the Caption of the (jpg) picture.  Here is the code that I have included in SlideShow.xml:

<defaultcontrol>2</defaultcontrol>
   <controls>
      <control type="image">
         <!-- Overlay with transparant image for displaying Caption -->
         <left>50</left>
         <top>100r</top>
         <width>1800</width>
         <height>100</height>
         <texture border="2">common/null.png</texture>
      </control>
      <control type="label">
         <!-- Caption -->
         <left>50</left>
         <top>100r</top>
         <width>1800</width>
         <height>100</height>
         <align>left</align>
         <font>TinyBold</font>
         <textcolor>yellow</textcolor>
         <shadowcolor>Dark2</shadowcolor>
         <info>Slideshow.Caption</info>
     </control>
</controls>
Reply

Logout Mark Read Team Forum Stats Members Help
Caption in Slide Show0