updated book system to function with new UI module structure.

This commit is contained in:
Harrison Deng 2018-11-09 18:17:30 -06:00
parent 17e59397a5
commit aabb5e6793

View File

@ -21,16 +21,16 @@ namespace RhythmBullet.Zer01HD.UI.Book
public virtual void ApplySize(int width, int height) public virtual void ApplySize(int width, int height)
{ {
Position.X = pageX * width; Bounds.X = pageX * width;
Position.Y = pageY * height; Bounds.Y = pageY * height;
this.Width = width; Bounds.Width = width;
this.Height = height; Bounds.Height = height;
} }
public void DisplayWithViewport(Viewport viewport) public void DisplayWithViewport(Viewport viewport)
{ {
viewport.X = (int) Position.X; viewport.X = Bounds.X;
viewport.Y = (int) Position.Y; viewport.Y = Bounds.Y;
} }
} }
} }