NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
Numeric args[]

 
  • 0 Vote(s) - 0 Average
Numeric args[]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#11
2010-07-30, 04:11 AM
mvallevand Wrote:Does this mean that skins where skinners use periods will fail in those countries?
Yes, if you dont parse it that way. The skinhelper class parses all its floating point numbers this way.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#12
2010-07-30, 04:17 AM
mvallevand Wrote:The skin is manipulating them

Code:
    <!-- placements -->
    <Placements>
        <Placement name="CoversItemNowPlayingArt" location="0,5" size="40,45"/>
        <Placement name="ListItemNowPlayingArt" location="36,45" size="40,40"/>
    </Placements>
Martin
I'd probably just have an <Element> defined for each, with the element having the 'location' and 'size' attributes defining their position, so that it happens automatically when you create the UiStatics for each, rather building your own logic to try and move/resize the one element. You could then conditionally choose which UiStatic gets added in GetRenderList(), depening on whether the list is in List/Cover mode. This approach would better match what I've done with all the other screens, and would avoid having to add these <Placements> tags, which was something I used in PVRX2, havent used anyway in NPVR's skins.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#13
2010-07-30, 04:43 AM
sub Wrote:I'd probably just have an <Element> defined for each, with the element having the 'location' and 'size' attributes defining their position, so that it happens automatically when you create the UiStatics for each, rather building your own logic to try and move/resize the one element. You could then conditionally choose which UiStatic gets added in GetRenderList(), depening on whether the list is in List/Cover mode. This approach would better match what I've done with all the other screens, and would avoid having to add these <Placements> tags, which was something I used in PVRX2, havent used anyway in NPVR's skins.

This is the scenario I had in mind with my UIStatic example. To be honest, I didn't remember anything about Placements.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#14
2010-07-30, 04:50 AM
sub Wrote:I'd probably just have an <Element> defined for each, with the element having the 'location' and 'size' attributes defining their position, so that it happens automatically when you create the UiStatics for each, rather building your own logic to try and move/resize the one element. You could then conditionally choose which UiStatic gets added in GetRenderList(), depening on whether the list is in List/Cover mode. This approach would better match what I've done with all the other screens, and would avoid having to add these <Placements> tags, which was something I used in PVRX2, havent used anyway in NPVR's skins.

I guess because that would have been too easy. I've made the change and it is working just as well. It actually took a few more lines of code, but it should be easier to skin. Thanks for that. The Location info might come in handy

Sorry whurlston for not getting what you were saying before too.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#15
2010-07-30, 04:55 AM
No problem. I was just wondering if I was doing it wrong.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PluginHelper.SetPlayerMetaData(Hashtable args) not working alibert 12 4,805 2011-01-23, 05:33 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