[MOD] home-menu hacking

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
zosky Offline
Donor
Posts: 302
Joined: Dec 2008
Reputation: 1
Location: toronto. canada
Post: #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: fdg1mt.jpg]

    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

    8 xbmc frodo's (rc3) ... atom/ion(xbmcBuntu) | amd3000/nVidia9800(mint12) | iphone4(5.1.1) | hpTouchPad(cyanogen9) ... and more
    + central mySQL db + 11TB mdadm raid6 (+transmission-daemon & flexGet)
    + maraschino + IRtoy.v2
    [Image: widget]
    find quote
    spec_8472 Offline
    Junior Member
    Posts: 12
    Joined: Dec 2009
    Reputation: 0
    Post: #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!
    find quote
    boyofford Offline
    Member
    Posts: 61
    Joined: Apr 2009
    Reputation: 0
    Post: #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?
    find quote
    zosky Offline
    Donor
    Posts: 302
    Joined: Dec 2008
    Reputation: 1
    Location: toronto. canada
    Post: #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>

    8 xbmc frodo's (rc3) ... atom/ion(xbmcBuntu) | amd3000/nVidia9800(mint12) | iphone4(5.1.1) | hpTouchPad(cyanogen9) ... and more
    + central mySQL db + 11TB mdadm raid6 (+transmission-daemon & flexGet)
    + maraschino + IRtoy.v2
    [Image: widget]
    find quote
    virtualhours Offline
    Senior Member
    Posts: 102
    Joined: Jun 2009
    Reputation: 0
    Location: germany
    Post: #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:
    find quote
    mcborzu Offline
    Skilled Skinner
    Posts: 3,381
    Joined: Feb 2009
    Reputation: 15
    Location: dsf
    Post: #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)
    find quote
    zosky Offline
    Donor
    Posts: 302
    Joined: Dec 2008
    Reputation: 1
    Location: toronto. canada
    Post: #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>

    8 xbmc frodo's (rc3) ... atom/ion(xbmcBuntu) | amd3000/nVidia9800(mint12) | iphone4(5.1.1) | hpTouchPad(cyanogen9) ... and more
    + central mySQL db + 11TB mdadm raid6 (+transmission-daemon & flexGet)
    + maraschino + IRtoy.v2
    [Image: widget]
    find quote
    virtualhours Offline
    Senior Member
    Posts: 102
    Joined: Jun 2009
    Reputation: 0
    Location: germany
    Post: #8
    Code:
    <onclick>[b]ActivateWindow[/b](Programs,plugin://programs/Launcher/</onclick>


    will don´t work for me Confused

    -- please forgive me for my bad english -- :blush:
    find quote
    reiss Offline
    Junior Member
    Posts: 1
    Joined: Apr 2010
    Reputation: 0
    Post: #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...
    find quote
    Mrkennedy Offline
    Senior Member
    Posts: 238
    Joined: Apr 2010
    Reputation: 0
    Post: #10
    Where can i find the favorites.xml in winscp?

    found it was still in root
    find quote
    Post Reply