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...It's instantiated at the end of the plugin's PopulateListWidget() method...It's added to the renderlist in the GetRenderList() method...Any ideas?
Cheers,
Brian
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>
Code:
NowPlayingPanel = new GBPVRUiElement("Now Playing", skinHelper2.getPlacementRect("NowPlaying"), skinHelper2.getNamedImage("NowPlaying", args));
Code:
ArrayList renderlist = base.GetRenderList();
...
if (NowPlayingPanel != null)
renderList.Add(NowPlayingPanel);
Cheers,
Brian