Transparency! - FAQ / HowTo

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
ronie Online
Team-Kodi Member
Posts: 9,489
Joined: Jan 2009
Reputation: 167
Lightbulb  Transparency! - FAQ / HowTo
Post: #1
If you have any questions or problems in getting Transparency to work,
please read the FAQ

in case you feel there's anything missing in the faq, let me know and i'll add it.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-09-06 02:10 by ronie.)
find
rbonon Offline
Member
Posts: 95
Joined: May 2008
Reputation: 7
Post: #2
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.
find
ronie Online
Team-Kodi Member
Posts: 9,489
Joined: Jan 2009
Reputation: 167
Post: #3
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.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
rbonon Offline
Member
Posts: 95
Joined: May 2008
Reputation: 7
Post: #4
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
find
ronie Online
Team-Kodi Member
Posts: 9,489
Joined: Jan 2009
Reputation: 167
Post: #5
rbonon Wrote: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). ;-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
rbonon Offline
Member
Posts: 95
Joined: May 2008
Reputation: 7
Post: #6
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.
find
ronie Online
Team-Kodi Member
Posts: 9,489
Joined: Jan 2009
Reputation: 167
Post: #7
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:
Code:
<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="20">
  • <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,return)</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://wiki.xbmc.org/?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.
  • 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.
    decrease the <posy> value of the <control type="group"> containing the shadow-home-top.png image by 20 for each button you add.
  • 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.
    increase the <posy> value of the <control type="group"> containing the shadow-home-bottom.png image by 20 for each button you add.


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.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-12-26 20:09 by ronie.)
find
rbonon Offline
Member
Posts: 95
Joined: May 2008
Reputation: 7
Post: #8
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" Big Grin

Regards
find
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #9
just for you to know, i have updated my plugin (v1.3) to allow clearart dowload in tvshow folder option.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find
JudoSquash Offline
Junior Member
Posts: 6
Joined: Apr 2009
Reputation: 0
Post: #10
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.
find
ronie Online
Team-Kodi Member
Posts: 9,489
Joined: Jan 2009
Reputation: 167
Post: #11
ppic Wrote: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. ;-)

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #12
i'm ready to do if somes ideas are in minds Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find
AlphaDog Offline
Junior Member
Posts: 23
Joined: Jul 2009
Reputation: 0
Post: #13
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 Smile
http://forum.xbmc.org/showthread.php?tid...nsubtitles
(This post was last modified: 2009-11-01 22:24 by AlphaDog.)
find
spaljeni Offline
Junior Member
Posts: 6
Joined: Nov 2009
Reputation: 0
Post: #14
where do I find this
http://wiki.xbmc.org/?title=Adding_Media_Sources

in this skin?
find
joebrady Offline
Team-Kodi Member
Posts: 1,652
Joined: Apr 2007
Reputation: 6
Location: Floyds Knobs, IN
Post: #15
That link pretty much explains it.....
find
Thread Closed