<info> vs <texture> in a list
#1
Using the following results in different sizes. ListIte,.Icon is set to the same texture:

Code:
<control type="image">
      <posx>3</posx>
      <posy>2</posy>
      <width>15</width>
      <height>25</height>
      <texture>amt-generic-trailer.tbn</texture>
     </control>

     <control type="image">
      <posx>3</posx>
      <posy>2</posy>
      <width>15</width>
      <height>25</height>
      <info>ListItem.icon</info>
     </control>

The middle listitem.icon on the left is using <texture>. That is in the focused layout, but if i use list.tem.icon in the focused layout. They are identical.
Image

Edit: Wait I'm still testing
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Yes, it doesn't matter if it's in the focused layout or the unfocused:

Here's the control block in case i'm missing something.

Code:
<control type="list" id="60">
    <description>Category List</description>
    <posx>136</posx>
    <posy>235</posy>
    <width>330</width>
    <height>261</height>
    <onleft>2550</onleft>
    <onright>2650</onright>
    <onup>60</onup>
    <ondown>60</ondown>
    <pagecontrol>2060</pagecontrol>
    <scrolltime>200</scrolltime>
    <itemlayout height="29">
        <control type="image">
            <width>303</width>
            <height>28</height>
            <posx>15</posx>
            <posy>0</posy>
            <texture>LCARS-pixel.png</texture>
            <colordiffuse>15FFFFFF</colordiffuse>
        </control>
        <control type="image">
            <posx>3</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <!--texture>amt-generic-trailer.tbn</texture-->
            <info>ListItem.icon</info>
        </control>
        <control type="label">
            <posx>20</posx>
            <posy>3</posy>
            <width>290</width>
            <height>23</height>
            <font>lcars-medium</font>
            <aligny>center</aligny>
            <selectedcolor>FFe2ff43</selectedcolor>
            <textcolor>FFFF9900</textcolor>
            <align>left</align>
            <info>ListItem.Label</info>
        </control>
        <control type="label">
            <posx>315</posx>
            <posy>3</posy>
            <width>200</width>
            <height>23</height>
            <font>lcars-medium</font>
            <aligny>center</aligny>
            <selectedcolor>FFe2ff43</selectedcolor>
            <textcolor>FFCC99CC</textcolor>
            <align>right</align>
            <info>ListItem.Label2</info>
        </control>
        <control type="image">
            <posx>315</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <info>ListItem.Icon</info>
            <texture flipx="true" />
        </control>
    </itemlayout>
    <focusedlayout height="29">
        <control type="image">
            <width>303</width>
            <height>28</height>
            <posx>15</posx>
            <posy>0</posy>
            <texture>LCARS-pixel.png</texture>
            <colordiffuse>15FF0000</colordiffuse>
            <visible>!Control.HasFocus(60)</visible>
        </control>
        <control type="image">
            <width>303</width>
            <height>28</height>
            <posx>15</posx>
            <posy>0</posy>
            <visible>Control.HasFocus(60)</visible>
            <texture>LCARS-pixel.png</texture>
            <colordiffuse>30FF0000</colordiffuse>
        </control>
        <control type="image">
            <posx>3</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <!--info>ListItem.Icon</info-->
            <texture>amt-generic-genre.tbn</texture>
            <visible>!Control.HasFocus(60)</visible>
        </control>
        <control type="image">
            <posx>3</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <info>ListItem.Icon</info>
            <colordiffuse>FFFF0000</colordiffuse>
            <visible>Control.HasFocus(60)</visible>
        </control>
        <control type="label">
            <posx>20</posx>
            <posy>3</posy>
            <width>290</width>
            <height>23</height>
            <font>lcars-medium</font>
            <aligny>center</aligny>
            <selectedcolor>FFe2ff43</selectedcolor>
            <textcolor>FFFF9900</textcolor>
            <align>left</align>
            <info>ListItem.Label</info>
        </control>
        <control type="label">
            <posx>315</posx>
            <posy>3</posy>
            <width>200</width>
            <height>23</height>
            <font>lcars-medium</font>
            <aligny>center</aligny>
            <selectedcolor>FFe2ff43</selectedcolor>
            <textcolor>FFCC99CC</textcolor>
            <align>right</align>
            <info>ListItem.Label2</info>
            </control>
        <control type="image">
            <posx>315</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <info>ListItem.Icon</info>
            <texture flipx="true" />
            <visible>!Control.HasFocus(60)</visible>
        </control>
        <control type="image">
            <posx>315</posx>
            <posy>2</posy>
            <width>15</width>
            <height>25</height>
            <info>ListItem.Icon</info>
            <texture flipx="true" />
            <colordiffuse>FFFF0000</colordiffuse>
            <visible>Control.HasFocus(60)</visible>
        </control>
    </focusedlayout>
</control>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Listitem.* will always maintain aspect ratio in panels and lists unless you set it otherwise with <aspectratio>stretch</aspectratio> were as a normal <texture> wont if you set it to <texture>$INFO[listitem.icon]</texture> it would still be the same as <info>ListItem.icon</info>
Reply
#4
Smile thank you. It never occured to me.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
<info> vs <texture> in a list0