NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 39 40 41 42 43 … 93 Next »
Texture locations of GBPVRUiElement on MVP

 
  • 0 Vote(s) - 0 Average
Texture locations of GBPVRUiElement on MVP
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2007-10-01, 07:09 AM
Hi,

to show a cropped picture that is partly visible I'm adjusting the rectangle and the texture's upper points of an GBPVRUiElement like this:

Code:
imageUiElement.SetRect(new RectangleF(imageUiElement.rect.X, imageUiElement.rect.Y, imageUiElement.rect.Width, imageCurrentSize.Height - _scrollPos * lineHeightPercent));
imageUiElement.textureTopLeft.Y = imageUiElement.textureTopRight.Y = 1.0F - imageUiElement.rect.Height / imageCurrentSize.Height;

This works fine on the pc, but it doesn't work on the mvp, where only a stretched picture is shown. It seems like the new rectangle is applied to the ui element, but manipulating "textureTopLeft" and "textureTopRight" to move the upper part out of the visible area has no effect.

Is this a known limitation of the mvp mode or is there anything else I can do to make the ui element look the same like on a computer?

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2007-10-01, 03:40 PM
Good question. I dont think it'd work on the MVP. I'll fix this up for the next release.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#3
2007-10-02, 04:29 AM
Okay, thank you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Freeing up GBPVRUiElement's InVermont 0 1,133 2009-01-22, 01:44 AM
Last Post: InVermont
  GBPVRUiElement loose its alpha herrmannj 3 1,638 2008-11-11, 05:13 PM
Last Post: sub
  Scrollable GBPVRUIElement ? lupus11 7 2,672 2008-02-12, 04:26 PM
Last Post: JavaWiz
  GBPVRUIElement - updating frequently psycik 6 2,371 2008-01-04, 10:16 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode