Posts: 117
Joined: Mar 2009
Reputation:
0
Hi again everyone,
As you know I'm a rank beginner when it comes to skinning. My starting base is the "empty" skin which I am modding/rewriting to achieve what I want.
Today I want to do some work on my Movies view, so I opened up myvideonav.xml to have a look. I can't see anywhere in there where the different views for say Movies and TV Shows are.
If I code a view directly into myvideonav.xml is that going to be the default view for everything video related?
How to a specify that for Movies I want view 1 and for TV Shows I want view 2 etc? For that matter for TV Shows I'd want view 3 and for TV Episodes I'd want view 3 etc, you get the point.
I don't want to start just coding only to find out later that I have to redo it all to get my differing views.
If someone could give me a brief overview of the process for creating different views I'd appreciate it.
Thanks in advance.
Alistair
Posts: 117
Joined: Mar 2009
Reputation:
0
I've just done a search in the wiki for "Container.Content" and it came up blank....AARGH!
Is it surrounded by <content></content>?
Posts: 117
Joined: Mar 2009
Reputation:
0
I've had a look through the example code you linked to in the other post and I can see where you've put the Container.Content(Movies) between the <visible></visible> tags but isn't that telling xbmc that that view is only visible if the container is showing movies (or any of the other conditions listed)?
What I need to know is HOW to tell the container that it's showing Movies (instead of say TV Shows).
All very confusing.
Posts: 117
Joined: Mar 2009
Reputation:
0
Thanks for your reply Hitcher.
Yeah I understand that the stuff between the <visible></visible> tags are conditions for telling xbmc when to show the views but I'm struggling with how to set the content of a container.
For instance, I have the "Movies" button on my home menu set to take me to videolibrary,movietitles and in my commonviews.xml file have a view called movielist that has
<visible>Window.IsActive(25)</visible>
I have then put
<include>movielist</include>
into my MyVideoNav.xml file but at the moment all I get is a blank screen.
Not even the hard coded images are showing up never mind the list of movies! I despair.
I think somewhere on a basic level I'm understanding it all wrong lol
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
a black screen is often an indication of some bad (invalid) xml code.
Posts: 17,417
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,417
Indeed, what are you using to edit and check the code?
Posts: 117
Joined: Mar 2009
Reputation:
0
At the minute I'm using Dashcode but even if I comment out everything I've added with <!-- --> I still get the blank screen. It's as if it has opened on a screen because it takes me two or three taps of the esc key to get back to the home menu. I'm thinking it's because I'm using a white background and the Empty skin uses a lot of white text but I could be wrong.
Posts: 117
Joined: Mar 2009
Reputation:
0
Oh for crying out loud I'm an absolute dope!! I was editing the MyVideoNav.xml file from a different skin....I'm SO sorry guys give me five minutes or so to see if it works with the right bloody skin
God I feel stupid :|
Posts: 17,417
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,417
Don't worry about, I've done the same thing myself before.
Posts: 117
Joined: Mar 2009
Reputation:
0
OK I've commented out the main group that contained everything and I'm finally getting something, just not my movie list.
How do I tell the skin that my list needs to contain my movies?
Posts: 117
Joined: Mar 2009
Reputation:
0
Aha! The problem was that I wasn't specifying width and height for my images doh!