View Full Version : Transparency! - FAQ / HowTo
If you have any questions or problems in getting Transparency to work,
please read the FAQ (http://xbmc.org/skins/transparency/3/)
in case you feel there's anything missing in the faq, let me know and i'll add it.
Ronie,
thanks for the FAQ/How-To.
One thing I would like to see, maybe as a post, since it tends to be longer than a simple question/answer, is how to add your own home menu entry.
In my case, I would like to have some additional entries like "Cartoons", "Documentaries", etc, pointing to video folders.
adding a new button may not be an easy task, depending on whether you want a skin setting to enable/disable the button, specify custom backgrounds for it, etc...
you'll have to add a lot of code to custom_SkinSettings_1111.xml if you want these options.
also adding buttons to the vertical menu is a bit more tricky than adding it to the horizontal menu...
would (ab)using one of the existing buttons be an option?
it's far easier to change the label and the action of an existing button than to create a new one.
Ronie,
I was an xTV user before. Being that skin simpler than Transparency!, it was not that difficult for me to hack home.xml plus some other files and get new entries that linked to new video windows.
I will try the (ab)use existing entries to see if I learn a little about it.
Anyway, it would be very nice (and I am sure popular) to see some sort of way to add custom entries easier, or a doc on how to hack your way around it.
regards
Anyway, it would be very nice (and I am sure popular) to see some sort of way to add custom entries easier, or a doc on how to hack your way around it.
to make it easier is an option, but to make it easy is not possible.
you can't just 'create' buttons on the fly, they'll have to be defined in the skin first.
this leads to a number of questions, first how many 'custom' buttons do you want me to code in Transparency!?
next, menu order, should the custom buttons be at the bottom of the menu or at the top or in between? changing the menu order yourself is not possible in xbmc. it has to be hardcoded in the skin.
and the last question, how can a user easily assign an action to the button?
a button can launch a script, run a plugin (not sure if this is possible?), open a certain entry in the video library or navigate to a certain folder in filemode.
i think it would take a fair amount of coding to create something that works for everyone and is easy to configure at the same time....
i do agree with you that adding custom menu options is one of the most requested things in every xbmc skin forum.
but...i'm always willing to give a few pointers to anyone who want to modify something themselves. just keep in mind that i won't be spoon-feeding all the code, i've done that, been there and didn't like it.
it's way too time consuming to create custom hacks for everyone's personal preferences. (the same applies to writing manuals). ;-)
Ronie
I fully agree with you on not wasting time spoon-feeding custom hacks.
For me it would be enough just to show in couple of comments (as a post on the forum) how a new button could be added by showing what are the changes needed in what file. Just give an example and i will follow (or maybe just show how an existing button is coded). That would suffice for most of the people. That would make a very popular sticky.
now then, let's give it a try...
what file do i need to edit...
Includes_Home.xml, that's the file where the two menus are defined (vertical and horizontal menu).
search that file for this string: <control type="list" id="5040">
that's where the code for the vertical menu starts.
if you search for this string: <control type="wraplist" id="5041">
you'll find the code for the horizontal menu.
how to add a menu button...
the code for a menu button looks like this:
<item id="13">
<label>1036</label>
<onclick>ActivateWindow(Favourites)</onclick>
<icon>special://skin/images/backgrounds/favourites.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Favourites_Folder)]</thumb>
<visible>!Skin.HasSetting(FavouritesInHome)</visible>
</item>
so, what does it all mean...
<item> : defines the start of the menu button code. it's best to give each button a unique "id". so if you want to add a button, just pick the first unused id, like this: <item id="17">
<label> : this is the text label on the button. i'm using numbers here that point to entries in the xbmc language file,
but you can just use text instead. so let's say you want a separate menu button for all your crap movies, just use this: <label>Crap</label>
<onclick> : this is the action that should be taken when the button is clicked. you have many possibilities here, so i'll list a few:
- to run a script, add the path the the script:
<onclick>XBMC.RunScript(/home/xbmc/.xbmc/scripts/Apple Movie Trailers/default.py)</onclick>
- to go to a certain video folder (source) in filemode:
<onclick>XBMC.ActivateWindow(VideoFiles,Crap)</onclick>
- to go to a certain entry in the video library:
<onclick>XBMC.ActivateWindow(MyVideoLibrary,tvshowtitles,re turn)</onclick>
(the 'return' parameter will take you right back to the homescreen when you press the 'back' button. if you omit the 'return' parameter, pressing back will take you 'up' one level in the library.)
- more examples here: http://xbmc.org/wiki/?title=Opening_Windows_and_Dialogs
<icon> : specifies the background image(s) that should be displayed when the button is focused. you can specify the path to a single image: <icon>/home/xbmc/backdrops/home-crap.jpg</icon>
or if you want multiple images, specify the path to a folder: <icon>/home/xbmc/backdrops/crap/</icon>
of course, the image and/or folder should be accessible by xbmc.
<thumb> : you can skip this. it's basically the same as above, but it allows the user to specify the backgrounds in skin settings. you don't need to add this.
<visible> : skip this one too. it's only needed to turn the button on or off in skin settings.
</item> : end of menu button code.
horizontal menu...
if you want to add a button to the horizontal home menu, you can just insert the button code in-between the other buttons at the position where you would like it to be.
congratulations, you're done.
vertical menu...
add to button code at your prefered position in-between the other buttons in the vertical menu.
a few more code changes are needed and this should only be done under supervision of a second degree skinner.
adjust the height of the total menu:
increase the <height> value of <control type="list" id="5040"> by 40 for every button you add.
adjust the y position of the menu:
decrease the <posy> value of <control type="list" id="5040"> by 20 for each button you add. note: negative values are possible.
also add this to the other animations: <animation effect="slide" end="0,20" time="0" condition="true">Conditional</animation>
adjust the position of the top shadow. the code of the top shadow (shadow-home-top.png) is right above the code of the vertical menu.
add this to the other animations there: <animation effect="slide" end="0,-20" time="0" condition="true">Conditional</animation>
adjust the position of the bottom shadow. the code of the bottom shadow (shadow-home-bottom.png) is right below the code of the vertical menu.
add this to the other animations there: <animation effect="slide" end="0,20" time="0" condition="true">Conditional</animation>
if things don't turn out the way you expected...
too bad....i did my best to explain everything as detailed as possible.
it's up to you to get it to work and there's an excellent xbmc skinning manual available here (http://xbmc.org/wiki/?title=Skinning_Manual).
Ronie,
fantastic! That is exactly what I meant. Thanks for taking the time to write the instructions. Now it is up to us to sort our way around it.
I vote for this to be a sticky, although that may be a problem for you, as I am sure some less considerate users will always bug you asking questions about it.
How can one not love such a nice skin with such outstanding "support service" :grin:
Regards
just for you to know, i have updated my plugin (v1.3) to allow clearart dowload in tvshow folder option.
JudoSquash
2009-10-26, 01:33
Thanks for taking the time to post that quick tutorial Ronie. It's greatly appreciated! I hope that I'm not the only one that will be experimenting with it and (hopefully) getting fantastic results.
just for you to know, i have updated my plugin (v1.3) to allow clearart dowload in tvshow folder option.
cool! thanx for your efforts. ;-)
i'm ready to do if somes ideas are in minds ;)
AlphaDog
2009-11-01, 22:18
I'm having trouble with the subtitle script. I installed it through the repo installer. Then I checked the button under script settings, but I can't put in the path to the script. Since it is in ~/xbmc, I cant go there, and I can't type it in. What am I doing wrong?
edit: Found it :)
http://xbmc.org/forum/showthread.php?t=59714&highlight=Opensubtitles
spaljeni
2009-11-02, 18:21
where do I find this
http://xbmc.org/wiki/?title=Adding_Media_Sources
in this skin?
joebrady
2009-11-02, 18:26
That link pretty much explains it.....
spaljeni
2009-11-02, 18:28
Then I must be dumb or blind cause I can't find this anywhere
spaljeni
2009-11-02, 18:32
There is no "Movies" category like in other skins, is there? Everything is in "Videos"
Right clicking on "Movies" inside the "Videos" screen does not produce the required "Add Sources" link
Right clicking inside the "Movies" screen acts as the "back" button.
"Settings" is not of much help either.
Then I must be dumb or blind cause I can't find this anywhere
the add source option is only available in filemode,
so bring out the hidden left menu (navigate to the left side of the screen) and switch to filemode.
There is no "Movies" category like in other skins, is there? Everything is in "Videos".
sure there is and there's plenty much more to choose from:
Settings > Skin Settings > Home window
you can enable/disable every menu item there.
spaljeni
2009-11-02, 19:06
I'm a noob :sad:
available in filemode
What is filemode? View:List? View:Full List? Library mode disabled? And where do I call this menu? Inside Videos? Inside Videos/Movies?
Settings > Skin Settings > Home window
My settings screen looks like this:
Videos / Music / Pictures / Profiles / Weather / Network / System / Appearance
I don't see a "Skin" menu here.
Only "Appearance" but that one does not do it
I'm a noob :sad:
no worries, we all have to start somewhere.
What is filemode? View:List? View:Full List? Library mode disabled?
yup, it's library mode disabled.
And where do I call this menu? Inside Videos? Inside Videos/Movies?
inside videos, use the 'library mode' button on the left menu to switch to filemode.
in filemode you can use the context menu (as described in the wiki) to add a source.
My settings screen looks like this:
Videos / Music / Pictures / Profiles / Weather / Network / System / Appearance
I don't see a "Skin" menu here.
Only "Appearance" but that one does not do it
it's the second entry in the FAQ (http://xbmc.org/skins/transparency/3/)
spaljeni
2009-11-02, 19:34
Yep, that sums it up nicely.
Thanx for the help
Hi,
1. Is there a possibility to create / activate sub menus in Transparency eg. my movies are in the one submenu and my child's movies are in the different one
2. Where can I find the option to hide the watched movies
Thanks
Tomatis
joebrady
2009-11-04, 17:56
1. You're just wanting a sub-menu on the home screen for this?
2. http://xbmc.org/wiki/?title=Video_Library Hide Watched
1. You're just wanting a sub-menu on the home screen for this? Yes, I would like to have sub menu under Video button or in the first screen of Video
Yes, I would like to have sub menu under Video button or in the first screen of Video
you could create a menu button for them (howto is on first page of this thread).
submenus however are not available in Transparency!
Ronald Pagan
2009-11-18, 07:12
Is there a way to delay the image changing for multiple image backgrounds? I find they rotate through too quicly.
Is there a way to delay the image changing for multiple image backgrounds? I find they rotate through too quicly.
there's not really an easy way, but it can be done.
you'll have to edit every My***.xml file and modify the <timeperimage>5000</timeperimage> value of each multiimage control
Ronald Pagan
2009-11-18, 20:59
Thanks, may be something to consider adding to a future update in the skin options.