updated book system to function with new UI module structure.
This commit is contained in:
parent
17e59397a5
commit
aabb5e6793
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user