XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2009-11-07, 13:55   #1
MEvil
Member
 
Join Date: Jul 2009
Posts: 31
MEvil is on a distinguished road
Default Script using current skin

Hello,

I started to look into creating a Script for XBMC and after getting my first little form to work, a big question arose.

The controls I added had no style at all. I naively thought that all controls would have the standard style of the current skin in XBMC (e.g. a button would have the texture and style of a button in the skin). Now it seems I not only need to be a coder to create a Script, but also a skinner ...

I searched the forums if there is no way to use the current style of the skin, but didn't get an exact answer, although it seems not to be possible. Is this true? It's clear to me, that the script can't adept to the overall UI of the skin. I just thought the basic controls like buttons, lists, etc. would have the same style.

Regards,
Steffen
MEvil is offline   Reply With Quote
Old 2009-11-08, 05:20   #2
rwparris2
Team-XBMC Python Coder
 
Join Date: Jan 2008
Location: US
Posts: 1,299
rwparris2 is on a distinguished road
Default

If you want the skin's native look, make a plugin, not a script.
__________________

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/


rwparris2 is offline   Reply With Quote
Old 2009-11-10, 05:19   #3
bmillham
Member
 
Join Date: Aug 2009
Location: Rixeyville, VA, USA
Posts: 33
bmillham is on a distinguished road
Default

I found that you can use WindowXML('MyVideo.xml'...) and get the MyVideo window for the current skin. It seems to mostly work, but at least in with the PM3.HD skin, some of the list view don't work properly, but they do work for Project Mayhem III. I haven't tried any other skins.

I also haven't tried to see if you can override some of the defaults (in my case I want to change most of the buttons, but keep the lists)

I'll keep you posted if I figure out a good way to do this (my work will be focused on video)
bmillham is offline   Reply With Quote
Old 2009-11-12, 20:04   #4
MEvil
Member
 
Join Date: Jul 2009
Posts: 31
MEvil is on a distinguished road
Default

Well, I stopped on this idea. I found another way to get what I wanted with a script.

But maybe someone consideres this to work in the future. Would be really nice

bmillham:
Thanks for the post. Regardless of what I wrote above, I would be interested in your results.

Regards,
Steffen
MEvil is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +2. The time now is 05:52.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project