2018-06-15, 15:07
Hello.
I have a very simple add-on with CustomVideo.xml :
This files is located in c:\Users\artkh\AppData\Roaming\Kodi\addons\plugin.video.example\resources\skins\Default\720p\ .
Ths problem is in the
Image itemnofocus.png not showing for inactive elements.
The file itemnofocus.png is located in the c:\Users\artkh\AppData\Roaming\Kodi\addons\plugin.video.example\resources\skins\Default\media\
How to correctly specify path to itemnofocus.png to show him in the List?
I have a very simple add-on with CustomVideo.xml :
xml:
<?xml version="1.0" encoding="UTF-8"?>
<window id="1139">
<controls>
<control type="button" id="1">
<description>My first button control</description>
<left>80</left>
<top>60</top>
<width>400</width>
<height>400</height>
<visible>true</visible>
<colordiffuse>FFFFFFFF</colordiffuse>
<texturefocus colordiffuse="FFFFAAFF">myfocustexture.png</texturefocus>
<texturenofocus colordiffuse="FFFFAAFF">mynormaltexture.png</texturenofocus>
<label>MY TEST BUTTON</label>
<wrapmultiline>true</wrapmultiline>
<font>font12</font>
<textcolor>FFFFFFFF</textcolor>
<focusedcolor>FFFFFFFF</focusedcolor>
<disabledcolor>80FFFFFF</disabledcolor>
<invalidcolor>FFFFFFFF</invalidcolor>
<align></align>
<aligny></aligny>
<textoffsetx></textoffsetx>
<textoffsety></textoffsety>
<pulseonselect></pulseonselect>
<onclick>RunAddon("plugin.video.example")</onclick>
<onfocus></onfocus>
<onunfocus></onunfocus>
<onup>2</onup>
<ondown>3</ondown>
<onleft>1</onleft>
<onright>1</onright>
</control>
<control type="list" id="888">
<description>My first list container</description>
<left>80</left>
<top>120</top>
<width>250</width>
<!--<height>200</height>-->
<visible>true</visible>
<onup>2</onup>
<ondown>3</ondown>
<onleft>1</onleft>
<onright>1</onright>
<viewtype label="3D list">list</viewtype>
<orientation>vertical</orientation>
<pagecontrol>25</pagecontrol>
<autoscroll>false</autoscroll>
<scrolltime tween="sine" easing="out">200</scrolltime>
<itemlayout width="250" height="29">
<control type="image">
<left>5</left>
<top>3</top>
<width>22</width>
<height>22</height>
<!--<info>ListItem.Icon</info>-->
<texture>itemnofocus.png</texture>
</control>
<control type="label">
<left>30</left>
<top>3</top>
<width>430</width>
<height>22</height>
<font>font13</font>
<aligny>center</aligny>
<selectedcolor>green</selectedcolor>
<align>left</align>
<info>ListItem.Label</info>
</control>
<control type="label">
<left>475</left>
<top>3</top>
<width>300</width>
<height>22</height>
<font>font13</font>
<aligny>center</aligny>
<selectedcolor>green</selectedcolor>
<textcolor>grey</textcolor>
<align>right</align>
<info>ListItem.Label2</info>
</control>
</itemlayout>
<focusedlayout height="29" width="250">
<control type="image">
<width>485</width>
<height>29</height>
<left>0</left>
<top>0</top>
<visible>Control.HasFocus(50)</visible>
<texture>itemfocus.png</texture>
</control>
<control type="image">
<left>5</left>
<top>3</top>
<width>22</width>
<height>22</height>
<info>ListItem.Icon</info>
<texture>itemfocus.png</texture>
</control>
<control type="label">
<left>30</left>
<top>3</top>
<width>430</width>
<height>22</height>
<font>font13</font>
<aligny>center</aligny>
<selectedcolor>green</selectedcolor>
<align>left</align>
<info>ListItem.Label</info>
</control>
<control type="label">
<left>475</left>
<top>3</top>
<width>300</width>
<height>22</height>
<font>font13</font>
<aligny>center</aligny>
<selectedcolor>green</selectedcolor>
<textcolor>grey</textcolor>
<align>right</align>
<info>ListItem.Label2</info>
</control>
</focusedlayout>
</control>
</controls>
</window>
This files is located in c:\Users\artkh\AppData\Roaming\Kodi\addons\plugin.video.example\resources\skins\Default\720p\ .
Ths problem is in the
xml:
<itemlayout width="250" height="29">
<control type="image">
<left>5</left>
<top>3</top>
<width>22</width>
<height>22</height>
<!--<info>ListItem.Icon</info>-->
<texture>itemnofocus.png</texture>
Image itemnofocus.png not showing for inactive elements.
The file itemnofocus.png is located in the c:\Users\artkh\AppData\Roaming\Kodi\addons\plugin.video.example\resources\skins\Default\media\
How to correctly specify path to itemnofocus.png to show him in the List?