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:
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
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