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)
{
Position.X = pageX * width;
Position.Y = pageY * height;
this.Width = width;
this.Height = height;
Bounds.X = pageX * width;
Bounds.Y = pageY * height;
Bounds.Width = width;
Bounds.Height = height;
}
public void DisplayWithViewport(Viewport viewport)
{
viewport.X = (int) Position.X;
viewport.Y = (int) Position.Y;
viewport.X = Bounds.X;
viewport.Y = Bounds.Y;
}
}
}