public override void Init()
        {
            base.Init();

            m_Pagination.SetSize((int)Size.X, 45);
            m_Pagination.Y = Size.Y - 45;
        }
Ejemplo n.º 2
0
 private void PositionPagination()
 {
     if (m_PaginationStyle == UIPaginationStyle.PAGINATION_BAR)
     {
         m_PaginationBar.SetSize((int)Size.X, (int)PaginationHeight);
         m_PaginationBar.Y = Size.Y - PaginationHeight;
     }
     else if (m_PaginationStyle == UIPaginationStyle.LEFT_RIGHT_ARROWS)
     {
         LeftArrow.Position  = new Vector2(0, (Size.Y - LeftArrow.Size.Y) / 2);
         RightArrow.Position = new Vector2(Size.X - RightArrow.Size.X, (Size.Y - RightArrow.Size.Y) / 2);
     }
 }