using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x0200027C RID: 636
[Token(Token = "0x200027C")]
public class UIPageNumber : MonoBehaviour
{
	// Token: 0x0600189C RID: 6300 RVA: 0x0003BCCC File Offset: 0x00039ECC
	[Token(Token = "0x600189C")]
	[Address(RVA = "0x1025160", Offset = "0x1023F60", VA = "0x181025160")]
	public void UpdateIndex(int currentPage)
	{
		int num = currentPage + 1;
		Text text = this.pageNumber;
		int length = this.pageDots.Length;
		string text2 = string.Format("{0} / {1}", num, num);
		text.text = text2;
		Image[] array = this.pageDots;
		int num2 = 0;
		if (num2 < array.Length)
		{
			Image image = array[num2];
			bool flag = currentPage == num2;
			image.enabled = flag;
			Image[] array2 = this.pageDots;
			num2++;
		}
	}

	// Token: 0x0600189D RID: 6301 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600189D")]
	[Address(RVA = "0x1025290", Offset = "0x1024090", VA = "0x181025290")]
	private void UpdatePageNumber(int index)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600189E RID: 6302 RVA: 0x0003BD4C File Offset: 0x00039F4C
	[Token(Token = "0x600189E")]
	[Address(RVA = "0x1025140", Offset = "0x1023F40", VA = "0x181025140")]
	public void SetFont(Font font)
	{
		this.pageNumber.font = font;
	}

	// Token: 0x0600189F RID: 6303 RVA: 0x0003BD6C File Offset: 0x00039F6C
	[Token(Token = "0x600189F")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public UIPageNumber()
	{
	}

	// Token: 0x04002297 RID: 8855
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002297")]
	[SerializeField]
	private Text pageNumber;

	// Token: 0x04002298 RID: 8856
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002298")]
	[SerializeField]
	private Image[] pageDots;
}
