[MOD] home-menu hacking
#1
the animation in this new skin is quite smooth, thanks Jezz.
i've figured out how to personalise the main menu
& i hope others can benefit from some steps Nerd
  • always practice safe moding,
    make a backup of ~/skin/Confluence/720p/home.xml
  • to add a new <sub-menu-button> ...
    1. find the appropriate <control type="grouplist" id="9010"> thought to <control type="grouplist" id="9017">
    2. duplicate the last button block and increment the ID by 1
      ex: custom TV submenu button to open any video source
      Code:
      <control type="button" id="90176">
          <include>ButtonHomeSubCommonValues</include>
          <label>[b][name-here][/b]</label>
          <onclick>ActivateWindow(videofiles,[b][insert-source-name][/b],return)</onclick>
      </control>
  • to add a new <main-menu-button>
    1. find
      Code:
          <control type="fixedlist" id="9000">
      ...
              <content>
    2. duplicate an <item></item> block, increment the ID (12+)
    3. edit destination & label
  • to add a new <sub-menu> with buttons
    1. 1st add a new <main-main-button>
    2. find <texture>HomeHasSub.png</texture>
      in the next line add your new-main-menu-ID to the <visibility> statement
      ex: <visible>Container(9000).HasFocus(12) | Container(9000).HasFocus(2) | Container(9000).HasFocus(3)
    3. in <control type="group" id="9001"> duplicate one of the <sub-menu blocks>
    4. increment all IDs
    5. match up the visibility statement for the new-main menu ID
      ex: <visible>Container(9000).HasFocus(12)</visible>
    6. edit each button as needed
      in my case hooked into leo's launcher
thanks to everyone for making these silly mods possible
props where props are due

here i've added a sub-menu for leo's launcher ( & some emu action Rolleyes )
Image

ps. if <hitrect> does what i think,
this is a really cool addition to the movie list and home menu
+ the position of the sub-menu on different levels... LOVE IT!!! thnx again
rPi 2&3 | android phones | fireHD8 | linux | win10 + NFS NAS w/ mySQL + props to...
libreElecyatse, titan, AELflexGet, context.manageTags (a zosky original)
Reply
#2
Oh yes, this is exactly what I was looking for.

Ñow comes the problem, I am able to add a new menu item "concert" but I do not succeed in adding a submenu.

Can you please post your "games" menu xml code?

Thank you!
Reply
#3
Quick question, if i copy the confluence skin folder to the skins folder where you can add additional skins(i forget where on my linux computer as i'm not on it at the mo) will this overide the original skin folder? and therefore avoid upgrade problems?
Reply
#4
@boyofford, yes thats exactly what i've done.
Code:
cp -dR /usr/share/xbmc/skin/Confluence ~/.xbmc/skin/

@spec_8472, here is my games sub-menu. make sure
  • <onup> & <ondown> are self-referential (9018 in my case)
  • & the <visible> statement needs to match the ID you added to the main-main (HasFocus(12) below)
Code:
    <control type="grouplist" id="9018">
            <posx>10</posx>
            <posy>0</posy>
            <width>240</width>
            <height>280</height>
            <align>center</align>
            <onleft>9000</onleft>
            <onright>9001</onright>
            <onup>9018</onup>
            <ondown>9018</ondown>
            <itemgap>0</itemgap>
            <visible>Container(9000).HasFocus(12)</visible>
            <control type="button" id="90181">
                <include>ButtonHomeSubCommonValues</include>
                <label>doom3</label>
                <onclick>runPlugin(plugin://programs/Launcher/?Doom3)</onclick>
            </control>
            <control type="button" id="90182">
                <include>ButtonHomeSubCommonValues</include>
                <label>ps one</label>
                <onclick>ActivateWindow(Programs,plugin://programs/Launcher/?ps1)</onclick>
            </control>
            ... ... ... [[ more buttons as needed ]] ... ... ...
    </control>
rPi 2&3 | android phones | fireHD8 | linux | win10 + NFS NAS w/ mySQL + props to...
libreElecyatse, titan, AELflexGet, context.manageTags (a zosky original)
Reply
#5
i made a new main-menu:

<item id="12">
<label>Emu|Appz</label>
<onclick>runPlugin(plugin://programs/Launcher)</onclick>
<icon>special://skin/backgrounds/programs.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Programs_Folder)]</thumb>
</item>

but Launcher don´t starts Oo

when i go to programms / plugins / launcher it will starts normlly

can u help me?
thx
-- please forgive me for my bad english -- :blush:
Reply
#6
Getting those correct paths are always tricky...what I do is add it to favorites, then open up favorites.xml and grab the path from there.

This is what I got from my favorites.xml:
Quote:ActivateWindow(10001,plugin://programs/Launcher/)

This is what I got to directly link to N64:
Quote:ActivateWindow(10001,plugin://programs/Launcher/?N64)
Reply
#7
mcborzu has the right idea, thats how i found out what to use also.

for reference
runPlugin is for when you're pointing to an application
Code:
<onclick>[b]runPlugin[/b](plugin://programs/Launcher/?Doom3)</onclick>
ActivateWindow is for when you're pointing to a window (ie EMU folder or just launcher)
Code:
<onclick>[b]ActivateWindow[/b](Programs,plugin://programs/Launcher/</onclick>
rPi 2&3 | android phones | fireHD8 | linux | win10 + NFS NAS w/ mySQL + props to...
libreElecyatse, titan, AELflexGet, context.manageTags (a zosky original)
Reply
#8
Code:
<onclick>[b]ActivateWindow[/b](Programs,plugin://programs/Launcher/</onclick>


will don´t work for me Huh
-- please forgive me for my bad english -- :blush:
Reply
#9
Hi Guys
I'm Trying to Add Enigma2 Plugin to main menu or a submenu to Live TV
here is what I've done
<control type="button" id="90182">
<include>ButtonHomeSubCommonValues</include>
<label>dream1</label>
<onclick>runscript(special://home/plugins/video/Enigma2/default.py,limit=4)</onclick>

I can see Dream1 on a Live Tv sub menu but as soon as I click on it I receive ERROR SCRIPT FAIL! message ,,,
I normally run it under videos>Plugins Menu without any Problems
Does anyone have any idea whats wrong here
Thanx in advance...
Reply
#10
Where can i find the favorites.xml in winscp?

found it was still in root
Reply
#11
Hello,

can anyone write the code to add a anime section as a sub menu in the Videos section of confluence. So Movies, Tv Shows then Anime Smile
Reply
#12
This was for MS_ReduX but it should work with Confluence...

If you need an extra Videos submenu button add the following code to Home.xml - Line 432ish

All you need to do next is change YourLabel and YourPlaylist to whatever you want and create a playlist giving it the name you choose for YourPlaylist

PHP Code:
<control type="button" id="90108">   
  <include>
ButtonHomeSubCommonValues</include>
  <
label>YourLabel</label>
  <
onclick>XBMC.ActivateWindow(MyVideoLibrary,special://profile/playlists/video/YourPlaylist.xsp,return)</onclick>
</control
 
  • Intel NUC Kit DN2820FYKH ~ Crucial DDR3L SO-DIMM 4GB ~ SanDisk ReadyCache 32GB SSD ~ Microsoft MCE model 1039 RC6 remote
Reply
#13
Question 
Hi guys,

managed to add a blu ray sub menu to my movies page, and managed to source it to my blu ray source on my server. But is there a way to get it in libary mode as would like to use it withthe DVD case mod

the actor, name recently added all have libary mode active

thanks
Reply
#14
I'd like to know that aswell.
Reply
#15
I manage to get an anime section into the Confluence skin doing this:

Code:
<control type="button" id="90103">  
  <include>ButtonHomeSubCommonValues</include>
  <label>Anime</label>
  <onclick>XBMC.ActivateWindow(MyVideoLibrary,C:\Users\Luis\Videos\Anime,return)</onclick>
<visible>Library.HasContent(Anime)</visible>
</control>

I can view library mode however it doesn't give me all the options of library mode that Tv shows and Movies has but when I also scrape the anime information, It works but it also transfers the anime to the tvshow section which i don't want. What do i do?
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] home-menu hacking0