home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
New idea for scrolling (borrowed from XBMC)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="pilehave" data-source="post: 666816" data-attributes="member: 71550"><p>Hi!</p><p></p><p>I have crafted a small mod for MediaPortal to allow this:</p><p></p><p>Show the first letter of #selectedindex as an independent label when scrolling. The label is only shown when you hold the up or down key down:</p><p></p><p>[ATTACH]69610[/ATTACH]</p><p></p><p>This is a common feature in XBMC, where they use a property called "Container.Scrolling" that indicates if the user is scrolling. If you have tried XBMC and used the built-in skin Confluence you will know this:</p><p></p><p>[ATTACH]69613[/ATTACH]</p><p></p><p>The code in the skin for this new feature is this:</p><p></p><p>[CODE]</p><p> <control></p><p> <description>listscroller bg</description></p><p> <type>image</type></p><p> <id>1</id></p><p> <posX>600</posX></p><p> <posY>678</posY></p><p> <width>78</width></p><p> <height>90</height></p><p> <texture>listscroller_bg.png</texture></p><p> <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible></p><p> <animation effect="slide" start="0,50" end="0,0" time="200">visible</animation></p><p> </control></p><p> </p><p> <control></p><p> <type>label</type></p><p> <id>1</id></p><p> <posX>600</posX></p><p> <posY>680</posY></p><p> <width>78</width></p><p> <height>90</height></p><p> <label>#selecteditem.firstchar</label></p><p> <textcolor>6aa5cb</textcolor></p><p> <font>Segoe Light20</font></p><p> <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible></p><p> <animation effect="slide" start="0,50" end="0,0" time="200">visible</animation></p><p> <align>center</align></p><p> <valign>middle</valign></p><p> </control></p><p>[/CODE]</p><p></p><p>The result of my mod is shown in the screenshot with Maya, and my video on YouTube. Now, my changes were put directly in the GUIListControl.cs and they are probably not the most elegant way (using a timer for hiding the label again when user stops scrolling). But it seems simple to me, just as a proof of concept.</p><p></p><p>I would love to see a more general change to MediaPortal, to expose to the skin when the user is scrolling.</p><p></p><p><a href="http://www.youtube.com/watch?v=1NKVmnfyhxU" target="_blank">Video on YouTube</a></p><p></p><p>Please let me know if you think this is a good idea, or you know a better way to do it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="pilehave, post: 666816, member: 71550"] Hi! I have crafted a small mod for MediaPortal to allow this: Show the first letter of #selectedindex as an independent label when scrolling. The label is only shown when you hold the up or down key down: [ATTACH]69610.vB[/ATTACH] This is a common feature in XBMC, where they use a property called "Container.Scrolling" that indicates if the user is scrolling. If you have tried XBMC and used the built-in skin Confluence you will know this: [ATTACH]69613.vB[/ATTACH] The code in the skin for this new feature is this: [CODE] <control> <description>listscroller bg</description> <type>image</type> <id>1</id> <posX>600</posX> <posY>678</posY> <width>78</width> <height>90</height> <texture>listscroller_bg.png</texture> <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible> <animation effect="slide" start="0,50" end="0,0" time="200">visible</animation> </control> <control> <type>label</type> <id>1</id> <posX>600</posX> <posY>680</posY> <width>78</width> <height>90</height> <label>#selecteditem.firstchar</label> <textcolor>6aa5cb</textcolor> <font>Segoe Light20</font> <visible>facadeview.list+string.contains(#scrolling.up,yes)|string.contains(#scrolling.down,yes)</visible> <animation effect="slide" start="0,50" end="0,0" time="200">visible</animation> <align>center</align> <valign>middle</valign> </control> [/CODE] The result of my mod is shown in the screenshot with Maya, and my video on YouTube. Now, my changes were put directly in the GUIListControl.cs and they are probably not the most elegant way (using a timer for hiding the label again when user stops scrolling). But it seems simple to me, just as a proof of concept. I would love to see a more general change to MediaPortal, to expose to the skin when the user is scrolling. [URL="http://www.youtube.com/watch?v=1NKVmnfyhxU"]Video on YouTube[/URL] Please let me know if you think this is a good idea, or you know a better way to do it ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
New idea for scrolling (borrowed from XBMC)
Contact us
RSS
Top
Bottom