Complex scripts
#1
I'm trying to write a script to display an EPG type grid for a demonstration and then tell the player to change to specific urls in response to the channel selected.

I know the scripts framework is in a state of flux with Dharma (which is what I am using), and have gotten a simple grid of labels and buttons displaying relevant info working.

I would like to "draw" graphics primitives to add some graphical structure to my EPG grid. I can see that xbmcgui does not have such primitives and wondered what is the recommended way to achieve the same effect. Manipulating images does not seem a natural way to do this.

I'm a newbie at XBMC and the autogenerated docs of xbmcgui classes are a little lacking in context sometimes, can you suggest a complex script in which I can learn by example how to write larger script applications.

Regards

SA
Reply
#2
The AMT script is reasonably complex, but it uses winxml almost exclusively.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
I've had a look at that, but thought that winxml would not be able to construct such a complex UI. I'm a newbie and never tried winxml so I don't know what it can and cannot do.

SA
Reply
#4
Well, it depends - if you need dynamic controls, then you'd have to do that yourself from the python side. If you don't need dynamic controls, then it can be done from the skin side.

It might, however, be better to take a nosy through the pvr branch, which does have an EPG style control. It's not necessarily final, and isn't currently exposed to python, but it may be what you need, or you may see an alternative way to do it using that.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
see what you can do:

http://passion-xbmc.org/jeuxgames-pour-x.../#msg56505

http://passion-xbmc.org/developpement-py.../#msg54167
Reply
#6
ppic Wrote:see what you can do:

http://passion-xbmc.org/jeuxgames-pour-x.../#msg56505

http://passion-xbmc.org/developpement-py.../#msg54167

Thanks, hopefully the games won't distract me too much, so I can do some work ;-)

Do you have a link to download the graphics primitives library, french was never my strong point and google translate did a half decent translation but I couldn't find the link to download.

TIA

SA
Reply
#7
http://passion-xbmc.org/developpement-py...ttach=3102

and some other game to distract you Big Grin

http://passion-xbmc.org/jeuxgames-pour-xbmc/
Reply

Logout Mark Read Team Forum Stats Members Help
Complex scripts0