[Approved] New feature for listcontrol - textcontent3 (1 Viewer)

Migue

Retired Team Member
  • Premium Supporter
  • January 27, 2006
    381
    305
    Florida
    Usually, the third label in a listcontrol is unused except for showing TV logos. This patch allows skin creators to use the third label in other windows to display additional content.

    The new attributes are <textcontent3> and <textalign3>.

    The usage of textcontent3 is as follows:
    Code:
    <textcontent3>#property</textcontent3>
    Where #property can be one of these values:

    • #selectedindex
    • #selecteditem
    • #selecteditem2
    • #rating
    • #duration
    • #shortduration
    • #dvdlabel
    • #year
    The first screenshot shows My Videos in Shares View with textcontent3 showing the #selectedindex property.

    The second screenshot shows My Videos in Titles View sorted by year with textcontent3 showing the #shortduration property.
     

    Attachments

    • amped 2_1 label3 selectedindex.JPG
      amped 2_1 label3 selectedindex.JPG
      73.9 KB
    • amped 2_1 label3 shortduration sort year.JPG
      amped 2_1 label3 shortduration sort year.JPG
      81 KB
    • textcontent3 (using 1.1.0 tag).patch
      3.6 KB

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Sorry but no place for new features/changes in skin engine. Will consider it to after 1.1.0
    Simone
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Hi Migue,

    a quick review of the patch and all seems fine.
    Just some minor things to fix:

    • "switch (textContent)" should be "switch (textContent.ToLowerInvariant())"
    • "" should be String.Empty
    • xxx != "" should be !String.IsNullOrEmpty(xxx)

    As we are so lazy, please update the patch, retest and atatch it to the first post so we can commit ;)

    :D

    Simone
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Usually, the third label in a listcontrol is unused except for showing TV logos. This patch allows skin creators to use the third label in other windows to display additional content.

    The new attributes are <textcontent3> and <textalign3>.

    The usage of textcontent3 is as follows:
    Code:
    <textcontent3>#property</textcontent3>
    Where #property can be one of these values:

    • #selectedindex
    • #selecteditem
    • #selecteditem2
    • #rating
    • #duration
    • #shortduration
    • #dvdlabel
    • #year
    The first screenshot shows My Videos in Shares View with textcontent3 showing the #selectedindex property.

    The second screenshot shows My Videos in Titles View sorted by year with textcontent3 showing the #shortduration property.

    Looking at the patch, I can see that it can also be set with #selectedthumb (item.ThumbnailImage). Would this allow for, say recordedTV, to show the actual thumbnail? Not the channel-logo, but the thumbnail created from the recording?

    That would be übercool :cool:
     

    Users who are viewing this thread

    Top Bottom