using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020002C2 RID: 706
[Token(Token = "0x20002C2")]
public class UISwitchArrowController : MonoBehaviour
{
	// Token: 0x06001A9F RID: 6815 RVA: 0x000412BC File Offset: 0x0003F4BC
	[Token(Token = "0x6001A9F")]
	[Address(RVA = "0x961A80", Offset = "0x960A80", VA = "0x180961A80")]
	public void Init(Func<int> trySwitchLeftward, Func<int> trySwitchRightward)
	{
		this.trySwitchLeftward = trySwitchLeftward;
		this.trySwitchRightward = trySwitchRightward;
		UISwitchArrow uiswitchArrow = this.switchArrows[0];
		Action action = new Action(this.SwitchPageLeftward);
		uiswitchArrow.clickedHandler = action;
		UISwitchArrow uiswitchArrow2 = this.switchArrows[1];
		Action action2 = new Action(this.SwitchPageRightward);
		uiswitchArrow2.clickedHandler = action2;
		throw new NullReferenceException();
	}

	// Token: 0x06001AA0 RID: 6816 RVA: 0x00041320 File Offset: 0x0003F520
	[Token(Token = "0x6001AA0")]
	[Address(RVA = "0x961BC0", Offset = "0x960BC0", VA = "0x180961BC0")]
	public void SwitchPageLeftward()
	{
		Func<int> func = this.trySwitchLeftward;
		if (func != 0)
		{
			int num = func();
			if (num != -1)
			{
				this.switchArrows[0].PerformClickEffect();
				this.UpdateArrowState(num);
			}
		}
	}

	// Token: 0x06001AA1 RID: 6817 RVA: 0x00041364 File Offset: 0x0003F564
	[Token(Token = "0x6001AA1")]
	[Address(RVA = "0x961C60", Offset = "0x960C60", VA = "0x180961C60")]
	public void SwitchPageRightward()
	{
		Func<int> func = this.trySwitchRightward;
		if (func != 0)
		{
			int num = func();
			if (num != -1)
			{
				this.switchArrows[1].PerformClickEffect();
				this.UpdateArrowState(num);
			}
		}
	}

	// Token: 0x06001AA2 RID: 6818 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AA2")]
	[Address(RVA = "0x961D90", Offset = "0x960D90", VA = "0x180961D90")]
	public void UpdatePageAmount(int pageAmount, int currentPage = 0)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AA3 RID: 6819 RVA: 0x000413A8 File Offset: 0x0003F5A8
	[Token(Token = "0x6001AA3")]
	[Address(RVA = "0x961D00", Offset = "0x960D00", VA = "0x180961D00")]
	private void UpdateArrowState(int currentPage)
	{
		UISwitchArrow uiswitchArrow = this.switchArrows[0];
		bool flag = currentPage > 0;
		uiswitchArrow.UpdateActivation(flag);
		UISwitchArrow uiswitchArrow2 = this.switchArrows[1];
		int num = this.pageAmount;
		bool flag2 = currentPage < num;
		uiswitchArrow2.UpdateActivation(flag2);
	}

	// Token: 0x06001AA4 RID: 6820 RVA: 0x000413F8 File Offset: 0x0003F5F8
	[Token(Token = "0x6001AA4")]
	[Address(RVA = "0x961980", Offset = "0x960980", VA = "0x180961980")]
	public void BindPointerEnterEvent(Action pointerEnterHandler)
	{
		this.switchArrows[0].pointerEnterHandler = pointerEnterHandler;
		this.switchArrows[1].pointerEnterHandler = pointerEnterHandler;
		throw new NullReferenceException();
	}

	// Token: 0x06001AA5 RID: 6821 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001AA5")]
	[Address(RVA = "0x961A10", Offset = "0x960A10", VA = "0x180961A10")]
	public bool HasPointerEntered()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001AA6 RID: 6822 RVA: 0x00041430 File Offset: 0x0003F630
	[Token(Token = "0x6001AA6")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public UISwitchArrowController()
	{
	}

	// Token: 0x040024DA RID: 9434
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40024DA")]
	[SerializeField]
	private UISwitchArrow[] switchArrows;

	// Token: 0x040024DB RID: 9435
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40024DB")]
	private Func<int> trySwitchLeftward;

	// Token: 0x040024DC RID: 9436
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40024DC")]
	private Func<int> trySwitchRightward;

	// Token: 0x040024DD RID: 9437
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40024DD")]
	private int pageAmount;
}
