Kodi Community Forum
Artist logo question - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Neon (https://forum.kodi.tv/forumdisplay.php?fid=139)
+----- Thread: Artist logo question (/showthread.php?tid=111859)



Artist logo question - ImTheDJ - 2011-10-07

I was able to get the artist logo to display in visualization mode by adding some coding I found in the Aeon forums to the MusicVisualization.xml :

Image

I'm trying to get the artist logo to replace the artist text in this view, for example:

Image

Does anyone know how to achieve this? If necessary, I'll post a link to my copy of the modified xml file.


- defluo - 2011-10-07

Code:
        <control type="image" id="2000456">
            <posx>645</posx>
            <posy>-64</posy>
            <width>230</width>
            <height>89</height>
            <texture>$INFO[Player.FolderPath,,../logo.png]</texture>
            
        </control>
        <control type="label">
            <posx>515</posx>
            <posy>-15</posy>
            <width>490</width>
            <height>25</height>
            <align>center</align>
            <font>DejaVuSans_Bold_32</font>
            <textcolor>mainblue</textcolor>
            <label>[b]$INFO[MusicPlayer.Artist][/b]</label>
            <visible>IsEmpty(Control.GetLabel(2000456))</visible>
        </control>

basic idea is when a logo is available the text won't show and when its not, it will. I'm sure you can tailor it to your needs


- ImTheDJ - 2011-10-07

Thanks. I put your code in and adjusted the position of the image and label controls, but the text still shows up behind the logo.

Update: nevermind, I just deleted the control for the artist text and everything looks great! Thanks again.


- sixstringking - 2012-01-26

I can't seem to get this to work. Would you mind telling me exactly where the code goes. I am able to edit the .xml file, but just don't know where to put the code.

Thanks!


- stoli - 2012-01-29

Here's what you want:

Code:
<control type="image" id="1">
    <animation effect="slide" start="1300" end="45" time="700" tween="cubic" easing="out" delay="1000">WindowOpen</animation>
    <animation effect="slide" start="45" end="1300" time="600" tween="cubic" easing="in" delay="200">WindowClose</animation>
    <posx>320</posx>
    <posy>-120</posy><!-- -143 -->
    <align>left</align>
    <aligny>-</aligny>
    <scroll>true</scroll>
    <width>230</width>
    <height>89</height>
    <texture>$INFO[Player.FolderPath,,../logo.png]</texture>
    
</control>
<control type="label">
    <animation effect="slide" start="1300" end="45" time="700" tween="cubic" easing="out" delay="1000">WindowOpen</animation>
    <animation effect="slide" start="45" end="1300" time="600" tween="cubic" easing="in" delay="200">WindowClose</animation>
    <posx>320</posx>
    <posy>-70</posy><!-- -143 -->
    <width>880</width>
    <height>25</height>
    <align>left</align>
    <aligny>-</aligny>
    <scroll>true</scroll>
    <font>Font_Neon_45</font>
    <label>[UPPERCASE][COLO R=white][b]$INFO[MusicPlayer.Artist][/ B][/COLOR][/UPPERCASE]</label>
     <!-- edit above line to remove the space in COLOR and the space after the / in [/ B] the forum was translating as html codes -->  
    <animation effect="slide" start="0,0" end="0,-12" time="200" condition="Control.IsVisible(212)">Conditional</animation>
    <visible>IsEmpty(Control.GetLabel(1))</visible>
</control>

This replaces lines 228 - 241. I've also added it to SVN.

Complete XML here: https://raw.github.com/stoli/skin.neon/master/720p/MusicVisualisation.xml


- sixstringking - 2012-01-30

Awesome. Thanks for the help. Great work on this skin. Love it!