NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 13 14 15 16 17 … 93 Next »
Add another element to the horizontal main menu

 
  • 0 Vote(s) - 0 Average
Add another element to the horizontal main menu
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#1
2011-08-24, 08:19 PM
I was wondering if it would be possible to add another element to the horizontal menu xml. Currently there are 3 elements that I am aware of that I can use, ButtonBackground, MenuButton and VideoInset. I had cheated and used the ButtonBackground to display the N logo on the main page but this causes problems with the mouse right clicking. Would it be possilbe to add either the TaskImage or Cutaway elements (or something else) like in the vertical menu xml. Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2011-08-24, 08:43 PM
Ok, the next version also supports an optional CutAway elment in the horizontal skin.
Northpole
Offline

Senior Member

Posts: 333
Threads: 34
Joined: Aug 2007
#3
2011-08-24, 10:35 PM
Thanks Sub!
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#4
2011-08-25, 09:32 AM
Anything I need to do with SubMenu to ensure it supports this too?

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2011-08-25, 04:53 PM
I dont really know anything about how SubMenu is written, or how closely it tries to emulate the built in screens. If it's just a copy of NPVR's normal menu screens, extracted by Reflector or similar, and tweaked slightly, then you'd probably want to add support for an additonal optional 'CutAway' element in the skin.xml. If it's present, then make sure it's added to the render list.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#6
2011-08-25, 06:05 PM
sub Wrote:If it's just a copy of NPVR's normal menu screens, extracted by Reflector or similar

Ooh, no, nothing as fancy as that. You posted the source and I took it from there (so it's still kinda similar) Big Grin

I haven't looked at its code in yonks though, but it sounds like there's not much to do.

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2011-08-25, 06:12 PM
Ah, I forgot about that sample.

To replicate the changes I made,

Code:
private UiElement cutawayBackUiElement = null;

Code:
if (skinHelper.ElementIsDefined("CutAway"))
            {
                cutawayBackUiElement = new UiElement("CutAway", skinHelper.GetRelativeElementRectangle("CutAway"), skinHelper.RenderElement(null, "CutAway", new Hashtable()));
                cutawayBackUiElement.alpha = skinHelper.GetElementAlpha("CutAway");
            }


In GetRenderList()

Code:
// render cutaway background
            if (cutawayBackUiElement != null)
            {
                renderList.Add(cutawayBackUiElement);
            }
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#8
2011-08-25, 06:18 PM
Brilliant, thanks.

One of these days I must get SubMenu working with vertical menus too (I have your code for that), but I've just never found the time for it...

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Possible to have another element in details-single.xml Northpole 2 2,188 2014-07-11, 09:51 PM
Last Post: Northpole
  GetRenderList() always called with "block-extras..." element in renderlist alibert 1 1,593 2012-06-18, 10:24 AM
Last Post: sub
  Element explanations? PatM 12 3,806 2012-03-12, 10:16 PM
Last Post: PatM
  Single row horizontal list in popup? cncb 4 2,152 2011-09-28, 09:48 PM
Last Post: cncb
  Skin element Details in NowNext Jaggy 2 1,772 2011-09-19, 11:50 PM
Last Post: Jaggy
  Activate "Hidden" menu mvallevand 2 1,558 2011-02-02, 11:24 PM
Last Post: mvallevand
  Actual size of inner element in NPVR scb147 2 1,735 2010-11-02, 06:40 PM
Last Post: scb147
  TV Guide Element Render order Northpole 0 1,273 2010-10-24, 04:11 PM
Last Post: Northpole
  Main menu plugin - how? McBainUK 5 2,438 2010-07-29, 01:55 AM
Last Post: sub
  settings menu list box pastro 4 1,857 2009-01-19, 05:17 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode