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)
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user