Custom Submenu Items for Home Style 1 [Alaska only]

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #1
All custom submenu buttons are found in the Includes_HomeCustomButtons.xml

Simply add the label and path in the Button control, remove the <visible>false</visible> tag, and then add image path in the image control.

ie

Before -
PHP Code:
<!--TV Sub Menu-->
<include 
name="CustomTVButtons">
    <
control type="button" id="3507">
        <
label>-</label>
        <
onclick>-</onclick>
        <include>
Home_MainMenuLabel</include>
        <
visible>false</visible>
    </
control>
</include>
<include 
name="CustomTVImages">
    <
control type="image">
        <include>
Home_MainMenuIconF</include>
        <
texture diffuse="mainmenu/homematte.png" fallback="backdrops/tvshows.jpg">-</texture>
        <
visible>ControlGroup(3500).HasFocus() + ControlGroup(3500).HasFocus(3507)</visible>
    </
control>
</include> 

PHP Code:
<!--TV Sub Menu-->
<include 
name="CustomTVButtons">
    <
control type="button" id="3507">
        <
label>$LOCALIZE[40170]</label>
        <
onclick>ActivateWindow(24,plugin://video/IPlayer/?tvradio=tv)</onclick>
        
<include>Home_MainMenuLabel</include>
    </
control>
</include>
<include 
name="CustomTVImages">
    <
control type="image">
        <include>
Home_MainMenuIconF</include>
        <
texture diffuse="mainmenu/homematte.png" fallback="backdrops/tvshows.jpg">customimages/iplayer.jpg</texture>
        <
visible>ControlGroup(3500).HasFocus() + ControlGroup(3500).HasFocus(3507)</visible>
    </
control>
</include> 

To add more buttons just copy and paste the complete group making sure to change the button id and visible condition, in this case change both 3507 instances to 3508.

[Image: sig_zps3af3b48e.jpg]
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Question    Post: #2
Hi Hitcher!

First all, let me say you that i really love this skin, you have done a fantastic work! I love the clean and minimal style.

I'm trying to add some custom submenu items but with no success. I've followed your instructions here, but i can't see the new icons anywhere. Where does it supposed to be? I've changed the visible tag to true, but icon is not being shown...

kind regards and keep up the good work! Big Grin
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #3
You just press down to access the submenus and your new entries will appear at the bottom.

Any more problems then please post the xml here.

[Image: sig_zps3af3b48e.jpg]
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #4
I'm pressing down, and nothing happens Blush
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #5
Here is my code:

Code:
<!--Settings Sub Menu-->
    <include name="CustomSettingsButtons">
        <control type="button" id="3808">
            <label>$LOCALIZE[130]</label>
            <onclick>ActivateWindow(systeminfo)</onclick>
            <include>Home_MainMenuLabel</include>
            <visible>true</visible>
        </control>
    </include>
    <include name="CustomSettingsImages">
        <control type="image">
            <include>Home_MainMenuIconF</include>
            <texture diffuse="mainmenu/homematte.png" fallback="backdrops/settings.jpg">homeicons/sysinfoicon.png</texture>
            <visible>ControlGroup(3800).HasFocus() + ControlGroup(3800).HasFocus(3808)</visible>
        </control>
    </include>
<!--End-->
(This post was last modified: 2010-01-26 19:41 by fidoboy.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #6
Works for me.

[Image: screenshot000rk.jpg]

[Image: sig_zps3af3b48e.jpg]
(This post was last modified: 2010-01-26 19:58 by Hitcher.)
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #7
I'm using home style 2, with amora icons... may be that's the problem?
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #8
Only Home style 1 has submenus.

[Image: sig_zps3af3b48e.jpg]
find quote
fidoboy Offline
Fan
Posts: 404
Joined: Oct 2008
Reputation: 0
Post: #9
ok, i see... it could be nice to have this feature also in home style 2, may be that you can add it in next release...

For the moment, it could be useful a little advice in your first post.

Thanks for your time Hitcher, regards
find quote
joebanana Offline
Member
Posts: 96
Joined: Nov 2009
Reputation: 0
Post: #10
Is there a way to use this to open video sources?

For example instead of going into the Video windows, I would use the submenus to get directly into each of the sources I have added.

Possible?
find quote
Post Reply