Help moding view
#1
Hi fellow Transparency users.
First of all thanks to the creators and modders for making and developing this great skin. My favourite by far as a person who greatly admires fanart.

I would like to request some help modding this great skin, making a new view.
What I would like to do is take the Fanart view, and instead of having names in the right for scrolling, then use the banners.
So taking this
Image

And making it into something like this (quickly made in photoshop).
Image

Would anyone be able to assist me achieve this? Any help would be greatly appreciated! (I do know basic xml but I must admit that even after trying to read the FAQ and what info about the skin I could find I am still rather confused).
Reply
#2
the file you need to edit is View-Fanart.xml
look up the <itemlayout..> and <focusedlayout..> section at the top of the file.

basically you want to replace:
Code:
<control type="label">
    <posx>10</posx>
    <posy>0</posy>
    <width>305</width>
    <height>30</height>
    <font>font-20</font>
    <textcolor>white</textcolor>
    <selectedcolor>blue</selectedcolor>
    <align>left</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Label]</label>
</control>

with:
Code:
<control type="label">
    <posx>10</posx>
    <posy>0</posy>
    <width>305</width>
    <height>30</height>
    <font>font-20</font>
    <textcolor>white</textcolor>
    <selectedcolor>blue</selectedcolor>
    <align>left</align>
    <aligny>center</aligny>
    <label>$INFO[ListItem.Label]</label>
[b]    <visible>!Container.Content(TVShows)</visible>[/b]
</control>
[b]<control type="image">
    <posx>10</posx>
    <posy>0</posy>
    <width>305</width>
    <height>90</height>
    <texture>$INFO[ListItem.Icon]</texture>
    <visible>Container.Content(TVShows)</visible>
</control>[/b]
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Hi Ronie,

Thanks a bunch for the info!
I will tinker around with it when I get home, and should I end up getting something useful out of it I will share it here!

Yet again thanks for the helpful input :]
Reply
#4
Hi Ronie,

I have now been tinkering with it, but so far I have been unable to make it work.
No matter how I try to apply these changes I render the skin unloadble it seems.

The basics for both item and focus are
Code:
<control type="label">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>310</width>
                    <height>30</height>
                    <font>font-20</font>
                    <textcolor>white</textcolor>
                    <selectedcolor>blue</selectedcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                </control>
                <control type="image">
                    <posx>320</posx>
                    <posy>0</posy>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <texture>$INFO[ListItem.Overlay]</texture>
                    <visible>[Container.Content(Movies) + !Skin.HasSetting(Enable_Movies_Watched_Flags)] | [Container.Content(TVShows) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(Seasons) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(Episodes) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(MusicVideos) + !Skin.HasSetting(Enable_MusicVideos_Watched_Flags)]</visible>
                </control>

And for focus
Code:
<control type="label">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>310</width>
                    <height>30</height>
                    <font>font-20</font>
                    <textcolor>white</textcolor>
                    <selectedcolor>blue</selectedcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                </control>
                <control type="image">
                    <posx>320</posx>
                    <posy>0</posy>
                    <width>30</width>
                    <height>30</height>
                    <aspectratio>keep</aspectratio>
                    <texture>$INFO[ListItem.Overlay]</texture>
                    <visible>[Container.Content(Movies) + !Skin.HasSetting(Enable_Movies_Watched_Flags)] | [Container.Content(TVShows) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(Seasons) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(Episodes) + !Skin.HasSetting(Enable_TVShows_Watched_Flags)] | [Container.Content(MusicVideos) + !Skin.HasSetting(Enable_MusicVideos_Watched_Flags)]</visible>
                </control>

Would you be able to tell me how these needs to look? I have tried modifying them to your values in various ways but I can't seem to be able to make it work >_<'

If you have the time to show exactly how it needs to look it would be very much appreciated, I seem to be simply to stupid/inexperienced to make it work myself : /

Or maybe if you could simply point out if something needs to be removed or if its only the values that needs changing?

Best regards

Xami
Reply
#5
xami Wrote:Hi Ronie,

I have now been tinkering with it, but so far I have been unable to make it work.
No matter how I try to apply these changes I render the skin unloadble it seems.

if you get a black screen there's an error somewhere in the xml code.

xami Wrote:If you have the time to show exactly how it needs to look it would be very much appreciated, I seem to be simply to stupid/inexperienced to make it work myself : /

sorry, i don't mind giving some pointers (as i already did) but i really don't have the time to create personalized mods for you or anyone else.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
Hi Ronie,

I understand that, no problem.
I don't get a black screen though, when I edit the view it doesn't show up at all, I can't select or even see the view in XBMC.
Reply
#7
xami Wrote:I don't get a black screen though, when I edit the view it doesn't show up at all, I can't select or even see the view in XBMC.

basically the same issue, there's an xml error in View-Fanart.xml somewhere.

btw. the code i've posted above is to be used with the svn version of T!
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#8
Hi Ronie,
Ah its for SV, was using a stable version.
Ill try switching to SV and see if I can make it work. Thanks ^^
Reply
#9
hey xami,

just wondering if you ever got that mod to work. I love the fanart view as well but I feel like im missing out on those banners! This would be perfect. Using the tv logos is perhaps another route that alot of people seem to be turning to lately.
Reply
#10
Hi noahE,

I haven't been able to make it work so far.
When ever I had <visible>!Container.Content(TVShows)<visible> to the view, the view cannot be chosen in the skin.

I have tried a lot of different approaches but so far I haven't been able to work out why : /
Reply
#11
BTW,
Where can I download the SVN version?
[EDIT]
Nevermind... nice work!
Reply
#12
JDizzy,
Should you happen to find a way making it work, or make any progress at all you are most welcome to post it here. If I should get some of it working I will do likewise Smile
Reply
#13
xami Wrote:JDizzy,
Should you happen to find a way making it work, or make any progress at all you are most welcome to post it here. If I should get some of it working I will do likewise Smile

I gave up! It would have been a nice view but no matter what I tried, I never got it to work.
Reply
#14
Hi.

I stumbled into this thread and it looked like an interesting idea.
I've been playing around with the Fanart-view a little bit, here's what I've got so far:

Image

Here's the changes in View-Fanart.xml. (itemlayout and focusedlayout sections)
Code:
<itemlayout width="355" height="70">
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>355</width>
                    <height>90</height>
                    <texture border="7">list-nofocus.png</texture>
                    <include>VisibleFadeEffect</include>
                </control>
                <control type="label">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>355</width>
                    <height>90</height>
                    <font>font-20</font>
                    <textcolor>white</textcolor>
                    <selectedcolor>blue</selectedcolor>            
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                    <visible>!Container.Content(TVShows)</visible>
                </control>
                    <control type="image">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>345</width>
                    <height>90</height>                
                    <texture>$INFO[ListItem.Icon]</texture>
                    <visible>Container.Content(TVShows)</visible>
                </control>
            </itemlayout>
            <focusedlayout width="355" height="70">
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>355</width>
                    <height>90</height>
                    <texture border="7">list-nofocus.png</texture>
                    <include>VisibleFadeEffect</include>
                </control>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>355</width>
                    <height>90</height>
                    <texture border="7">list-focus2.png</texture>                    
                    <visible>Control.HasFocus(50)</visible>
                    <include>VisibleFadeEffect</include>
                    <include>ListFocusScroll</include>
                </control>
                <control type="label">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>355</width>
                    <height>90</height>
                    <font>font-20</font>
                    <textcolor>white</textcolor>
                    <selectedcolor>blue</selectedcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                    <visible>Container.Content(TVShows)</visible>
                </control>
                <control type="image">
                    <posx>10</posx>
                    <posy>0</posy>
                    <width>345</width>
                    <height>90</height>                    
                    <texture>$INFO[ListItem.Icon]</texture>
                    <visible>Container.Content(TVShows)</visible>
                </control>
            </focusedlayout>


I've tested it on Dharma Beta with T! SVN version. (Ubuntu 9.10)

I hope this is what you were looking for!
Reply
#15
This does work, but when you click and go to season or episodes (in fanart mode), since there are no banners to show, it double spaces the text in episode list. Thanks for your effort.
Reply

Logout Mark Read Team Forum Stats Members Help
Help moding view0