NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 32 33 34 35 36 … 93 Next »
Preventing 'layered' elements?

 
  • 0 Vote(s) - 0 Average
Preventing 'layered' elements?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2008-05-10, 06:31 PM
I can't quite get my head around what's happening with the popup (see screenshot). In some ways it looks quite cool but I'd prefer the popup to appear in front of the 'Now Playing' panel rather than partially behind it.

The Now Playing panel is defined in the skin.xml...
Code:
<Placement name="NowPlaying" loc="2,50"/>
...
<CompositeImage name="NowPlaying" size="23,25">
    <DrawCommonImage name="IconViewNormalItemBackground"/>
    <DrawText text="Now Playing" loc="0,1" size="100,21" textStyle="IconViewItems" align="Center" valign="Center"/>
    <DrawImage filename="@channelLogo" loc="14,21" size="72,56"/>
    <DrawText text="@channelName" loc="0,75" size="100,21" textStyle="IconViewItems" align="Center" valign="Center"/>
</CompositeImage>
It's instantiated at the end of the plugin's PopulateListWidget() method...
Code:
NowPlayingPanel = new GBPVRUiElement("Now Playing", skinHelper2.getPlacementRect("NowPlaying"), skinHelper2.getNamedImage("NowPlaying", args));
It's added to the renderlist in the GetRenderList() method...
Code:
ArrayList renderlist = base.GetRenderList();
...
if (NowPlayingPanel != null)
    renderList.Add(NowPlayingPanel);
Any ideas?

Cheers,
Brian
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2008-05-10, 06:55 PM
It's being rendered after the popup has been rendered. Try:
Code:
ArrayList renderlist = base.GetRenderList();
...
if (NowPlayingPanel != null [color=Red]&& base.activePopup == null[/color])
    renderList.Add(NowPlayingPanel);
That way it will only be rendered if there is no popup.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#3
2008-05-10, 07:03 PM
Yeah, thats probably the easiest thing to do. Otherwise you can look at using Insert instead of Add, so that you can specify where in the render list it should be placed.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#4
2008-05-10, 07:33 PM
LOL - whurlston, thanks for the suggestion but the Now Playing panel and the popup play 'hide and seek' when I do this (popup appears, panel disappears and vice versa when the popup is closed) Big Grin

sub, I'd thought about creating a copy of renderlist but adding the panel first - I didn't think about the Insert() method (doh!).

renderlist.Insert(0, NowPlayingPanel) does the trick.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  List of Skin Elements ACTCMS 7 3,150 2010-12-22, 12:06 AM
Last Post: ACTCMS
  List control skin elements McBainUK 1 1,740 2010-09-01, 06:17 AM
Last Post: sub
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,331 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  BaseButtonUiListTask - Extra elements psycik 4 2,008 2007-08-18, 06:06 AM
Last Post: sub
  GBPVR UI Elements pop-up boohiss 5 2,330 2006-08-19, 04:11 AM
Last Post: boohiss
  GBPVR UI Elements lists boohiss 4 2,286 2006-08-07, 01:07 PM
Last Post: boohiss
  gbpvr ui elements dll McBainUK 1 1,436 2006-01-09, 09:57 PM
Last Post: McBainUK
  Special elements bgowland 6 2,521 2005-11-22, 03:11 AM
Last Post: KingArgyle
  Special Elements maxil 2 1,631 2005-10-11, 11:05 PM
Last Post: maxil

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

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

Linear Mode
Threaded Mode