NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
pluginSkinHelper.getNamedImageElementPos

 
  • 0 Vote(s) - 0 Average
pluginSkinHelper.getNamedImageElementPos
herrmannj
Offline

Member

Posts: 150
Threads: 22
Joined: May 2005
#1
2009-12-06, 01:22 AM
Hi,

does someone know how to use it ?

pluginSkinHelper.getNamedImageElementPos (string name, string element)

In special, I dont know whats to do with the element parameter.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2009-12-06, 01:50 AM
As an example, if you had the following in your skin.xml:
Code:
        <CompositeImage name="Timeline" size="62,7">            
            <DrawRoundedRect loc="1,5" size="98,90" fillColor="#9F000000" borderColor="Transparent" radius="1" borderWidth="0"/>
            <DrawText text="@playbackPosition" loc="3,0" size="22,100" textStyle="OsdTextStyle" align="Left" valign="Center"/>
            <DrawText text="@playbackDuration" loc="75,0" size="22,100" textStyle="OsdTextStyle" align="Right" valign="Center"/>            
            <Element name="TimelineBar"  loc="22,35" size="54,30"/>            
        </CompositeImage>

You might call the following get the size/placement of the "TimelineBar" part of the "Timeshift" composite image:

Point point = skinHelper.getNamedImageElementPos("Timeshift", "timelineGraphic");
Size size = skinHelper.getNamedImageElementSize("Timeshift", "timelineGraphic");
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you use skinHelper.getNamedImageElementPos(name,element) ?? JavaWiz 6 2,217 2007-05-19, 08:28 AM
Last Post: McBainUK

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

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

Linear Mode
Threaded Mode