MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Skins


Skins You are working on a new Skin? Post it here!

Reply
 
Thread Tools Display Modes
Old 2007-10-11, 15:06   #1 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,560
Thanks: 35
Thanked 134 Times in 58 Posts

My System

Default Thumbnailpanel with more rows than columns

Hi,

spuck and I are trying to create an xml file for the xface skin and the tv-series plugin. We'd like to utilize a thumbnail panel to display seriesbanners. All works well, see screenshot below:
Screenshot with 3x3 grid that works as it should


However the problem arises as soon as a we make the thumbnailpanel high enough, so that more rows than columns fit. So the grid of NxM items works well as long as n<=m, which means the 3x3 grid in the screenshots works, while a 4x3 (or what we'd like, a 5x3) grid does not.

The problems is that the items are there, except rows below the M's row (M being the number of columns) they do not get rendered, but you can still select and interact with them (for instance the selected item's skin property gets updated (as in the screenshot in the thread below).


Screenshot in modified xface my videos page displaying a 4x3 grid incorrectly.

I have also tested this independend of the tvseries plugin, by simply altering some xml of the xface skin's video page. See the thread below for more details. It leads me to believe that this could be a bug/limitation of the thumbnailpanel, that I believe has been around for a while. But since usually there are more rows than columns (TVSeries is differente because the banners that are eing displayed are very wide but not very high), I believe very few people if any have so far run into this. I do not know of any skin/page where there are more rows than columns being displayed (are there?).

Thread with sample
Xface Skin Version 1.6 ready for download 09.06.2008

There is also a bit of discussion about it in the general xface thread, starting here
http://forum.team-mediaportal.com/sh...&postcount=500

What I'd like is someone to confirm my observations (and conclusions) - or tell me I'm an idiot - and perhaps ask if a dev could look into this "issue". If it turns out to be correct it's probably just a loop that gets exited too quickly because the assumption was made, either by mistake or on purpose, that there are always more columns than rows.

Thank you
Inker
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte

Last edited by Inker; 2007-10-11 at 15:08.
Inker is offline   Reply With Quote
Old 2007-10-12, 13:59   #2 (permalink)
Portal Designer
 
Harley's Avatar
 
Join Date: May 2004
Location: Germany
Posts: 1,132
Thanks: 177
Thanked 291 Times in 75 Posts

Country:


Default

Hi Inker,

i think you are right, have test it and have the same result like you, does not work with 3 items and 5 rows.
Will have a talk with the devs about it.

b.t.w. ...looks great the screenshots for xface

Harley
Harley is offline   Reply With Quote
Old 2007-10-12, 16:43   #3 (permalink)
Portal Member
 
DarkWader's Avatar
 
Join Date: Oct 2006
Age: 30
Posts: 260
Thanks: 2
Thanked 6 Times in 6 Posts

Country:

My System

Default

Indeed it looks great, but for this to work properly, the CurrentView stuff need to be reworked.
Perhaps integrate it with the action menu?

For my own use, I deactivated this function for now, and removed the stuff from my .xml.
DarkWader is online now   Reply With Quote
Old 2007-10-12, 21:18   #4 (permalink)
Portal Member
 
Join Date: Apr 2005
Location: Southeast
Age: 36
Posts: 606
Thanks: 6
Thanked 35 Times in 24 Posts

Country:


Default

Quote:
Originally Posted by Inker View Post
What I'd like is someone to confirm my observations (and conclusions) - or tell me I'm an idiot - and perhaps ask if a dev could look into this "issue". If it turns out to be correct it's probably just a loop that gets exited too quickly because the assumption was made, either by mistake or on purpose, that there are always more columns than rows.
Hi,

I do not know if you are still looking for an answer here but I think the bug is
in GUIThumbnailPanel.cs about line 578 in the Render method.

I think this:
Code:
RenderItem(timePassed, iRow * _rowCount + iCol, bFocus, dwPosX, dwPosY, pItem, i == 0);
Should be replaced with:
Code:
RenderItem(timePassed, iRow * _columnCount + iCol, bFocus, dwPosX, dwPosY, pItem, i == 0);

Using _rowCount causes the button number to go over the actual number of buttons available.


Screenshot is using the sample you suggested changing common.facade.video.xml

HTH,
patrick
Attached Thumbnails
thumbnailpanel-more-rows-than-columns-panelscreenshot.jpg  
patrick is offline   Reply With Quote
This User Say Thank You:
Old 2007-10-12, 21:47   #5 (permalink)
Portal Member
 
spuck's Avatar
 
Join Date: Apr 2007
Location: north pole
Age: 21
Posts: 326
Thanks: 12
Thanked 51 Times in 29 Posts

Country:

My System

Default

Please do add it to the next SVN!

Quote:
Originally Posted by DarkWader View Post
Indeed it looks great, but for this to work properly, the CurrentView stuff need to be reworked.
Perhaps integrate it with the action menu?
That'd actually be nice, I do often accidentally press left and right, kind of annoying.
spuck is online now   Reply With Quote
Old 2007-10-13, 16:41   #6 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,560
Thanks: 35
Thanked 134 Times in 58 Posts

My System

Default

Quote:
Originally Posted by patrick View Post
Quote:
Originally Posted by Inker View Post
What I'd like is someone to confirm my observations (and conclusions) - or tell me I'm an idiot - and perhaps ask if a dev could look into this "issue". If it turns out to be correct it's probably just a loop that gets exited too quickly because the assumption was made, either by mistake or on purpose, that there are always more columns than rows.
Hi,

I do not know if you are still looking for an answer here but I think the bug is
in GUIThumbnailPanel.cs about line 578 in the Render method.

I think this:
Code:
RenderItem(timePassed, iRow * _rowCount + iCol, bFocus, dwPosX, dwPosY, pItem, i == 0);
Should be replaced with:
Code:
RenderItem(timePassed, iRow * _columnCount + iCol, bFocus, dwPosX, dwPosY, pItem, i == 0);

Using _rowCount causes the button number to go over the actual number of buttons available.


Screenshot is using the sample you suggested changing common.facade.video.xml

HTH,
patrick
Thanks! I hope it can get patched soon :-)
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Old 2007-10-14, 22:35   #7 (permalink)
Portal Member
 
GazpachoKing's Avatar
 
Join Date: Feb 2006
Posts: 51
Thanks: 7
Thanked 8 Times in 6 Posts


Send a message via AIM to GazpachoKing
Default

So, patience is not one of my virtues and I am really excited to get 5 rows working. I haven't compiled the SVN before so I am not sure my logic is sound, but I am at work right now and recompiled core.dll with the patched line by patrick. Can we just copy this over the current core.dll and have it work? I'll test it when I get home tonight, but if anyone else is feeling adventurous I'll attach the core.dll here.
Attached Files
File Type: zip Core.zip (650.4 KB, 61 views)
GazpachoKing is offline   Reply With Quote
3 Users Say Thank You:
Old 2007-10-14, 22:44   #8 (permalink)
Portal Member
 
DarkWader's Avatar
 
Join Date: Oct 2006
Age: 30
Posts: 260
Thanks: 2
Thanked 6 Times in 6 Posts

Country:

My System

Default

hehe....

It works
DarkWader is online now   Reply With Quote
Old 2007-10-14, 22:45   #9 (permalink)
Portal Member
 
GazpachoKing's Avatar
 
Join Date: Feb 2006
Posts: 51
Thanks: 7
Thanked 8 Times in 6 Posts


Send a message via AIM to GazpachoKing
Default

Sweet, work can not end soon enough.
GazpachoKing is offline   Reply With Quote
Old 2007-10-15, 00:28   #10 (permalink)
Portal Member
 
Join Date: Jan 2007
Posts: 62
Thanks: 6
Thanked 1 Time in 1 Post

Country:


Default

Looks amazing, big thank you to everyone involved in making this happen.

[Edit] I increased the height of the thumbnail panel so the rows of banners would be spread apart more. Now that I have more space between rows, does anybody know how to make the blue border around a selected banner bigger?

Last edited by WalkmanAA; 2007-10-15 at 00:55.
WalkmanAA is offline   Reply With Quote
Reply

Bookmarks

Tags
columns, rows, thumbnailpanel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create own (dynamic) thumbnailpanel? eightyf Plugins 7 2007-07-16 18:46
How did this happen? - Reflections disappear within a thumbnailpanel eightyf Skins 12 2007-07-01 12:20
Less rows in EPG to allow bigger fonts gemini Skins 8 2006-09-26 21:05
Adjustable Columns, and why is all text cutoff? havix MediaPortal 1 Talk 3 2006-09-20 20:06
Number of rows in pictures modules Anonymous Improvement Suggestions 2 2004-04-26 17:13


All times are GMT +1. The time now is 15:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden