MediaPortal Forums HTPC/MediaCenter

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


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2007-10-03, 03:20   #1 (permalink)
Portal Member
 
no1spirite's Avatar
 
Join Date: May 2007
Location: Herts
Posts: 16
Thanks: 2
Thanked 3 Times in 2 Posts

Country:


Default MyFootball - layout help

Hi All,

I've started writing a MyFootball plugin which will eventually show results, fixtures, tables, etc for all the major leagues. Heres my first attempt (only results for english leagues at the moment) but I'm having problems displaying the layouts for the scores.

Ideally I would want team1 in one column (right aligned), the score in another column (center aligned) and team2 in another column (left aligned). At the moment I'm storing the whole string in a textbox with "\n" and "\t" doing the formatting. Adding three seperate text boxes side by side results in having three seperate spincontrols.

Anyone got any ideas?

Cheers,

no1spirite

Last edited by no1spirite; 2007-10-06 at 14:13.
no1spirite is offline   Reply With Quote
Old 2007-10-03, 04:36   #2 (permalink)
Portal Member
 
no1spirite's Avatar
 
Join Date: May 2007
Location: Herts
Posts: 16
Thanks: 2
Thanked 3 Times in 2 Posts

Country:


Default

Just an after thought. Can this be done using a gridcontrol? Theres not much documentation on this control so can someone point me in the way of an example.

Cheers,

no1spirite
no1spirite is offline   Reply With Quote
Old 2007-10-04, 22:02   #3 (permalink)
Portal Member
 
no1spirite's Avatar
 
Join Date: May 2007
Location: Herts
Posts: 16
Thanks: 2
Thanked 3 Times in 2 Posts

Country:


Default

Still nothings guys?!

I've tried creating a group with gridlayout

Code:
<control>
<type>group</type>
<layout>GridLayout(3, 0)</layout>
<posX>255</posX>
<posY>170</posY>
<id>16</id>
.....
.....
The idea was to dynamically create labels for each data element and then display these within the group. The code I have so far for this is....

Code:
[SkinControlAttribute(16)] protected GUIGroup newGroup = null;
.....
.....

GUILabelControl newLabel = new GUILabelControl(GetID, ......);
newGroup.Children.Add(newLabel);
...but it aint working. What am I missing to dynamically create and display controls?

Thanks in advance



[EDIT]

I go it. I wasn't including the Control.Visible method

[/EDIT]

Last edited by no1spirite; 2007-10-06 at 02:32.
no1spirite is offline   Reply With Quote
Old 2007-10-06, 02:24   #4 (permalink)
Portal Member
 
no1spirite's Avatar
 
Join Date: May 2007
Location: Herts
Posts: 16
Thanks: 2
Thanked 3 Times in 2 Posts

Country:


Default League Tables added

For anyone who is interested on the progress of this plugin I've also added the league table listings and results for the following leagues.

English Premier League
English Champions League
English League One
English League Two
Spanish La Liga
German Bundesliga
Italian Serie A
Dutch Eredivisie
Portuguese Liga
French Ligue 1

I've also included the results for the Champions League and Uefa Cup but no leagues as yet,

Next steps:
1) Add fixture listings
2) Add more leagues (Austrian, Belgium, Scottish, Norway, etc)
3) Add scorers, bookings and sending offs to the results
4) Add internationals

Let me know if anyone has got any ideas for other things to add.

I know it's not pretty (especially in widescreen) but I'll concentrate on the cosmetics once I have the functionality.

Also, I'm still struggling with the layout. Each element (team, score, games played, points, etc) is displayed in its own individual label that's created on the fly. This cause a problem with not being able to scroll down the page if elements go beyond the bottom of the screen (see the UEFA cup results as an example). Anyone got any ideas of pure genius on how I can layout the elements?

I'll keep you posted.

P.S I wish someone would say something. It's getting lonely in this thread all alone
Attached Files
File Type: rar MyFootball.rar (2.15 MB, 9 views)

Last edited by no1spirite; 2007-10-06 at 02:28.
no1spirite is offline   Reply With Quote
This User Say Thank You:
Old 2007-10-06, 10:08   #5 (permalink)
Portal Designer
 
Psycho Reptile's Avatar
 
Join Date: Apr 2006
Location: Hertfordshire, England
Age: 34
Posts: 918
Thanks: 243
Thanked 285 Times in 86 Posts

Country:

My System

Default

Something . Developing and maintaining plugins / skins for MP can be lonely sometimes. Keep up the good work. If only it was rugby and not football, come on South Africa RWC2007!!!
__________________
If you think you've found a bug in my Indigo/Monochrome/ReVision/Replicant skin, please post whether occurs using the Blue Two wide skin...
Download Indigo/Monochrome/ReVision/Replicant
Psycho Reptile is offline   Reply With Quote
Old 2007-10-06, 14:02   #6 (permalink)
Portal Member
 
Join Date: Jun 2007
Posts: 86
Thanks: 8
Thanked 12 Times in 6 Posts

Country:


Default

I tried it with latest svn and blue two wide and replicant. Crashed mediaportal both times after choosing the plugin in the menu.
Vattenmelon is offline   Reply With Quote
Old 2007-10-06, 14:13   #7 (permalink)
Portal Member
 
no1spirite's Avatar
 
Join Date: May 2007
Location: Herts
Posts: 16
Thanks: 2
Thanked 3 Times in 2 Posts

Country:


Default

Is anyone else having the same probs as Vattenmelon?

In the meantime, I have added the rugby results just for you Psycho. Good exercise to see how easy it is to port across to other sports. Maybe I should call it 'MySportsScores' or something.

Anyways, you boys have an easy route to the finals. Fiji then Scotland or Argentina. Come on, how easy do you need it.

C'mon England (although we aint got a chance).
Attached Files
File Type: rar MyFootball.rar (2.16 MB, 9 views)

Last edited by no1spirite; 2007-10-06 at 14:17.
no1spirite is offline   Reply With Quote
Old 2007-10-06, 20:14   #8 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts

Country:

My System

Default

HAHA!! That really sucks, I got really excited when I saw "football" from an american point of view.....oh well. good luck to you!
rolls1400 is online now   Reply With Quote
Old 2007-10-07, 14:57   #9 (permalink)
Portal Member
 
Join Date: Jun 2007
Posts: 86
Thanks: 8
Thanked 12 Times in 6 Posts

Country:


Default

After some more tries, I found out that the problem occurs when I press the up or down arrow on the remote. If I use the mouse to select the buttons, It works.
Vattenmelon is offline   Reply With Quote
Old 2007-10-07, 17:08   #10 (permalink)
Portal Designer
 
Psycho Reptile's Avatar
 
Join Date: Apr 2006
Location: Hertfordshire, England
Age: 34
Posts: 918
Thanks: 243
Thanked 285 Times in 86 Posts

Country:

My System

Default

Quote:
Originally Posted by no1spirite View Post
I have added the rugby results just for you Psycho.
.....
Anyways, you boys have an easy route to the finals. Fiji then Scotland or Argentina. Come on, how easy do you need it.

C'mon England (although we aint got a chance).
Thanks for adding the rugby results sprite , although I haven't had a chance to try your plugin yet .

So much for the easy route to the filal, well tried Fiji!!!
__________________
If you think you've found a bug in my Indigo/Monochrome/ReVision/Replicant skin, please post whether occurs using the Blue Two wide skin...
Download Indigo/Monochrome/ReVision/Replicant
Psycho Reptile is offline   Reply With Quote
Reply

Bookmarks

Tags
layout, myfootball

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
Question about layout mfwilli My Films 1 2007-05-18 07:55
Changing EPG layout Rob755 WebEPG 0 2006-10-30 14:27


All times are GMT +1. The time now is 04:58.


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