Apple Movie Trailers script skin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #1
*XBMC Revision 9504 or newer required

Here are a few screenshots of the updated Apple Movie Trailers script using WindowXML.

The script works the same as XBMC Lyrics where you can include the xml files with your skin, so no need to submit them to me. If you have any suggestions, please post. I want to have the id#'s finaled so I don't break skins.

You may notice this is the WS version. The skinner can decide to show all info on the screen. The plot/cast button is still available if you need to only show one at a time.

Thanks to Jezz_X for his help. Alot of the layout was done by him for PMIII.

[Image: screenshot000.PNG]
[Image: screenshot001.PNG]
[Image: screenshot002.PNG]
[Image: screenshot003.PNG]


Quote: CONTROL_TITLE_LABEL = 20
CONTROL_CATEGORY_LABEL = 30
CONTROL_BUTTON_GROUP_START = 103
CONTROL_BUTTON_GROUP_END = 109
CONTROL_TRAILER_LIST_START = 50
CONTROL_TRAILER_LIST_END = 59
CONTROL_TRAILER_LIST_PAGE_START = 2050
CONTROL_TRAILER_LIST_PAGE_END = 2059
CONTROL_TRAILER_LIST_COUNT = 2150
CONTROL_CATEGORY_LIST = 60
CONTROL_CATEGORY_LIST_PAGE = 2060
CONTROL_CATEGORY_LIST_COUNT = 2160
CONTROL_CAST_LIST = 70
CONTROL_CAST_LIST_PAGE = 2070
CONTROL_CAST_BUTTON = 170
CONTROL_PLOT_TEXTBOX = 75
CONTROL_PLOT_BUTTON = 175
CONTROL_TRAILER_POSTER = 201
CONTROL_OVERLAY_RATING = 202
CONTROL_OVERLAY_FAVORITE = 203
CONTROL_OVERLAY_WATCHED = 204
CONTROL_OVERLAY_SAVED = 205
CONTROL_TRAILER_TITLE_LABEL = 206

Other xml files have required id's also, just follow the xml's

There are still some quirks, but it seems to work pretty good now.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2007-07-06 16:22 by Nuka1195.)
find quote
Jezz_X Online
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
hehe all hail windowxml
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #3
Ok committed.

The following are the required ID numbers, though you should be able to hide unwanted controls.

Quote: CONTROL_TITLE_LABEL = 20
CONTROL_CATEGORY_LABEL = 30
CONTROL_BUTTON_GROUP_START = 103
CONTROL_BUTTON_GROUP_END = 109
CONTROL_TRAILER_LIST_START = 50
CONTROL_TRAILER_LIST_END = 59
CONTROL_TRAILER_LIST_PAGE_START = 2050
CONTROL_TRAILER_LIST_PAGE_END = 2059
CONTROL_TRAILER_LIST_COUNT = 2150
CONTROL_CATEGORY_LIST = 60
CONTROL_CATEGORY_LIST_PAGE = 2060
CONTROL_CATEGORY_LIST_COUNT = 2160
CONTROL_CAST_LIST = 70
CONTROL_CAST_LIST_PAGE = 2070
CONTROL_CAST_BUTTON = 170
CONTROL_PLOT_TEXTBOX = 75
CONTROL_PLOT_BUTTON = 175

notes:

ID="50" must be a type="list", the others 51-59, can be the other types.

Be careful using group control's, if you move to a list by referencing the group, the list will not work correctly. I need a way to have specific id's for that.

Currently XBMC locks up after a trailer is played, if the trailer was launched from id="50" the list. If you launch from one of the other views it works. May be a script issue, may be a WindowXML issue, may be an XBMC issue?

I'm taking a break from this, but if you have any request, please post them. Maybe Killarny or someone else can add them if I'm too busy.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #4
Edited first post

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #5
Alright skinners and translators. I think I'm done.

Skinners there have been quite a few additions and improvements. Most of your skin that worked with 97.5 will work with maybe some id number changes and adding groups where needed.

Most controls with id numbers are required. You may hide ones you don't want.

The main window uses groups to hide/show the categories or trailer lists. All other controls you control with visibility and animation conditions.

There are some new windows (search).

The chooser dialog now uses a multiimage for the skin thumb.

Of course now every window can take full advantage of <include> tags and defaults.xml. Anything that works for your main skin should work here. Themes, color themes...

*XBMC Revision 9504 or newer required

It is worth updating your skins. Smile

http://xbmc-scripting.googlecode.com/svn...20Trailers[url=https://xbmc-scripting.googlecode.com/svn/trunk/Apple%20Movie%20Trailers][/url]

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2007-07-06 17:25 by Nuka1195.)
find quote
navanman Offline
Member
Posts: 78
Joined: Mar 2007
Reputation: 0
Post: #6
I get prompted for username and pw if i click on your link to download AMT.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #7
the link is to svn. you need tortoisesvn to download it.

Fixed: the link.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #8
As a script it works great mate...the only issue I am having at the moment, is that the trailers stop the sound part-way through the trailer.

I can still watch the trailer (no matter what trailer I am watching), but the sound just stops.

Any ideas?
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #9
which trailer? the high quality transformers just played fine.

I'm sure it's not a script issue though.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #10
hmmm ok mate. I happens to almost all of the trailers I watch though
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #11
@Jyra, maybe check your log. I really don't think it's a script issue though.

Here are a couple SS of LCARS skin I just committed. It's a WIP. Only the main window is started.

Anybody wish to contribute, especially animations Smile


[Image: LCARS-thumbnail1.png]
[Image: LCARS-thumbnail2.png]

To get the font correct. You need to download lcars.ttf. It can be found http://www.lcarsdeveloper.com/ in the DL section.

Then you need to add the following to the correct Font.xml, in the correct font you're using.

This is for 720p (The skin is really only setup for widescreen)
Code:
<font>
  <name>lcars-small</name>
  <filename>lcars.ttf</filename>
  <size>34</size>
</font>
<font>
  <name>lcars-medium</name>
  <filename>lcars.ttf</filename>
  <size>38</size>
</font>
<font>
  <name>lcars-large</name>
  <filename>lcars.ttf</filename>
  <size>66</size>
</font>

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2007-07-08 22:04 by Nuka1195.)
find quote
MDPauley Offline
Senior Member
Posts: 264
Joined: Mar 2004
Reputation: 0
Location: Vienna, Va
Post: #12
Is the xTV skin for AMT under active developement?
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #13
I'm not sure it is. I think CHI3f is doing other things at the moment. You might, however, want to track down Leonardo, to see if he would like to do it for xMC?

pretty much the same outcome imo.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #14
Anybody who uses AMT script should update. I just committed a fix for a pretty serious bug.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #15
what was the bug Nuka
find quote
Post Reply